Advertisement
Guest User

vehicle simulator

a guest
Jun 21st, 2018
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. veh = nil
  2. for i,v in pairs(game.Workspace.Vehicles:GetChildren()) do
  3. if v:IsA("Model") then
  4. if v.owner.Value == game.Players.LocalPlayer.Name then
  5. veh = v
  6. end
  7. end
  8. end
  9.  
  10. if veh then
  11. han = veh.Handling
  12. han.MaxSpeed.Value = 1000000
  13. han.Torque.Value = 50000
  14. han.SteeringRadiusConstant.Value = 120000000
  15. han.FrictionOffroad.Value = 200
  16. han.FrictionRoad.Value = 200
  17. else
  18. print("Unable to find your vehicle!")
  19. end
  20.  
  21. veh = nil
  22. for i,v in pairs(game.Workspace.Vehicles:GetChildren()) do
  23. if v:IsA("Model") then
  24. if v.owner.Value == game.Players.LocalPlayer.Name then
  25. veh = v
  26. end
  27. end
  28. end
  29. han = veh.Handling
  30.  
  31. while han ~= nil do
  32. wait(0.5)
  33. han.Nitro.NitroAmount.Value = 250
  34. end
  35.  
  36. nspeed = 3000 --The speed that the nitro will amplify your speed by!
  37. nforce = 80000 --The amount of force the nitro will put on your car.
  38. veh = nil
  39. for i,v in pairs(game.Workspace.Vehicles:GetChildren()) do
  40. if v:IsA("Model") then
  41. if v.owner.Value == game.Players.LocalPlayer.Name then
  42. veh = v
  43. end
  44. end
  45. end
  46.  
  47. if veh then
  48. han.Nitro.NitroSpeed.Value = nspeed
  49. han.Nitro.NitroForce.Value = nforce
  50. else
  51. print("Unable to find your vehicle!")
  52. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement