Advertisement
DrawingJhon

Platform moving

Aug 5th, 2020 (edited)
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. local part = Instance.new("Part", workspace)
  2. part.Size = Vector3.new(4, 1, 4)
  3. part.TopSurface = "Smooth"
  4. part.BottomSurface = "Smooth"
  5. part:SetNetWorkOwnership()
  6. local gyro = Instance.new("BodyGyro", part)
  7. gyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  8. local vel = Instance.new("BodyPosition", part)
  9. vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  10. wait(3)
  11. local Tween = game:GetService("TweenService")
  12.  
  13. local info = TweenInfo.new(
  14.     10,
  15.     Enum.EasingStyle.Linear,
  16.     Enum.EasingDirection.Out,
  17.     5,
  18.     true,
  19.     0
  20. )
  21.  
  22. local tween = Tween:Create(vel, info, {Position = Vector3.new(0, 50, -100)})
  23. tween:Play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement