Advertisement
YANIS_EXPLOITS

Vehicle Simulator AutoFarm

Mar 23rd, 2021
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. print("DrHorsemanj")
  2.  
  3.  
  4.  
  5.  
  6. --[[
  7. Settings
  8. --]]
  9.  
  10. timewait=0.1 -- TP time, wait "timewait" seconds and then TP.
  11. racestarttime=0.5 -- 2-7 is recommended. starts at 3 seconds.
  12.  
  13.  
  14.  
  15.  
  16. --[[
  17. Code
  18. --]]
  19.  
  20. db=false
  21. while wait() do
  22. while db == false do
  23. wait()
  24. local A_1 = 14
  25. local Event = game:GetService("ReplicatedStorage")["Game Modes V2"].Shared.Remotes.RemoteEvents.Invite
  26. Event:FireServer(A_1)
  27. local A_1 = 14
  28. local Event = game:GetService("ReplicatedStorage")["Game Modes V2"].Shared.Remotes.RemoteFunctions["join_mode"]
  29. Event:InvokeServer(A_1)
  30. local A_1 = 14
  31. local Event = game:GetService("ReplicatedStorage")["Game Modes V2"].Shared.Remotes.RemoteEvents.Invite
  32. Event:FireServer(A_1)
  33. guis = game.Players.LocalPlayer.PlayerGui
  34. wait(timewait)
  35. for i,v in pairs(guis:GetChildren()) do
  36. if v.Name == "RaceGui" then
  37. gui=game.Players.localPlayer.PlayerGui.RaceGui
  38. db = true
  39. else
  40. wait()
  41. end
  42. end
  43. end
  44. while db == true do
  45. wait()
  46. if tonumber(gui.top_bar.time_info.Text) > racestarttime then
  47. function findVehicle()
  48. while not found do
  49. local vehicles = Workspace.Vehicles:getChildren()
  50. for i=1,#vehicles do
  51. if vehicles[i]:findFirstChild'owner' then
  52. if vehicles[i].owner.Value == game:GetService'Players'.LocalPlayer.Name then
  53. found = true
  54. vehicle = vehicles[i]
  55. elseif vehicles[i + 1] == nil and not found then
  56. end
  57. end
  58. end
  59. end
  60. vehicle.PrimaryPart = vehicle.Chassis.VehicleSeat
  61. end
  62. findVehicle()
  63. for i = 1,16 do
  64. local seat = game.Players.LocalPlayer.Character.Humanoid.SeatPart
  65. local vehicleModel = seat.Parent
  66. local plr = game:GetService("Players").LocalPlayer
  67. local char = plr.Character
  68. local tor = char:WaitForChild("HumanoidRootPart")
  69. wait(timewait)
  70. local nextstop="Checkpoint_"..i
  71. vehicle:SetPrimaryPartCFrame(game.Workspace.Camera:WaitForChild(nextstop).CFrame)
  72. game:GetService('VirtualUser'):SetKeyDown('w')
  73. game:GetService('VirtualUser'):SetKeyDown('w')
  74. game:GetService('VirtualUser'):SetKeyDown('w')
  75. wait()
  76. game:GetService('VirtualUser'):SetKeyDown('w')
  77. game:GetService('VirtualUser'):SetKeyDown('w')
  78. game:GetService('VirtualUser'):SetKeyDown('w')
  79. game:GetService('VirtualUser'):SetKeyDown('w')
  80. game:GetService('VirtualUser'):SetKeyDown('w')
  81. game:GetService('VirtualUser'):SetKeyDown('w')
  82. end
  83. db=false
  84. end
  85. end
  86. db=false
  87. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement