Advertisement
SimTek

Fly

Apr 12th, 2024
921
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. local plane = script.Parent
  2. local rootPart = plane.PlaneBase
  3. local lv = rootPart.LinearVelocity
  4. lv.MaxForce = math.huge
  5.  
  6. local startPnt = Vector3.new(0, 200, 1000)
  7. local finishPnt = Vector3.new(0, 200, -1000)
  8.  
  9. plane:PivotTo(CFrame.new(startPnt))
  10.  
  11. for i=0, 25, 1 do
  12.     wait(1)
  13.     lv.VectorVelocity = (finishPnt - startPnt).Unit * (5*i)
  14. end
  15. wait(2)
  16. for i, v in pairs(plane:GetDescendants()) do
  17.     if v:IsA("BasePart") then
  18.         v.CanCollide = false
  19.     end
  20. end
  21. wait(3)
  22. plane:Destroy()
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement