TheRealAK47

RemoveOtherCars

Dec 16th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. while wait(2) do
  2. for _,v in pairs(workspace.Vehicles:GetDescendants()) do
  3. if v.Name == "owner" then
  4. if v.Value == game.Players.LocalPlayer.Name then
  5. Car = v.Parent
  6. Car.PrimaryPart = Car.Chassis.VehicleSeat
  7. Car.Parent = workspace
  8. end
  9. end
  10. end
  11.  
  12. for _,v in pairs(workspace.Vehicles:GetDescendants()) do
  13. if v.ClassName == "Part"
  14. or v.ClassName == "MeshPart"
  15. or v.ClassName == "Model" then
  16. v:Destroy()
  17. end
  18. end
  19. end
Add Comment
Please, Sign In to add comment