Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. --ServerScript
  2. local part = script.Parent --thay script.Parent bằng đường dẫn đến part
  3. local x = --toạ độ x part của bạn
  4. local y = --giá trị nào đó cao hơn toạ độ y part của bạn
  5. local z = --toạ độ z part của bạn
  6. local speed = 3 --tốc độ trôi nổi của part, có thể đổi
  7. local ts = game:GetService("TweenService")
  8. local ti = TweenInfo.new(speed, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, math.huge, true, 0)
  9. local tp = {CFrame = CFrame.new(x, y, z)}
  10. local tween = ts:Create(part, ti, tp)
  11.  
  12. tween:Play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement