Advertisement
BeastCloudy

Vehicle Simulator Autofarm

Jan 21st, 2021
3,404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. local waitTime = 3
  2. local found = false
  3. local go = true
  4. function findVehicle()
  5. while not found do
  6. local vehicles = Workspace.Vehicles:getChildren()
  7. for i=1,#vehicles do
  8. if vehicles[i]:findFirstChild'owner' then
  9. if vehicles[i].owner.Value == game:GetService'Players'.LocalPlayer.Name then
  10. found = true
  11. vehicle = vehicles[i]
  12. elseif vehicles[i + 1] == nil and not found then
  13. end
  14. end
  15. end
  16. wait(1)
  17. end
  18. wait(2)
  19. vehicle.PrimaryPart = vehicle.Chassis.VehicleSeat
  20. end
  21. local c = 10
  22. game.RunService.Heartbeat:Connect(function()
  23. local A_1 = 14
  24. local Event = game:GetService("ReplicatedStorage")["Game Modes V2"].Shared.Remotes.RemoteEvents.Invite
  25. Event:FireServer(A_1)
  26. local A_1 = 14
  27. local Event = game:GetService("ReplicatedStorage")["Game Modes V2"].Shared.Remotes.RemoteFunctions["join_mode"]
  28. Event:InvokeServer(A_1)
  29. local A_1 = 14
  30. local Event = game:GetService("ReplicatedStorage")["Game Modes V2"].Shared.Remotes.RemoteEvents.Invite
  31. Event:FireServer(A_1)
  32. end)
  33. local racing = false
  34. function farm()
  35. coroutine.wrap(function()
  36. while true do
  37. wait()
  38. game:GetService'VirtualUser':SetKeyUp("w")
  39. game:GetService'VirtualUser':SetKeyDown("w")
  40. for i = 1,20 do
  41. pcall(function()
  42. vehicle:SetPrimaryPartCFrame(workspace.Camera["Checkpoint_"..i].CFrame)
  43. game:GetService'VirtualUser':SetKeyUp("w")
  44. game:GetService'VirtualUser':SetKeyDown("w")
  45. wait()
  46. end)
  47. end
  48. end
  49. end)()
  50. end
  51. findVehicle()
  52. if not getgenv().MTAPIMutex then loadstring(game:HttpGet("https://pastebin.com/raw/UwFCVrhS", true))() end
  53. local doom
  54. for i,v in pairs(game.ReplicatedStorage.Playerdata:GetChildren()) do
  55. if v:IsA("RemoteEvent") and v.Name ~= "send_msg" and v.Name ~= "mobile" and v.Name ~= "bustdownthotiana" then
  56. v:AddCallHook("FireServer", function(o, ...)
  57. print'Nice try kicking me!'
  58. end)
  59. end
  60. end
  61. farm()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement