Advertisement
Guest User

Untitled

a guest
Dec 15th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. SHARE
  2. TWEET
  3.  
  4. Untitled
  5. A GUEST DEC 28TH, 2017 12,874 NEVER
  6.  
  7. Upgrade to PRO! ENDING IN12days01hours35mins34secs
  8. rawdownloadcloneembedreportprint text 2.66 KB
  9. local plr = game.Players.LocalPlayer
  10. local inftoggle = false
  11. function getvehicle()
  12. for i,v in pairs(game.Workspace.Vehicles:GetChildren()) do
  13. if v:IsA("Model") then
  14. if v.owner.Value == plr.Name then
  15. return v
  16. end
  17. end
  18. end
  19. return nil
  20. end
  21. function hint(txt, t)
  22. if t then
  23. local h = Instance.new("Hint",plr.PlayerGui)
  24. h.Text = txt
  25. wait(t)
  26. h:remove()
  27. else
  28. local h = Instance.new("Hint",plr.PlayerGui)
  29. h.Text = txt
  30. wait(2)
  31. h:remove()
  32. end
  33. end
  34.  
  35. plr.Chatted:connect(function(msg)
  36. if msg:lower():sub(1,10) == "/e toggle:" then
  37. local ins = msg:lower():sub(11)
  38. local vehicle = getvehicle()
  39. if vehicle then
  40. if ins == "infnitro" then
  41. if inftoggle == true then
  42. inftoggle = false
  43. hint("(-)Disabled Infinite Nitro!(-)")
  44. else
  45. inftoggle = true
  46. hint("(+)Enabled Infinite Nitro!(+)")
  47. end
  48. end
  49. else
  50. hint("(-)You do not have a vehicle spawned!(-)")
  51. end
  52. elseif msg:lower():sub(1,14) == "/e nitrospeed:" then
  53. local num = msg:sub(15)
  54. local vehicle = getvehicle()
  55. if vehicle then
  56. vehicle.Handling.Nitro.NitroSpeed.Value = tonumber(num)
  57. else
  58. hint("(-)You do not have a vehicle spawned!(-)")
  59. end
  60. elseif msg:lower():sub(1,14) == "/e nitroforce:" then
  61. local num = msg:sub(1,15)
  62. local vehicle = getvehicle()
  63. if vehicle then
  64. vehicle.Handling.Nitro.NitroForce.Value = tonumber(num)
  65. else
  66. hint("(-)You do not have a vehicle spawned!(-)")
  67. end
  68. elseif msg:lower():sub(1,12) == "/e maxspeed:" then
  69. local num = msg:sub(13)
  70. local vehicle = getvehicle()
  71. if vehicle then
  72. vehicle.Handling.MaxSpeed.Value = tonumber(num)
  73. else
  74. hint("(-)You do not have a vehicle spawned!(-)")
  75. end
  76. elseif msg:lower():sub(1,10) == "/e torque:" then
  77. local num = msg:sub(11)
  78. local vehicle = getvehicle()
  79. if vehicle then
  80. vehicle.Handling.Torque.Value = tonumber(num)
  81. else
  82. hint("(-)You do not have a vehicle spawned!(-)")
  83. end
  84. elseif msg:lower():sub(1,12) == "/e friction:" then
  85. local num = msg:sub(13)
  86. local vehicle = getvehicle()
  87. if vehicle then
  88. vehicle.Handling.FrictionOffroad.Value = tonumber(num)
  89. vehicle.Handling.FrictionRoad.Value = tonumber(num)
  90. else
  91. hint("(-)You do not have a vehicle spawned!(-)")
  92. end
  93. elseif msg:lower():sub(1,13) == "/e racingmode" then
  94. local vehicle = getvehicle()
  95. if vehicle then
  96. han = vehicle.Handling
  97. han.MaxSpeed.Value = 10000
  98. han.Torque.Value = 20000
  99. han.SteeringRadiusConstant.Value = 12000
  100. han.FrictionOffroad.Value = 200
  101. han.FrictionRoad.Value = 200
  102. han.Nitro.NitroSpeed.Value = 300
  103. han.Nitro.NitroForce.Value = 8000
  104. inftoggle = true
  105. else
  106. hint("(-)You do not have a vehicle spawned!(-)")
  107. end
  108. end
  109. end)
  110. wait(0.5)
  111. while inftoggle == true do
  112. wait(0.02)
  113. local vehicle = getvehicle()
  114. if vehicle then
  115. vehicle.Handling.Nitro.NitroAmount.Value = 250
  116. end
  117. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement