Advertisement
R3LUA

Driving Empire Script | NO KEY !

Jun 18th, 2024 (edited)
17,005
2
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.58 KB | None | 2 0
  1. --Join my discord server! https://discord.gg/RzARqGBQ58
  2. --for the afford <
  3.  
  4. LocalPlayer = game:GetService("Players").LocalPlayer
  5.  
  6. Camera = workspace.CurrentCamera
  7.  
  8. VirtualUser = game:GetService("VirtualUser")
  9.  
  10. MarketplaceService = game:GetService("MarketplaceService")
  11.  
  12.  
  13.  
  14. --Get Current Vehicle
  15.  
  16. function GetCurrentVehicle()
  17.  
  18. return LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") and LocalPlayer.Character.Humanoid.SeatPart and LocalPlayer.Character.Humanoid.SeatPart.Parent
  19.  
  20. end
  21.  
  22.  
  23.  
  24. --Regular TP
  25.  
  26. function TP(cframe)
  27.  
  28. GetCurrentVehicle():SetPrimaryPartCFrame(cframe)
  29.  
  30. end
  31.  
  32.  
  33.  
  34. --Velocity TP
  35.  
  36. function VelocityTP(cframe)
  37.  
  38. TeleportSpeed = math.random(600, 600)
  39.  
  40. Car = GetCurrentVehicle()
  41.  
  42. local BodyGyro = Instance.new("BodyGyro", Car.PrimaryPart)
  43.  
  44. BodyGyro.P = 5000
  45.  
  46. BodyGyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  47.  
  48. BodyGyro.CFrame = Car.PrimaryPart.CFrame
  49.  
  50. local BodyVelocity = Instance.new("BodyVelocity", Car.PrimaryPart)
  51.  
  52. BodyVelocity.MaxForce = Vector3.new(9e9, 9e9, 9e9)
  53.  
  54. BodyVelocity.Velocity = CFrame.new(Car.PrimaryPart.Position, cframe.p).LookVector * TeleportSpeed
  55.  
  56. wait((Car.PrimaryPart.Position - cframe.p).Magnitude / TeleportSpeed)
  57.  
  58. BodyVelocity.Velocity = Vector3.new()
  59.  
  60. wait(0.1)
  61.  
  62. BodyVelocity:Destroy()
  63.  
  64. BodyGyro:Destroy()
  65.  
  66. end
  67.  
  68.  
  69.  
  70. --Auto Farm
  71.  
  72. StartPosition = CFrame.new(Vector3.new(4940.19775, 66.0195084, -1933.99927, 0.343969434, -0.00796990748, -0.938947022, 0.00281227613, 0.999968231, -0.00745762791, 0.938976645, -7.53822824e-05, 0.343980938), Vector3.new())
  73.  
  74. EndPosition = CFrame.new(Vector3.new(1827.3407, 66.0150146, -658.946655, -0.366112858, 0.00818905979, 0.930534422, 0.00240773871, 0.999966264, -0.00785277691, -0.930567324, -0.000634518801, -0.366120219), Vector3.new())
  75.  
  76. AutoFarmFunc = coroutine.create(function()
  77.  
  78. while wait() do
  79.  
  80. if not AutoFarm then
  81.  
  82. AutoFarmRunning = false
  83.  
  84. coroutine.yield()
  85.  
  86. end
  87.  
  88. AutoFarmRunning = true
  89.  
  90. pcall(function()
  91.  
  92. if not GetCurrentVehicle() and tick() - (LastNotif or 0) > 5 then
  93.  
  94. LastNotif = tick()
  95.  
  96. else
  97.  
  98. TP(StartPosition + (TouchTheRoad and Vector3.new(0,0,0) or Vector3.new(0, 0, 0)))
  99.  
  100. VelocityTP(EndPosition + (TouchTheRoad and Vector3.new() or Vector3.new(0, 0, 0)))
  101.  
  102. TP(EndPosition + (TouchTheRoad and Vector3.new() or Vector3.new(0, 0, 0)))
  103.  
  104. VelocityTP(StartPosition + (TouchTheRoad and Vector3.new() or Vector3.new(0, 0, 0)))
  105.  
  106. end
  107.  
  108. end)
  109.  
  110. end
  111.  
  112. end)
  113.  
  114.  
  115.  
  116. --Anti AFK
  117.  
  118. AntiAFK = true
  119.  
  120. LocalPlayer.Idled:Connect(function()
  121.  
  122. VirtualUser:CaptureController()
  123.  
  124. VirtualUser:ClickButton2(Vector2.new(), Camera.CFrame)
  125.  
  126. end)
  127.  
  128.  
  129.  
  130. local lib = loadstring(game:HttpGet("https://raw.githubusercontent.com/Simak90/pfsetcetc/main/fluxed.lua"))() -- UI Library
  131.  
  132. local win = lib:Window("RT Hub", "DuLua&Targetttroly21", Color3.fromRGB(111, 0, 0), _G.closeBind) -- done mess with
  133.  
  134.  
  135.  
  136. ---------Spins--------------------------------
  137.  
  138. local Visual = win:Tab("Farm Section", "http://www.roblox.com/asset/?id=6023426915")
  139.  
  140. Visual:Label("Farms")
  141.  
  142. Visual:Line()
  143.  
  144.  
  145.  
  146. Visual:Toggle("Auto Farm", "Activates farm. Get in car to start",false, function(value)
  147.  
  148. AutoFarm = value
  149.  
  150. if value and not AutoFarmRunning then
  151.  
  152. coroutine.resume(AutoFarmFunc)
  153.  
  154. end
  155.  
  156. end)
  157.  
  158. Visual:Toggle("TouchTheRoad", "doesnt work for some cars",false, function(value)
  159.  
  160. TouchTheRoad = value
  161.  
  162. end)
  163.  
  164. Visual:Toggle("AntiAFK", "simulates keypressing",false, function(value)
  165.  
  166. AntiAFK = value
  167.  
  168. end)
  169.  
  170.  
  171.  
  172.  
  173.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement