The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Driving Empire script pastebin roblox
By LINK GAME on 2024-11-21 08:00 am | Syntax: LUA | Views: 186



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. -- shawnjbragdon#0001
  2. -- send me some scripting requests, i'll try to get to them.
  3. -- don't request me some gay rbworld shit
  4.  
  5. local Players = game:GetService("Players")
  6. local RunService = game:GetService("RunService")
  7. local UserInputService = game:GetService("UserInputService")
  8. local TweenService = game:GetService("TweenService")
  9.  
  10. local LocalPlayer = Players.LocalPlayer
  11. local Character = LocalPlayer.Character
  12. local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  13.  
  14. local SeatPart = Humanoid.SeatPart
  15. local Vehicle = SeatPart.Parent
  16. local Wheels = Vehicle:FindFirstChild("Wheels")
  17. local Body = Vehicle:FindFirstChild("Body")
  18.  
  19. if SeatPart:FindFirstAncestor("Body") then
  20. Vehicle = SeatPart:FindFirstAncestor("Body").Parent
  21. Wheels = (Wheels ~= nil and Wheels) or Vehicle:FindFirstChild("Wheels")
  22. end
  23.  
  24. if game.PlaceId == 3351674303 then
  25. Wheels = Vehicle:FindFirstChild("Core")
  26. end
  27.  
  28. Vehicle.PrimaryPart = SeatPart
  29.  
  30. local function GetWheelVelocity()
  31. if game.PlaceId == 3351674303 then
  32. return Wheels:GetChildren()[1]["Wheel"].Velocity, Wheels:GetChildren()[1]["Wheel"].RotVelocity
  33. end
  34. for index, value in pairs(Wheels:GetDescendants()) do
  35. if value:IsA("BasePart") then
  36. return value.Velocity, value.RotVelocity
  37. end
  38. end
  39. end
  40.  
  41. local function SetWheelVelocity(Velocity, RotVelocity)
  42. for index, value in pairs(Wheels:GetDescendants()) do
  43. pcall(function()
  44. value.Velocity = Velocity
  45. if RotVelocity ~= nil then
  46. value.RotVelocity = RotVelocity
  47. end
  48. end)
  49. end
  50. end
  51.  
  52. game:GetService("StarterGui"):SetCore("SendNotification", {
  53. Title = "Driving Empire Autofarm",
  54. Text = "Thank you for using, if you have any ideas &/or suggestions please message me @ shawnjbragdon#0001 on discord.",
  55. Duration = 30,
  56. Button1 = "Okay",
  57. })
  58.  
  59. Connection = game:GetService("RunService").Stepped:Connect(function()
  60. if not Vehicle or not Vehicle.Parent or not Humanoid.SeatPart then
  61. Connection:Disconnect()
  62. return
  63. end
  64. local Speed = ((10/12) * (60/88)) * SeatPart.Velocity.Magnitude
  65. if SeatPart.Position.X > -14294.7607 then
  66. Character.Parent = Vehicle
  67. Vehicle:MoveTo(Vector3.new(-17157.2793, 43.1872673, 2611.22705))
  68. Character.Parent = workspace
  69. end
  70. if Speed < 250 then
  71. local WV = GetWheelVelocity()
  72. SetWheelVelocity(Vector3.new(300, WV["Y"], 300 / -29.1940043308))
  73. end
  74. end)



  • Recent Roblox Scripts