Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xovanDJX/Backup/main/Venyx%20UI%20Library"))()
- local venyx = library.new("Venyx | Universal Vehicle Speed | Restored By X_LuaF#0705", 5013109572)
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local UserInputService = game:GetService("UserInputService")
- local LocalPlayer = Players.LocalPlayer
- local themes = {
- Background = Color3.fromRGB(61, 60, 124),
- Glow = Color3.fromRGB(60, 63, 221),
- Accent = Color3.fromRGB(55, 52, 90),
- LightContrast = Color3.fromRGB(64, 65, 128),
- DarkContrast = Color3.fromRGB(32, 33, 64),
- TextColor = Color3.fromRGB(255, 255, 255)
- }
- local function GetVehicleFromDescendant(Descendant)
- return
- Descendant:FindFirstAncestor(LocalPlayer.Name .. "\'s Car") or
- (Descendant:FindFirstAncestor("Body") and Descendant:FindFirstAncestor("Body").Parent) or
- (Descendant:FindFirstAncestor("Misc") and Descendant:FindFirstAncestor("Misc").Parent) or
- Descendant:FindFirstAncestorWhichIsA("Model")
- end
- local function TeleportVehicle(CoordinateFrame: CFrame)
- local Parent = LocalPlayer.Character.Parent
- local Vehicle = GetVehicleFromDescendant(LocalPlayer.Character:FindFirstChildWhichIsA("Humanoid").SeatPart)
- LocalPlayer.Character.Parent = Vehicle
- local success, response = pcall(function()
- return Vehicle:SetPrimaryPartCFrame(CoordinateFrame)
- end)
- if not success then
- return Vehicle:MoveTo(CoordinateFrame.Position)
- end
- end
- local vehiclePage = venyx:addPage("Vehicle", 8356815386)
- local usageSection = vehiclePage:addSection("Usage")
- local velocityEnabled = true;
- usageSection:addToggle("Keybinds Active", velocityEnabled, function(v) velocityEnabled = v end)
- local flightSection = vehiclePage:addSection("Flight")
- local flightEnabled = false
- local flightSpeed = 1
- flightSection:addToggle("Enabled", false, function(v) flightEnabled = v end)
- flightSection:addSlider("Speed", 100, 0, 800, function(v) flightSpeed = v / 100 end)
- local defaultCharacterParent
- RunService.Stepped:Connect(function()
- local Character = LocalPlayer.Character
- if flightEnabled == true then
- if Character and typeof(Character) == "Instance" then
- local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
- if Humanoid and typeof(Humanoid) == "Instance" then
- local SeatPart = Humanoid.SeatPart
- if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
- local Vehicle = GetVehicleFromDescendant(SeatPart)
- if Vehicle and Vehicle:IsA("Model") then
- Character.Parent = Vehicle
- if not Vehicle.PrimaryPart then
- if SeatPart.Parent == Vehicle then
- Vehicle.PrimaryPart = SeatPart
- else
- Vehicle.PrimaryPart = Vehicle:FindFirstChildWhichIsA("BasePart")
- end
- end
- local PrimaryPartCFrame = Vehicle:GetPrimaryPartCFrame()
- 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)))
- SeatPart.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
- SeatPart.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
- end
- end
- end
- end
- else
- if Character and typeof(Character) == "Instance" then
- Character.Parent = defaultCharacterParent or Character.Parent
- defaultCharacterParent = Character.Parent
- end
- end
- end)
- local speedSection = vehiclePage:addSection("Acceleration")
- local velocityMult = 0.025;
- speedSection:addSlider("Multiplier (Thousandths)", 25, 0, 50, function(v) velocityMult = v / 1000; end)
- local velocityEnabledKeyCode = Enum.KeyCode.W;
- speedSection:addKeybind("Velocity Enabled", velocityEnabledKeyCode, function()
- if not velocityEnabled then
- return
- end
- while UserInputService:IsKeyDown(velocityEnabledKeyCode) do
- task.wait(0)
- local Character = LocalPlayer.Character
- if Character and typeof(Character) == "Instance" then
- local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
- if Humanoid and typeof(Humanoid) == "Instance" then
- local SeatPart = Humanoid.SeatPart
- if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
- SeatPart.AssemblyLinearVelocity *= Vector3.new(1 + velocityMult, 1, 1 + velocityMult)
- end
- end
- end
- if not velocityEnabled then
- break
- end
- end
- end, function(v) velocityEnabledKeyCode = v.KeyCode end)
- local decelerateSelection = vehiclePage:addSection("Deceleration")
- local qbEnabledKeyCode = Enum.KeyCode.S
- local velocityMult2 = 150e-3
- decelerateSelection:addSlider("Brake Force (Thousandths)", velocityMult2*1e3, 0, 300, function(v) velocityMult2 = v / 1000; end)
- decelerateSelection:addKeybind("Quick Brake Enabled", qbEnabledKeyCode, function()
- if not velocityEnabled then
- return
- end
- while UserInputService:IsKeyDown(qbEnabledKeyCode) do
- task.wait(0)
- local Character = LocalPlayer.Character
- if Character and typeof(Character) == "Instance" then
- local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
- if Humanoid and typeof(Humanoid) == "Instance" then
- local SeatPart = Humanoid.SeatPart
- if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
- SeatPart.AssemblyLinearVelocity *= Vector3.new(1 - velocityMult2, 1, 1 - velocityMult2)
- end
- end
- end
- if not velocityEnabled then
- break
- end
- end
- end, function(v) qbEnabledKeyCode = v.KeyCode end)
- decelerateSelection:addKeybind("Stop the Vehicle", Enum.KeyCode.P, function(v)
- if not velocityEnabled then
- return
- end
- local Character = LocalPlayer.Character
- if Character and typeof(Character) == "Instance" then
- local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
- if Humanoid and typeof(Humanoid) == "Instance" then
- local SeatPart = Humanoid.SeatPart
- if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
- SeatPart.AssemblyLinearVelocity *= Vector3.new(0, 0, 0)
- SeatPart.AssemblyAngularVelocity *= Vector3.new(0, 0, 0)
- end
- end
- end
- end)
- local springSection = vehiclePage:addSection("Springs")
- springSection:addToggle("Visible", false, function(v)
- local Character = LocalPlayer.Character
- if Character and typeof(Character) == "Instance" then
- local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
- if Humanoid and typeof(Humanoid) == "Instance" then
- local SeatPart = Humanoid.SeatPart
- if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
- local Vehicle = GetVehicleFromDescendant(SeatPart)
- for _, SpringConstraint in pairs(Vehicle:GetDescendants()) do
- if SpringConstraint:IsA("SpringConstraint") then
- SpringConstraint.Visible = v
- end
- end
- end
- end
- end
- end)
- repeat
- task.wait(0)
- until game:IsLoaded() and game.PlaceId > 0
- if game.PlaceId == 3351674303 then
- local drivingEmpirePage = venyx:addPage("Wayfort", 8357222903)
- local dealershipSection = drivingEmpirePage:addSection("Vehicle Dealership")
- local dealershipList = {}
- for index, value in pairs(workspace:WaitForChild("Game"):WaitForChild("Dealerships"):WaitForChild("Dealerships"):GetChildren()) do
- table.insert(dealershipList, value.Name)
- end
- dealershipSection:addDropdown("Dealership", dealershipList, function(v)
- game:GetService("ReplicatedStorage").Remotes.Location:FireServer("Enter", v)
- end)
- elseif game.PlaceId == 891852901 then
- local greenvillePage = venyx:addPage("Greenville", 8360925727)
- elseif game.PlaceId == 54865335 then
- local ultimateDrivingPage = venyx:addPage("Westover", 8360954483)
- elseif game.PlaceId == 5232896677 then
- local pacificoPage = venyx:addPage("Pacifico", 3028235557)
- end
- local infoPage = venyx:addPage("Information", 8356778308)
- local discordSection = infoPage:addSection("shawnjbragdon#0001")
- discordSection:addButton(syn and "Join shawn's Discord Server" or "Join Creator's Discord Server", function()
- 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"},
- Body = game:GetService("HttpService"):JSONEncode({cmd = "INVITE_BROWSER",args = {code = "afSxatJjTg"},nonce = game:GetService("HttpService"):GenerateGUID(false)}),}) return end
- setclipboard("https://www.discord.com/invite/afSxatJjTg")
- end)
- local discordSection1 = infoPage:addSection("LuaXie")
- discordSection1:addButton(syn and "Join LuaXie's Discord Server" or "Join LuaXie's Discord Server", function() setclipboard("discord.gg/8tRb8MQcW5") end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement