Facebook
From Paltry Bongo, 2 Years ago, written in Plain Text.
This paste is a reply to Re: Driving Empire Script from Capacious Bird - view diff
Embed
Download Paste or View Raw
Hits: 288
  1.  loadstring(game:HttpGet("https://raw.githubusercontent.com/KPRAAHUE/driving-empire-autofarm2/main/README.md"))()
  2.  
  3. -- Youtube : Henc | Discord : https://discord.gg/F5fggqkVHa --
  4. --Vars
  5. LocalPlayer = game:GetService("Players").LocalPlayer
  6. Camera = workspace.CurrentCamera
  7. VirtualUser = game:GetService("VirtualUser")
  8. MarketplaceService = game:GetService("MarketplaceService")
  9.  
  10. --Get Current Vehicle
  11. function GetCurrentVehicle()
  12.     return LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") and LocalPlayer.Character.Humanoid.SeatPart and LocalPlayer.Character.Humanoid.SeatPart.Parent
  13. end
  14.  
  15. --Notification Handler
  16. function SendNotification(Title, Message, Duration)
  17.     game.StarterGui:SetCore("SendNotification", {
  18.         Title = Title;
  19.         Text = Message;
  20.         Duration = Duration;
  21.     })
  22. end
  23.  
  24. --Regular TP
  25. function TP(cframe)
  26.     GetCurrentVehicle():SetPrimaryPartCFrame(cframe)
  27. end
  28.  
  29. --Velocity TP
  30. function VelocityTP(cframe)
  31.     TeleportSpeed = math.random(200, 600)
  32.     Car = GetCurrentVehicle()
  33.     local BodyGyro = Instance.new("BodyGyro", Car.PrimaryPart)
  34.     BodyGyro.P = 5000
  35.     BodyGyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  36.     BodyGyro.CFrame = Car.PrimaryPart.CFrame
  37.     local BodyVelocity = Instance.new("BodyVelocity", Car.PrimaryPart)
  38.     BodyVelocity.MaxForce = Vector3.new(9e9, 9e9, 9e9)
  39.     BodyVelocity.Velocity = CFrame.new(Car.PrimaryPart.Position, cframe.p).LookVector * TeleportSpeed
  40.     wait((Car.PrimaryPart.Position - cframe.p).Magnitude / TeleportSpeed)
  41.     BodyVelocity.Velocity = Vector3.new()
  42.     wait(0.1)
  43.     BodyVelocity:Destroy()
  44.     BodyGyro:Destroy()
  45. end
  46.  
  47. --Auto Farm
  48. StartPosition = CFrame.new(Vector3.new(811.013184, 27.3421249, 2203.55542), Vector3.new(-187, 25.7, 1982))
  49. EndPosition = CFrame.new(Vector3.new(-76.4760208, 27.7194824, 1993.84229), Vector3.new(-187, 25.7, 1982))
  50. AutoFarmFunc = coroutine.create(function()
  51.     while wait() do
  52.         if not AutoFarm then
  53.             AutoFarmRunning = false
  54.             coroutine.yield()
  55.         end
  56.         AutoFarmRunning = true
  57.         pcall(function()
  58.             if not GetCurrentVehicle() and tick() - (LastNotif or 0) > 5 then
  59.                 LastNotif = tick()
  60.                 SendNotification("Aloha Scripts", "Please Enter A Vehicle!")
  61.             else
  62.                 TP(StartPosition + (TouchTheRoad and Vector3.new() or Vector3.new(0, 1, 0)))
  63.                 VelocityTP(EndPosition + (TouchTheRoad and Vector3.new() or Vector3.new(0, 1, 0)))
  64.                 TP(EndPosition + (TouchTheRoad and Vector3.new() or Vector3.new(0, 1, 0)))
  65.                 VelocityTP(StartPosition + (TouchTheRoad and Vector3.new() or Vector3.new(0, 1, 0)))
  66.             end
  67.         end)
  68.     end
  69. end)
  70.  
  71. --Anti AFK
  72. AntiAFK = true
  73. LocalPlayer.Idled:Connect(function()
  74.     VirtualUser:CaptureController()
  75.     VirtualUser:ClickButton2(Vector2.new(), Camera.CFrame)
  76. end)
  77.  
  78. --UI
  79. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/GreenDeno/Venyx-UI-Library/main/source.lua"))()
  80. local venyx = library.new(MarketplaceService:GetProductInfo(game.PlaceId).Name)
  81.  
  82. --Themes
  83. local themes = {
  84.     Background = Color3.fromRGB(24, 24, 24),
  85.     Glow = Color3.fromRGB(0, 0, 0),
  86.     Accent = Color3.fromRGB(10, 10, 10),
  87.     LightContrast = Color3.fromRGB(20, 20, 20),
  88.     DarkContrast = Color3.fromRGB(14, 14, 14),
  89.     TextColor = Color3.fromRGB(255, 255, 255)
  90. }
  91.  
  92. --Pages
  93. local page1 = venyx:addPage("Main")
  94. local page2 = venyx:addPage("Other")
  95.  
  96. --Page 1
  97. local FirstSection1 = page1:addSection("Auto Farm")
  98. local FirstSection2 = page1:addSection("Options")
  99.  
  100. FirstSection1:addToggle(
  101.     "Enabled",
  102.     nil,
  103.     function(value)
  104.         AutoFarm = value
  105.         if value and not AutoFarmRunning then
  106.             coroutine.resume(AutoFarmFunc)
  107.         end
  108.     end
  109. )
  110. FirstSection2:addToggle(
  111.     "Touch The Ground",
  112.     nil,
  113.     function(value)
  114.         TouchTheRoad = value
  115.     end
  116. )
  117.  
  118. --Page 2
  119. local SecondSection1 = page2:addSection("Info")
  120. local SecondSection2 = page2:addSection("Settings")
  121.  
  122. SecondSection1:addButton("Credits:")
  123. SecondSection1:addButton("alohabeach#3448 - scripter", function() setclipboard("alohabeach#3448") jailbreakNotify("Copied to clipboard.") end)
  124. SecondSection1:addButton("Dino#3523 - ui library", function() setclipboard("Dino#3523") jailbreakNotify("Copied to clipboard.") end)
  125. SecondSection1:addButton("Discord:")
  126. SecondSection1:addButton("https://dsc.gg/CarHub", function() setclipboard("https://dsc.gg/CarHub") jailbreakNotify("Copied to clipboard.") end)
  127. SecondSection2:addToggle(
  128.     "Anti AFK",
  129.     true,
  130.     function(value)
  131.         AntiAFK = value
  132.     end
  133. )
  134. SecondSection2:addKeybind(
  135.     "Toggle Keybind",
  136.     Enum.KeyCode.RightShift,
  137.     function()
  138.         venyx:toggle()
  139.     end,
  140.     function(key)
  141.         Keybind = key.KeyCode.Name
  142.     end
  143. )
  144. for theme, color in pairs(themes) do
  145.     SecondSection2:addColorPicker(
  146.         theme,
  147.         color,
  148.         function(color3)
  149.             venyx:setTheme(theme, color3)
  150.         end
  151.     )
  152. end
  153.  
  154. --load
  155. venyx:SelectPage(venyx.pages[1], true)