Advertisement
Guest User

Vehicle Simulator Autofarm+GUI

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