Guest User

Car Spawner GUI

a guest
Feb 4th, 2019
9,232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. local car = script.Parent.Parent.Car:Clone()
  2. 02
  3. 03 while true do
  4. 04
  5. 05 wait(5)
  6. 06
  7. 07
  8. 08 local n = script.Parent.Parent:FindFirstChild("Car") == nil
  9. 09 if (n or (script.Parent.Position - script.Parent.Parent.Car.VehicleSeat.Position).magnitude > 40) then
  10. 10 if (n ~= true) then
  11. 11 script.Parent.Parent.Car.Parent = game.Workspace
  12. 12 end
  13. 13 local c = car:Clone()
  14. 14 c.Parent = script.Parent.Parent
  15. 15 c:makeJoints()
  16. 16 end
  17. 17
  18. 18 end
Advertisement
Add Comment
Please, Sign In to add comment