Meizch

Driving Empire Autofarm

Aug 16th, 2022 (edited)
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.12 KB | None | 0 0
  1. for index, value in pairs(getconnections(game:GetService("Players").LocalPlayer.Idled)) do
  2. value:Disable()
  3. end
  4. local idlepos = 144
  5. while true do
  6. local Character = game:GetService("Players").LocalPlayer.Character
  7. if Character then
  8. local VehicleSeat = Character:FindFirstChildWhichIsA("Humanoid").SeatPart
  9. if VehicleSeat and typeof(VehicleSeat) == "Instance" and VehicleSeat:IsA("VehicleSeat") then
  10. if idlepos >= 144 then
  11. local Vehicle = VehicleSeat:FindFirstAncestorWhichIsA("Model")
  12. Character.Parent = Vehicle
  13. Vehicle:MoveTo(Vector3.new(0, 1e3 * 1.8, 0))
  14. Character.Parent = workspace
  15. idlepos = 0
  16. end
  17. VehicleSeat.CFrame = CFrame.new(VehicleSeat.CFrame.X, 1e3, VehicleSeat.CFrame.Z) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180), math.rad(0))
  18. VehicleSeat.AssemblyLinearVelocity = VehicleSeat.CFrame.LookVector.Unit * Vector3.new(320, 320, 320) + Vector3.new(100 * math.cos((tick() * 60) / 28), 100 * math.cos((tick() * 60) / -28), 100 * math.cos((tick() * 60) / -28))
  19. VehicleSeat.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
  20. end
  21. end
  22. task.synchronize()
  23. idlepos = idlepos + 1
  24. task.desynchronize()
  25. task.wait(0)
  26. end
Add Comment
Please, Sign In to add comment