TheRealAK47

Farm

Dec 16th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. local waitTime = 3.5
  2. local found = false
  3. local go = true
  4.  
  5. function findVehicle()
  6. while not found do
  7. local vehicles = Workspace.Vehicles:getChildren()
  8. for i=1,#vehicles do
  9. if vehicles[i]:findFirstChild'owner' then
  10. if vehicles[i].owner.Value == game:GetService'Players'.LocalPlayer.Name then
  11. found = true
  12. vehicle = vehicles[i]
  13. vehStats = vehicle.Handling
  14. vehStats.MaxSpeed.Value = 1200
  15. vehStats.Torque.Value = 50000
  16. vehStats.SteeringRadiusConstant.Value = 120000000
  17. end
  18. end
  19. end
  20. wait(1)
  21. end
  22. wait(2)
  23. vehicle.PrimaryPart = vehicle.Chassis.VehicleSeat
  24. end
  25.  
  26. function farm()
  27. while wait(waitTime) do
  28. vehicle:SetPrimaryPartCFrame(CFrame.new(-1758.7, 40, 543))
  29. game:GetService'VirtualUser':SetKeyUp("w")
  30. game:GetService'VirtualUser':SetKeyDown("w")
  31. end
  32. end
  33. findVehicle()
  34. while go do
  35. if not pcall(farm()) then
  36. found = false
  37. findVehicle()
  38. end
  39. end
Add Comment
Please, Sign In to add comment