Advertisement
LuaXe

FE Vehicle Speed Changer Modified

Jun 7th, 2023 (edited)
8,331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.85 KB | Source Code | 0 0
  1. local library = loadstring(game:HttpGet("https://paste.ee/r/rH1r7"))()
  2. local venyx = library.new("Venyx | Universal Vehicle Speed | Restored By X_LuaF#0705", 5013109572)
  3.  
  4. local Players = game:GetService("Players")
  5. local RunService = game:GetService("RunService")
  6. local UserInputService = game:GetService("UserInputService")
  7. local LocalPlayer = Players.LocalPlayer
  8.  
  9. local themes = {
  10.     Background = Color3.fromRGB(61, 60, 124),
  11.     Glow = Color3.fromRGB(60, 63, 221),
  12.     Accent = Color3.fromRGB(55, 52, 90),
  13.     LightContrast = Color3.fromRGB(64, 65, 128),
  14.     DarkContrast = Color3.fromRGB(32, 33, 64),  
  15.     TextColor = Color3.fromRGB(255, 255, 255)
  16. }
  17.  
  18. local function GetVehicleFromDescendant(Descendant)
  19.     return
  20.         Descendant:FindFirstAncestor(LocalPlayer.Name .. "\'s Car") or
  21.         (Descendant:FindFirstAncestor("Body") and Descendant:FindFirstAncestor("Body").Parent) or
  22.         (Descendant:FindFirstAncestor("Misc") and Descendant:FindFirstAncestor("Misc").Parent) or
  23.         Descendant:FindFirstAncestorWhichIsA("Model")
  24. end
  25.  
  26. local function TeleportVehicle(CoordinateFrame: CFrame)
  27.     local Parent = LocalPlayer.Character.Parent
  28.     local Vehicle = GetVehicleFromDescendant(LocalPlayer.Character:FindFirstChildWhichIsA("Humanoid").SeatPart)
  29.     LocalPlayer.Character.Parent = Vehicle
  30.     local success, response = pcall(function()
  31.         return Vehicle:SetPrimaryPartCFrame(CoordinateFrame)
  32.     end)
  33.     if not success then
  34.         return Vehicle:MoveTo(CoordinateFrame.Position)
  35.     end
  36. end
  37.  
  38.  
  39. local vehiclePage = venyx:addPage("Vehicle", 8356815386)
  40. local usageSection = vehiclePage:addSection("Usage")
  41. local velocityEnabled = true;
  42. usageSection:addToggle("Keybinds Active", velocityEnabled, function(v) velocityEnabled = v end)
  43. local flightSection = vehiclePage:addSection("Flight")
  44. local flightEnabled = false
  45. local flightSpeed = 1
  46. flightSection:addToggle("Enabled", false, function(v) flightEnabled = v end)
  47. flightSection:addSlider("Speed", 100, 0, 800, function(v) flightSpeed = v / 100 end)
  48. local defaultCharacterParent
  49. RunService.Stepped:Connect(function()
  50.     local Character = LocalPlayer.Character
  51.     if flightEnabled == true then
  52.         if Character and typeof(Character) == "Instance" then
  53.             local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  54.             if Humanoid and typeof(Humanoid) == "Instance" then
  55.                 local SeatPart = Humanoid.SeatPart
  56.                 if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
  57.                     local Vehicle = GetVehicleFromDescendant(SeatPart)
  58.                     if Vehicle and Vehicle:IsA("Model") then
  59.                         Character.Parent = Vehicle
  60.                         if not Vehicle.PrimaryPart then
  61.                             if SeatPart.Parent == Vehicle then
  62.                                 Vehicle.PrimaryPart = SeatPart
  63.                             else
  64.                                 Vehicle.PrimaryPart = Vehicle:FindFirstChildWhichIsA("BasePart")
  65.                             end
  66.                         end
  67.                         local PrimaryPartCFrame = Vehicle:GetPrimaryPartCFrame()
  68.                         Vehicle:SetPrimaryPartCFrame(CFrame.new(PrimaryPartCFrame.Position, PrimaryPartCFrame.Position + workspace.CurrentCamera.CFrame.LookVector) * (UserInputService:GetFocusedTextBox() and CFrame.new(0, 0, 0) or CFrame.new((UserInputService:IsKeyDown(Enum.KeyCode.D) and flightSpeed) or (UserInputService:IsKeyDown(Enum.KeyCode.A) and -flightSpeed) or 0, (UserInputService:IsKeyDown(Enum.KeyCode.E) and flightSpeed / 2) or (UserInputService:IsKeyDown(Enum.KeyCode.Q) and -flightSpeed / 2) or 0, (UserInputService:IsKeyDown(Enum.KeyCode.S) and flightSpeed) or (UserInputService:IsKeyDown(Enum.KeyCode.W) and -flightSpeed) or 0)))
  69.                         SeatPart.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
  70.                         SeatPart.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
  71.                     end
  72.                 end
  73.             end
  74.         end
  75.     else
  76.         if Character and typeof(Character) == "Instance" then
  77.             Character.Parent = defaultCharacterParent or Character.Parent
  78.             defaultCharacterParent = Character.Parent
  79.         end
  80.     end
  81. end)
  82. local speedSection = vehiclePage:addSection("Acceleration")
  83. local velocityMult = 0.025;
  84. speedSection:addSlider("Multiplier (Thousandths)", 25, 0, 50, function(v) velocityMult = v / 1000; end)
  85. local velocityEnabledKeyCode = Enum.KeyCode.W;
  86. speedSection:addKeybind("Velocity Enabled", velocityEnabledKeyCode, function()
  87.     if not velocityEnabled then
  88.         return
  89.     end
  90.     while UserInputService:IsKeyDown(velocityEnabledKeyCode) do
  91.         task.wait(0)
  92.         local Character = LocalPlayer.Character
  93.         if Character and typeof(Character) == "Instance" then
  94.             local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  95.             if Humanoid and typeof(Humanoid) == "Instance" then
  96.                 local SeatPart = Humanoid.SeatPart
  97.                 if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
  98.                     SeatPart.AssemblyLinearVelocity *= Vector3.new(1 + velocityMult, 1, 1 + velocityMult)
  99.                 end
  100.             end
  101.         end
  102.         if not velocityEnabled then
  103.             break
  104.         end
  105.     end
  106. end, function(v) velocityEnabledKeyCode = v.KeyCode end)
  107. local decelerateSelection = vehiclePage:addSection("Deceleration")
  108. local qbEnabledKeyCode = Enum.KeyCode.S
  109. local velocityMult2 = 150e-3
  110. decelerateSelection:addSlider("Brake Force (Thousandths)", velocityMult2*1e3, 0, 300, function(v) velocityMult2 = v / 1000; end)
  111. decelerateSelection:addKeybind("Quick Brake Enabled", qbEnabledKeyCode, function()
  112.     if not velocityEnabled then
  113.         return
  114.     end
  115.     while UserInputService:IsKeyDown(qbEnabledKeyCode) do
  116.         task.wait(0)
  117.         local Character = LocalPlayer.Character
  118.         if Character and typeof(Character) == "Instance" then
  119.             local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  120.             if Humanoid and typeof(Humanoid) == "Instance" then
  121.                 local SeatPart = Humanoid.SeatPart
  122.                 if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
  123.                     SeatPart.AssemblyLinearVelocity *= Vector3.new(1 - velocityMult2, 1, 1 - velocityMult2)
  124.                 end
  125.             end
  126.         end
  127.         if not velocityEnabled then
  128.             break
  129.         end
  130.     end
  131. end, function(v) qbEnabledKeyCode = v.KeyCode end)
  132. decelerateSelection:addKeybind("Stop the Vehicle", Enum.KeyCode.P, function(v)
  133.     if not velocityEnabled then
  134.         return
  135.     end
  136.     local Character = LocalPlayer.Character
  137.     if Character and typeof(Character) == "Instance" then
  138.         local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  139.         if Humanoid and typeof(Humanoid) == "Instance" then
  140.             local SeatPart = Humanoid.SeatPart
  141.             if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
  142.                 SeatPart.AssemblyLinearVelocity *= Vector3.new(0, 0, 0)
  143.                 SeatPart.AssemblyAngularVelocity *= Vector3.new(0, 0, 0)
  144.             end
  145.         end
  146.     end
  147. end)
  148. local springSection = vehiclePage:addSection("Springs")
  149. springSection:addToggle("Visible", false, function(v)
  150.     local Character = LocalPlayer.Character
  151.     if Character and typeof(Character) == "Instance" then
  152.         local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  153.         if Humanoid and typeof(Humanoid) == "Instance" then
  154.             local SeatPart = Humanoid.SeatPart
  155.             if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
  156.                 local Vehicle = GetVehicleFromDescendant(SeatPart)
  157.                 for _, SpringConstraint in pairs(Vehicle:GetDescendants()) do
  158.                     if SpringConstraint:IsA("SpringConstraint") then
  159.                         SpringConstraint.Visible = v
  160.                     end
  161.                 end
  162.             end
  163.         end
  164.     end
  165. end)
  166. repeat
  167.     task.wait(0)
  168. until game:IsLoaded() and game.PlaceId > 0
  169. if game.PlaceId == 3351674303 then
  170.     local drivingEmpirePage = venyx:addPage("Wayfort", 8357222903)
  171.     local dealershipSection = drivingEmpirePage:addSection("Vehicle Dealership")
  172.     local dealershipList = {}
  173.     for index, value in pairs(workspace:WaitForChild("Game"):WaitForChild("Dealerships"):WaitForChild("Dealerships"):GetChildren()) do
  174.         table.insert(dealershipList, value.Name)
  175.     end
  176.     dealershipSection:addDropdown("Dealership", dealershipList, function(v)
  177.         game:GetService("ReplicatedStorage").Remotes.Location:FireServer("Enter", v)
  178.     end)
  179. elseif game.PlaceId == 891852901 then
  180.     local greenvillePage = venyx:addPage("Greenville", 8360925727)
  181. elseif game.PlaceId == 54865335 then
  182.     local ultimateDrivingPage = venyx:addPage("Westover", 8360954483)
  183. elseif game.PlaceId == 5232896677 then
  184.     local pacificoPage = venyx:addPage("Pacifico", 3028235557)
  185. end
  186. local infoPage = venyx:addPage("Information", 8356778308)
  187. local discordSection = infoPage:addSection("shawnjbragdon#0001")
  188. discordSection:addButton(syn and "Join shawn's Discord Server" or "Join Creator's Discord Server", function()
  189. if syn then syn.request({ Url = "http://127.0.0.1:6463/rpc?v=1", Method = "POST",Headers = {["Content-Type"] = "application/json",["Origin"] = "https://discord.com"},
  190. Body = game:GetService("HttpService"):JSONEncode({cmd = "INVITE_BROWSER",args = {code = "afSxatJjTg"},nonce = game:GetService("HttpService"):GenerateGUID(false)}),}) return end
  191. setclipboard("https://www.discord.com/invite/afSxatJjTg")
  192. end)
  193. local discordSection1 = infoPage:addSection("LuaXie")
  194. discordSection1:addButton(syn and "Join LuaXie's Discord Server" or "Join LuaXie's Discord Server", function() setclipboard("discord.gg/8tRb8MQcW5") end)
Tags: Roblox lua
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement