local VenyxLibrary = loadstring(game:HttpGet("https://raw.githubusercontent.com/Documantation12/Universal-Vehicle-Script/main/Library.lua"))() local Venyx = VenyxLibrary.new("OnlyHubs", 5013109572) local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local HttpService = game:GetService("HttpService") local LocalPlayer = Players.LocalPlayer local Camera = workspace.CurrentCamera local configFileName = "OnlyHubs_Config.json" local currentThemeName = "Black & Grey" local velocityEnabled = true local flightEnabled = false local flightSpeed = 1 local velocityMult = 0.010 local velocityMult2 = 0.005 local velocityEnabledKeyCode = Enum.KeyCode.E local qbEnabledKeyCode = Enum.KeyCode.S local espEnabled = false local espBoxes = false local espNames = false local espDistance = false local espSpeed = false local showLocalSpeed = false local espColor = Color3.fromRGB(255, 255, 255) local speedCapEnabled = false local speedCap = 300 local espCache = {} local defaultCharacterParent local localSpeedText = Drawing.new("Text") localSpeedText.Size = 18 localSpeedText.Center = true localSpeedText.Outline = true localSpeedText.Visible = false local themes = { ["Black & Grey"] = { Background = Color3.fromRGB(20, 20, 20), Glow = Color3.fromRGB(255, 255, 255), Accent = Color3.fromRGB(40, 40, 40), LightContrast = Color3.fromRGB(30, 30, 30), DarkContrast = Color3.fromRGB(15, 15, 15), TextColor = Color3.fromRGB(255, 255, 255) }, ["Ocean Breeze"] = { Background = Color3.fromRGB(15, 25, 35), Glow = Color3.fromRGB(0, 180, 255), Accent = Color3.fromRGB(20, 75, 125), LightContrast = Color3.fromRGB(20, 40, 60), DarkContrast = Color3.fromRGB(10, 15, 25), TextColor = Color3.fromRGB(240, 250, 255) }, ["Neon Dreams"] = { Background = Color3.fromRGB(25, 15, 35), Glow = Color3.fromRGB(220, 0, 255), Accent = Color3.fromRGB(110, 30, 140), LightContrast = Color3.fromRGB(40, 25, 55), DarkContrast = Color3.fromRGB(15, 10, 25), TextColor = Color3.fromRGB(255, 230, 255) }, ["Sunset Orange"] = { Background = Color3.fromRGB(35, 20, 15), Glow = Color3.fromRGB(255, 120, 0), Accent = Color3.fromRGB(140, 60, 20), LightContrast = Color3.fromRGB(55, 35, 25), DarkContrast = Color3.fromRGB(25, 15, 10), TextColor = Color3.fromRGB(255, 240, 230) }, ["Toxic Forest"] = { Background = Color3.fromRGB(15, 25, 15), Glow = Color3.fromRGB(0, 255, 120), Accent = Color3.fromRGB(30, 120, 60), LightContrast = Color3.fromRGB(25, 45, 25), DarkContrast = Color3.fromRGB(10, 15, 10), TextColor = Color3.fromRGB(230, 255, 230) } } local function applySelectedTheme(themeName) local selected = themes[themeName] if selected then currentThemeName = themeName for index, value in pairs(selected) do pcall(Venyx.setTheme, Venyx, index, value) end end end local function SaveConfiguration() if writefile then local configData = { Theme = currentThemeName, FlightSpeed = flightSpeed, VelocityMult = velocityMult, VelocityMult2 = velocityMult2, SpeedCapEnabled = speedCapEnabled, SpeedCap = speedCap, ESPEnabled = espEnabled, ESPBoxes = espBoxes, ESPNames = espNames, ESPDistance = espDistance, ESPSpeed = espSpeed, ShowLocalSpeed = showLocalSpeed, ESPColorR = espColor.R, ESPColorG = espColor.G, ESPColorB = espColor.B } local success, encoded = pcall(function() return HttpService:JSONEncode(configData) end) if success then writefile(configFileName, encoded) game:GetService("StarterGui"):SetCore("SendNotification", { Title = "OnlyHubs", Text = "Configuration saved successfully.", Duration = 3 }) end end end local function LoadConfiguration() if isfile and isfile(configFileName) and readfile then local success, decoded = pcall(function() return HttpService:JSONDecode(readfile(configFileName)) end) if success and type(decoded) == "table" then if decoded.Theme then applySelectedTheme(decoded.Theme) end if decoded.FlightSpeed ~= nil then flightSpeed = decoded.FlightSpeed end if decoded.VelocityMult ~= nil then velocityMult = decoded.VelocityMult end if decoded.VelocityMult2 ~= nil then velocityMult2 = decoded.VelocityMult2 end if decoded.SpeedCapEnabled ~= nil then speedCapEnabled = decoded.SpeedCapEnabled end if decoded.SpeedCap ~= nil then speedCap = decoded.SpeedCap end if decoded.ESPEnabled ~= nil then espEnabled = decoded.ESPEnabled end if decoded.ESPBoxes ~= nil then espBoxes = decoded.ESPBoxes end if decoded.ESPNames ~= nil then espNames = decoded.ESPNames end if decoded.ESPDistance ~= nil then espDistance = decoded.ESPDistance end if decoded.ESPSpeed ~= nil then espSpeed = decoded.ESPSpeed end if decoded.ShowLocalSpeed ~= nil then showLocalSpeed = decoded.ShowLocalSpeed end if decoded.ESPColorR and decoded.ESPColorG and decoded.ESPColorB then espColor = Color3.new(decoded.ESPColorR, decoded.ESPColorG, decoded.ESPColorB) end game:GetService("StarterGui"):SetCore("SendNotification", { Title = "OnlyHubs", Text = "Configuration loaded successfully.", Duration = 3 }) end end end applySelectedTheme(currentThemeName) 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") usageSection:addToggle("Keybinds Active", velocityEnabled, function(v) velocityEnabled = v end) local flightSection = vehiclePage:addSection("Flight") flightSection:addToggle("Enabled", flightEnabled, function(v) flightEnabled = v end) flightSection:addSlider("Speed", flightSpeed * 100, 0, 800, function(v) flightSpeed = v / 100 end) 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") speedSection:addSlider("Multiplier (Thousandths)", velocityMult * 1000, 0, 50, function(v) velocityMult = v / 1000 end) speedSection:addToggle("Enable Speed Cap", speedCapEnabled, function(v) speedCapEnabled = v end) speedSection:addSlider("Max Speed (MPH)", speedCap, 0, 1000, function(v) speedCap = v end) 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 local currentSpeedMPH = SeatPart.AssemblyLinearVelocity.Magnitude * 0.62 if not speedCapEnabled or currentSpeedMPH <= speedCap then SeatPart.AssemblyLinearVelocity *= Vector3.new(1 + velocityMult, 1, 1 + velocityMult) end end end end if not velocityEnabled then break end end end, function(v) velocityEnabledKeyCode = v.KeyCode end) local decelerateSelection = vehiclePage:addSection("Deceleration") decelerateSelection:addSlider("Brake Force (Thousandths)", velocityMult2 * 1000, 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) local espPage = Venyx:addPage("ESP", 5012544693) local espSection = espPage:addSection("Player ESP") espSection:addToggle("Enable ESP", espEnabled, function(v) espEnabled = v end) espSection:addToggle("Show Boxes", espBoxes, function(v) espBoxes = v end) espSection:addToggle("Show Names", espNames, function(v) espNames = v end) espSection:addToggle("Show Distance", espDistance, function(v) espDistance = v end) espSection:addToggle("Show Speed (MPH)", espSpeed, function(v) espSpeed = v end) espSection:addColorPicker("ESP Color", espColor, function(v) espColor = v end) local function createESP(player) if espCache[player] then return end espCache[player] = { Box = Drawing.new("Square"), Name = Drawing.new("Text"), Distance = Drawing.new("Text"), Speed = Drawing.new("Text") } local cache = espCache[player] cache.Box.Thickness = 1 cache.Box.Filled = false cache.Box.Transparency = 1 cache.Name.Size = 16 cache.Name.Center = true cache.Name.Outline = true cache.Distance.Size = 14 cache.Distance.Center = true cache.Distance.Outline = true cache.Speed.Size = 14 cache.Speed.Center = true cache.Speed.Outline = true end RunService.RenderStepped:Connect(function() if showLocalSpeed and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then local hrp = LocalPlayer.Character.HumanoidRootPart local head = LocalPlayer.Character:FindFirstChild("Head") local vector, onScreen = Camera:WorldToViewportPoint(hrp.Position) if onScreen then local headPos = Camera:WorldToViewportPoint(head and head.Position + Vector3.new(0, 1.5, 0) or hrp.Position + Vector3.new(0, 3.5, 0)) local mph = math.floor(hrp.AssemblyLinearVelocity.Magnitude * 0.62) localSpeedText.Text = tostring(mph) .. " MPH" localSpeedText.Position = Vector2.new(headPos.X, headPos.Y - 25) localSpeedText.Color = espColor localSpeedText.Visible = true else localSpeedText.Visible = false end else localSpeedText.Visible = false end for _, player in ipairs(Players:GetPlayers()) do if player == LocalPlayer then continue end if not espCache[player] then createESP(player) end local cache = espCache[player] local character = player.Character if espEnabled and character and character:FindFirstChild("HumanoidRootPart") and character:FindFirstChild("Humanoid") and character.Humanoid.Health > 0 then local hrp = character.HumanoidRootPart local head = character:FindFirstChild("Head") local vector, onScreen = Camera:WorldToViewportPoint(hrp.Position) if onScreen then local rootPartPos = Camera:WorldToViewportPoint(hrp.Position) local headPos = Camera:WorldToViewportPoint(head and head.Position + Vector3.new(0, 0.5, 0) or hrp.Position + Vector3.new(0, 3, 0)) local legPos = Camera:WorldToViewportPoint(hrp.Position - Vector3.new(0, 3, 0)) local height = math.max(math.abs(headPos.Y - legPos.Y), 15) local width = math.max(height / 2, 10) if espBoxes then cache.Box.Size = Vector2.new(width, height) cache.Box.Position = Vector2.new(rootPartPos.X - width / 2, rootPartPos.Y - height / 2) cache.Box.Color = espColor cache.Box.Visible = true else cache.Box.Visible = false end if espNames then cache.Name.Text = player.Name cache.Name.Position = Vector2.new(rootPartPos.X, rootPartPos.Y - height / 2 - 20) cache.Name.Color = espColor cache.Name.Visible = true else cache.Name.Visible = false end if espDistance then local dist = math.floor((Camera.CFrame.Position - hrp.Position).Magnitude) cache.Distance.Text = tostring(dist) .. " studs" cache.Distance.Position = Vector2.new(rootPartPos.X, rootPartPos.Y + height / 2 + 5) cache.Distance.Color = espColor cache.Distance.Visible = true else cache.Distance.Visible = false end if espSpeed then local mph = math.floor(hrp.AssemblyLinearVelocity.Magnitude * 0.62) cache.Speed.Text = tostring(mph) .. " MPH" cache.Speed.Position = Vector2.new(rootPartPos.X, rootPartPos.Y - height / 2 - 35) cache.Speed.Color = espColor cache.Speed.Visible = true else cache.Speed.Visible = false end else cache.Box.Visible = false cache.Name.Visible = false cache.Distance.Visible = false cache.Speed.Visible = false end else if cache.Box then cache.Box.Visible = false end if cache.Name then cache.Name.Visible = false end if cache.Distance then cache.Distance.Visible = false end if cache.Speed then cache.Speed.Visible = false end end end end) Players.PlayerRemoving:Connect(function(player) if espCache[player] then espCache[player].Box:Remove() espCache[player].Name:Remove() espCache[player].Distance:Remove() if espCache[player].Speed then espCache[player].Speed:Remove() end espCache[player] = nil 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 settingsPage = Venyx:addPage("Settings", 5012544693) local themeSection = settingsPage:addSection("Customization") themeSection:addDropdown("Color Presets", {"Black & Grey", "Ocean Breeze", "Neon Dreams", "Sunset Orange", "Toxic Forest"}, function(selected) applySelectedTheme(selected) end) local localPlayerInfoSection = settingsPage:addSection("Local Player Info") localPlayerInfoSection:addToggle("Show Own Speed (MPH)", showLocalSpeed, function(v) showLocalSpeed = v end) local configSection = settingsPage:addSection("Configuration") configSection:addButton("Save Configuration", function() SaveConfiguration() end) configSection:addButton("Load Configuration", function() LoadConfiguration() end) local infoPage = Venyx:addPage("Information", 8356778308) local controlsSection = infoPage:addSection("Controls") controlsSection:addButton("Press Right Ctrl to Hide/Show UI", function() end) local discordSection = infoPage:addSection("Discord") discordSection:addButton(syn and "Join the Discord server" or "Copy Discord 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://discord.com" }, Body = game:GetService("HttpService"):JSONEncode({ cmd = "INVITE_BROWSER", args = { code = "ENHYznSPmM" }, nonce = game:GetService("HttpService"):GenerateGUID(false) }), }) return end setclipboard("https://www.discord.com/invite/ENHYznSPmM") end) local function CloseGUI() Venyx:toggle() end UserInputService.InputBegan:Connect(function(input, gameProcessedEvent) if not gameProcessedEvent and input.KeyCode == Enum.KeyCode.RightControl then CloseGUI() end end) LoadConfiguration() pcall(function() game:GetService("StarterGui"):SetCore("SendNotification", { Title = "OnlyHubs", Text = "Press Right Ctrl to hide/show the UI.", Duration = 7 }) end)