Advertisement
Hydasi

Roanoke VA Autofarm.

May 2nd, 2021
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. local LocalPlayer = game:GetService("Players").LocalPlayer
  2. local Character = LocalPlayer.Character
  3. local Vehicle = workspace[string.format("%s\'s Car", LocalPlayer.Name)]
  4.  
  5. local function MoveVehicle(Position)
  6. Character.Parent = Vehicle
  7. Vehicle:MoveTo(Position)
  8. Character.Parent = workspace
  9. end
  10.  
  11. local Baseplate = workspace:FindFirstChild("Baseplate") or Instance.new("Part", workspace)
  12. Baseplate.Name = "Baseplate"
  13. Baseplate.Size = Vector3.new(2048, 20, 2048)
  14. Baseplate.CFrame = CFrame.new(0, 3e4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  15. Baseplate.Anchored = true
  16. Baseplate.CanCollide = true
  17. Baseplate.Transparency = 1
  18.  
  19. MoveVehicle(Baseplate.CFrame.Position + Vector3.new(0, 15, 0))
  20.  
  21. coroutine.resume(coroutine.create(function()
  22. while true do
  23. wait()
  24. pcall(function()
  25. for index, value in pairs(Vehicle["Wheels"]:GetChildren()) do
  26. if value.Position.X > 1000 then
  27. Baseplate.CFrame = CFrame.new(0, 3e4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  28. MoveVehicle(Baseplate.CFrame.Position + Vector3.new(0, 15, 0))
  29. end
  30. value.Velocity = Vector3.new(500, 0, 500)
  31. Baseplate.CFrame = CFrame.new(Character["HumanoidRootPart"].CFrame.X, 3e4, Character["HumanoidRootPart"].CFrame.Z) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  32. end
  33. end)
  34. end
  35. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement