Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local VenyxLibrary = loadstring(game:HttpGet("https://raw.githubusercontent.com/Documantation12/Universal-Vehicle-Script/main/Library.lua"))()
- local Venyx = VenyxLibrary.new("Speed Hack Car | Universal (FOR OLD PITER)", 5013109572)
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local UserInputService = game:GetService("UserInputService")
- local LocalPlayer = Players.LocalPlayer
- local Theme = {
- 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)
- }
- for index, value in pairs(Theme) do
- pcall(Venyx.setTheme, Venyx, index, value)
- end
- 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 / 500; 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("Telegram")
- discordSection:addButton(syn and "Join the Telegram server" or "Copy Telegram Link", 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://web.telegram.org"
- },
- Body = game:GetService("HttpService"):JSONEncode({
- cmd = "INVITE_BROWSER",
- args = {
- code = "ENHYznSPmM"
- },
- nonce = game:GetService("HttpService"):GenerateGUID(false)
- }),
- })
- return
- end
- setclipboard("t.me/rkd_piter_scripts")
- end)
- local function CloseGUI()
- Venyx:toggle()
- end
- UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
- if not gameProcessedEvent and input.KeyCode == Enum.KeyCode.RightBracket then
- CloseGUI()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement