Run it
Copy the script and paste it into your executor.
Players = :()
UserInputService = :()
RunService = :()
player = Players.LocalPlayer
playerGui = player:()
playerGui:()
playerGui.SpeedControllerGui:()
screenGui = .()
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.Parent = playerGui
mainFrame = .()
mainFrame.Name =
mainFrame.Size = .(, , , )
mainFrame.Position = .(, , , )
mainFrame.BackgroundColor3 = .(, , )
mainFrame.BorderSizePixel =
mainFrame.Active =
mainFrame.Draggable =
mainFrame.Parent = screenGui
uiCorner = .()
uiCorner.CornerRadius = .(, )
uiCorner.Parent = mainFrame
titleLabel = .()
titleLabel.Size = .(, , , )
titleLabel.Position = .(, , , )
titleLabel.BackgroundTransparency =
titleLabel.Text =
titleLabel.TextColor3 = .(, , )
titleLabel.TextSize =
titleLabel.Font = .Font.SourceSansBold
titleLabel.TextXAlignment = .TextXAlignment.Left
titleLabel.Parent = mainFrame
closeButton = .()
closeButton.Size = .(, , , )
closeButton.Position = .(, -, , )
closeButton.BackgroundColor3 = .(, , )
closeButton.Text =
closeButton.TextColor3 = .(, , )
closeButton.TextSize =
closeButton.Font = .Font.SourceSansBold
closeButton.Parent = mainFrame
closeCorner = .()
closeCorner.CornerRadius = .(, )
closeCorner.Parent = closeButton
closeButton.MouseButton1Click:(()
mainFrame.Visible =
)
speedLabel = .()
speedLabel.Size = .(, -, , )
speedLabel.Position = .(, , , )
speedLabel.BackgroundTransparency =
speedLabel.Text =
speedLabel.TextColor3 = .(, , )
speedLabel.TextSize =
speedLabel.Font = .Font.SourceSansBold
speedLabel.Parent = mainFrame
sliderTrack = .()
sliderTrack.Size = .(, -, , )
sliderTrack.Position = .(, , , )
sliderTrack.BackgroundColor3 = .(, , )
sliderTrack.BorderSizePixel =
sliderTrack.Parent = mainFrame
trackCorner = .()
trackCorner.CornerRadius = .(, )
trackCorner.Parent = sliderTrack
sliderKnob = .()
sliderKnob.Size = .(, , , )
sliderKnob.Position = .(, -, , -)
sliderKnob.BackgroundColor3 = .(, , )
sliderKnob.Text =
sliderKnob.Parent = sliderTrack
knobCorner = .()
knobCorner.CornerRadius = .(, )
knobCorner.Parent = sliderKnob
MIN_SPEED =
MAX_SPEED =
currentKMH =
dragging =
(input)
trackAbsPos = sliderTrack.AbsolutePosition.X
trackAbsSize = sliderTrack.AbsoluteSize.X
mouseX = input.Position.X
relativeX = .(mouseX - trackAbsPos, , trackAbsSize)
alpha = relativeX / trackAbsSize
sliderKnob.Position = .(alpha, -, , -)
currentKMH = .(MIN_SPEED + (MAX_SPEED - MIN_SPEED) * alpha)
speedLabel.Text = .(, currentKMH)
sliderKnob.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
)
UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
)
UserInputService.InputChanged:((input)
dragging (input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch)
(input)
)
RunService.Heartbeat:(()
character = player.Character
character
humanoid = character:()
humanoid
seat = humanoid.SeatPart
seat seat:()
targetStudsPerSec = currentKMH /
seat.MaxSpeed = targetStudsPerSec
seat.Torque = .(seat.Torque, )
seat.Throttle > - currentKMH >
rootPart = seat.AssemblyRootPart seat
currentVel = rootPart.AssemblyLinearVelocity
forwardVector = seat.CFrame.LookVector
targetVelocity = forwardVector * targetStudsPerSec
rootPart.AssemblyLinearVelocity = .(
targetVelocity.X,
currentVel.Y,
targetVelocity.Z
)
)You will be able to directly control the car's speed using a slider. It does not work properly in some games. --------------- (List of Games that have been confirmed to work) Driving Empire Metro Life City RP LiveTopia RP Car Dealerships Tycoon Taxi Boss Car Suspension Test San Diego Border Roleplay Car Driving Ultimate Obakyu Electric Railway Vehicle Crash Physics X Nitro Car