Xnaate

Drive World Auto Farm Script!

Feb 10th, 2023
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | Gaming | 0 0
  1. --antiafk
  2. task.spawn(function()
  3. local vu = game:GetService("VirtualUser")
  4. game:GetService("Players").LocalPlayer.Idled:connect(function()
  5. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  6. wait(1)
  7. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  8. end)
  9. end)
  10. -- Make floor
  11. local Part = Instance.new("Part")
  12. Part.Parent = Workspace
  13. Part.Position = Vector3.new(-1713, 20000, 20110)
  14. Part.Size = Vector3.new(2048, 5, 2048)
  15. print(Part)
  16. Part.Anchored = true
  17. local base = true
  18. -- i x 300 = money
  19. local i = 300
  20. -- find car
  21. local name = game.Players.LocalPlayer
  22. for _, v in pairs (game:GetService("Workspace").Cars:GetDescendants()) do
  23. if v:IsA("ObjectValue") and v.Value == name and v.Name == 'Owner' then
  24. print(v.Parent)
  25. car = v.Parent
  26. end
  27. end
  28. car:SetPrimaryPartCFrame(CFrame.new(-2126, 9070, 989))
  29. -- function
  30. local function dollas()
  31. car.Main.Anchored = false
  32. car:SetPrimaryPartCFrame(CFrame.new(-1544, 20005, 21125))
  33. car.Main.Velocity = Vector3.new(0,0,-430)
  34. wait(5)
  35. end
  36. -- loop
  37. while i > 0 do
  38. dollas()
  39. i = i - 1
  40. print(i)
  41. end
  42. -- stop
  43. car.Main.Anchored = true
Add Comment
Please, Sign In to add comment