Skip to content
RoRoScripts
Vehicle Speed Changer preview
UnknownUniversal

Vehicle Speed Changer

Script
Universal Scriptch33zeburg3rzz
Views
157
Likes
0
Dislikes
0
Added
Script
local OrionLib = loadstring(game:HttpGet("https://raw.githubusercontent.com/jensonhirst/Orion/main/source"))()

local Window = OrionLib:MakeWindow({
	Name = "Universal Vehicle Script",
	HidePremium = true,
	SaveConfig = false,
	IntroEnabled = false
})

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer

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)
	local Vehicle = GetVehicleFromDescendant(LocalPlayer.Character:FindFirstChildWhichIsA("Humanoid").SeatPart)
	LocalPlayer.Character.Parent = Vehicle
	local success = pcall(function()
		Vehicle:SetPrimaryPartCFrame(CoordinateFrame)
	end)
	if not success then
		Vehicle:MoveTo(CoordinateFrame.Position)
	end
end

-- Vehicle tab
local vehicleTab = Window:MakeTab({Name = "Vehicle", Icon = "rbxassetid://4483345998", PremiumOnly = false})

vehicleTab:AddSection({Name = "Usage"})
local velocityEnabled = true
vehicleTab:AddToggle({
	Name = "Toggle Speed",
	Default = true,
	Callback = function(v) velocityEnabled = v end
})

vehicleTab:AddSection({Name = "Flight"})
local flightEnabled = false
local flightSpeed = 1
vehicleTab:AddToggle({
	Name = "Enabled",
	Default = false,
	Callback = function(v) flightEnabled = v end
})
vehicleTab:AddSlider({
	Name = "Speed",
	Min = 0,
	Max = 800,
	Default = 100,
	Increment = 1,
	Callback = 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)

vehicleTab:AddSection({Name = "Acceleration"})
local velocityMult = 0.025
vehicleTab:AddTextbox({
	Name = "Multiplier",
	Default = "0.025",
	TextDisappear = false,
	Callback = function(v)
		local n = tonumber(v)
		if n then
			velocityMult = n
		end
	end
})
local velocityEnabledKeyCode = Enum.KeyCode.W
vehicleTab:AddBind({
	Name = "Velocity Enabled",
	Default = velocityEnabledKeyCode,
	Hold = false,
	Callback = 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
})

vehicleTab:AddSection({Name = "Deceleration"})
local qbEnabledKeyCode = Enum.KeyCode.S
local velocityMult2 = 0.15
vehicleTab:AddSlider({
	Name = "Brake Force (Thousandths)",
	Min = 0,
	Max = 300,
	Default = 150,
	Increment = 1,
	Callback = function(v) velocityMult2 = v / 1000 end
})
vehicleTab:AddBind({
	Name = "Quick Brake Enabled",
	Default = qbEnabledKeyCode,
	Hold = false,
	Callback = 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
})
vehicleTab:AddBind({
	Name = "Stop the Vehicle",
	Default = Enum.KeyCode.P,
	Hold = false,
	Callback = function()
		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
})

vehicleTab:AddSection({Name = "Springs"})
vehicleTab:AddToggle({
	Name = "Visible",
	Default = false,
	Callback = 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 wayfortTab = Window:MakeTab({Name = "Wayfort", Icon = "rbxassetid://4483345998", PremiumOnly = false})
	wayfortTab:AddSection({Name = "Vehicle Dealership"})
	local dealershipList = {}
	for _, value in pairs(workspace:WaitForChild("Game"):WaitForChild("Dealerships"):WaitForChild("Dealerships"):GetChildren()) do
		table.insert(dealershipList, value.Name)
	end
	wayfortTab:AddDropdown({
		Name = "Dealership",
		Default = dealershipList[1] or "",
		Options = dealershipList,
		Callback = function(v)
			game:GetService("ReplicatedStorage").Remotes.Location:FireServer("Enter", v)
		end
	})
elseif game.PlaceId == 891852901 then
	Window:MakeTab({Name = "Greenville", Icon = "rbxassetid://4483345998", PremiumOnly = false})
elseif game.PlaceId == 54865335 then
	Window:MakeTab({Name = "Westover", Icon = "rbxassetid://4483345998", PremiumOnly = false})
elseif game.PlaceId == 5232896677 then
	Window:MakeTab({Name = "Pacifico", Icon = "rbxassetid://4483345998", PremiumOnly = false})
end

OrionLib:Init()

Features

  • very fast yeah not mine
Vehicle Speed Changer · RoScripts