Lancere

OP Driving Empire Auto Farm Lancere's Edition (Patched)

Dec 29th, 2020 (edited)
1,681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. -- If you have any questions/need help, dm me on discord: Lancere#1521You have to change the number at the bottom of the script to
  2. -- whatever you require. I forgot to mention this in the first one, but don't set the speed to faster than your car can go. Here is a
  3. -- video guide: https://youtu.be/hWK_5yvYEqU Here are some examples:
  4. -- 150 Mph: 300
  5. -- 316 Mph: 635 (What is in the code already since it is tweaked to my car)
  6. -- 297 Mph: 600 (Kinda weird eh)
  7. -- 200 Mph: 400
  8. -- 249 Mph: 500 etc.
  9. -- before you execute, look at the bottom of the script to change it to your liking, and face your car towards the new ice race and get
  10. -- in it. Then execute.
  11. -- shawnjbragdon#0001
  12. -- send me some scripting requests, i'll try to get to them.
  13. -- don't request me some "Happy" rbworld "Crap"
  14.  
  15. local Players = game:GetService("Players")
  16. local RunService = game:GetService("RunService")
  17. local UserInputService = game:GetService("UserInputService")
  18. local TweenService = game:GetService("TweenService")
  19.  
  20. local LocalPlayer = Players.LocalPlayer
  21. local Character = LocalPlayer.Character
  22. local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  23.  
  24. local SeatPart = Humanoid.SeatPart
  25. local Vehicle = SeatPart.Parent
  26. local Wheels = Vehicle:FindFirstChild("Wheels")
  27. local Body = Vehicle:FindFirstChild("Body")
  28.  
  29. if SeatPart:FindFirstAncestor("Body") then
  30. Vehicle = SeatPart:FindFirstAncestor("Body").Parent
  31. Wheels = (Wheels ~= nil and Wheels) or Vehicle:FindFirstChild("Wheels")
  32. end
  33.  
  34. if game.PlaceId == 3351674303 then
  35. Wheels = Vehicle:FindFirstChild("Core")
  36. end
  37.  
  38. Vehicle.PrimaryPart = SeatPart
  39.  
  40. local function GetWheelVelocity()
  41. if game.PlaceId == 3351674303 then
  42. return Wheels:GetChildren()[1]["Wheel"].Velocity, Wheels:GetChildren()[1]["Wheel"].RotVelocity
  43. end
  44. for index, value in pairs(Wheels:GetDescendants()) do
  45. if value:IsA("BasePart") then
  46. return value.Velocity, value.RotVelocity
  47. end
  48. end
  49. end
  50.  
  51. local function SetWheelVelocity(Velocity, RotVelocity)
  52. for index, value in pairs(Wheels:GetDescendants()) do
  53. pcall(function()
  54. value.Velocity = Velocity
  55. if RotVelocity ~= nil then
  56. value.RotVelocity = RotVelocity
  57. end
  58. end)
  59. end
  60. end
  61.  
  62. game:GetService("StarterGui"):SetCore("SendNotification", {
  63. Title = "Driving Empire Autofarm:Edited by Lancere#1521",
  64. Text = "Thank you for using, if you have any ideas &/or suggestions please message me @ shawnjbragdon#0001 on discord.",
  65. Duration = 30,
  66. Button1 = "Continue",
  67. })
  68.  
  69. game:GetService("StarterGui"):SetCore("SendNotification", {
  70. Title = "Continuation",
  71. Text = "If you need help with setting the speed and whatnot, send me a dm Lancere#1521.",
  72. Duration = 30,
  73. Button1 = "Ight",
  74. })
  75.  
  76. Connection = game:GetService("RunService").Stepped:Connect(function()
  77. if not Vehicle or not Vehicle.Parent or not Humanoid.SeatPart then
  78. Connection:Disconnect()
  79. return
  80. end
  81. local Speed = ((10/12) * (60/88)) * SeatPart.Velocity.Magnitude
  82. if SeatPart.Position.X > -14294.7607 then
  83. Character.Parent = Vehicle
  84. Vehicle:MoveTo(Vector3.new(-17157.2793, 43.1872673, 2611.22705))
  85. Character.Parent = workspace
  86. end
  87. if Speed < 550 then --If your car goes faster than 550, change it to something bigger. Otherwise, leave it alone.
  88. local WV = GetWheelVelocity()
  89. SetWheelVelocity(Vector3.new(635, WV["Y"], 635 / -29.1940043308)) --Change the "635"s to whatever number you need.
  90. end
  91. end)
Add Comment
Please, Sign In to add comment