Advertisement
Guest User

Auto Farm Vehicle Sim

a guest
Nov 16th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. -- Vehicle Simulator Moneyscript by Butters @ V3RM
  2. -- good to use with KertIvan's Vehicle Simulator Gui (SuperSpeed) https://pastebin.com/MiVvdVyQ
  3. -- n is default key, change if you'd like
  4. -- code is ####, I know
  5. timer = 0.9 -- Interval per each teleport
  6. Coords = Vector3.new(-1755, 40.785, 3200) -- Change to where ever you want to TP
  7. mKey = "n" -- What key to press
  8.  
  9.  
  10. -- Ignore the code if you dont want to change something
  11.  
  12. Vehicle = "A"
  13.  
  14. local player = game.Players.LocalPlayer
  15.  
  16. local mouse = player:GetMouse()
  17.  
  18. keypressed = false
  19.  
  20. function getcar()
  21. local children = workspace.Vehicles:GetChildren()
  22. for i = 1, #children do
  23.  
  24. if i == 1 then -- skip first children cause its not a car
  25.  
  26. else
  27.  
  28. if children[i].owner.Value == game.Players.LocalPlayer.Character.Name then
  29.  
  30.  
  31. Vehicle = children[i]
  32. end
  33. end
  34. end
  35. end
  36. mouse.KeyDown:connect(function(key)
  37. if key == mKey then
  38. if(keypressed == true) then
  39. keypressed = false
  40. else
  41. keypressed = true
  42. getcar()
  43.  
  44. while(keypressed == true) do
  45. wait(timer)
  46. Vehicle:SetPrimaryPartCFrame(CFrame.new(Coords))
  47.  
  48.  
  49. end
  50. end
  51. end
  52. end)
  53.  
  54. --re-execute this if you reset your vehicle
  55. veh = nil
  56. for i,v in pairs(game.Workspace.Vehicles:GetChildren()) do
  57. if v:IsA("Model") then
  58. if v.owner.Value == game.Players.LocalPlayer.Name then
  59. veh = v
  60. end
  61. end
  62. end
  63.  
  64. if veh then
  65. han = veh.Handling
  66. han.MaxSpeed.Value = 10000
  67. han.Torque.Value = 20000
  68. han.SteeringRadiusConstant.Value = 12000
  69. han.FrictionOffroad.Value = 200
  70. han.FrictionRoad.Value = 200
  71. else
  72. print("Unable to find your vehicle!")
  73. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement