Run it
Copy the script and paste it into your executor.
player = :().LocalPlayer
character = player.Character player.CharacterAdded:()
humanoid = character:()
rootPart = character:()
userInputService = :()
runService = :()
drivingSpeed =
turningSpeed =
isDriving =
originalWalkSpeed =
originalJumpPower =
carBase, bodyVelocity, bodyGyro, weld
currentSpeed =
targetRotation =
keysPressed = {
W = ,
A = ,
S = ,
D =
}
screenGui = .()
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.ZIndexBehavior = .ZIndexBehavior.Sibling
screenGui.Parent = player:()
toggleButton = .()
toggleButton.Size = .(, , , )
toggleButton.Position = .(, -, , )
toggleButton.BackgroundColor3 = .(, , )
toggleButton.BorderSizePixel =
toggleButton.BorderColor3 = .(, , )
toggleButton.Text =
toggleButton.TextColor3 = .(, , )
toggleButton.TextSize =
toggleButton.Font = .Font.SourceSansBold
toggleButton.Modal =
toggleButton.Active =
toggleButton.ZIndex =
toggleButton.Parent = screenGui
toggleCorner = .()
toggleCorner.CornerRadius = .(, )
toggleCorner.Parent = toggleButton
controlsFrame = .()
controlsFrame.Size = .(, , , )
controlsFrame.Position = .(, , , -)
controlsFrame.BackgroundTransparency =
controlsFrame.Visible =
controlsFrame.ZIndex =
controlsFrame.Parent = screenGui
(text, position, size)
button = .()
button.Size = size .(, , , )
button.Position = position
button.BackgroundColor3 = .(, , )
button.BackgroundTransparency =
button.BorderSizePixel =
button.BorderColor3 = .(, , )
button.Text = text
button.TextColor3 = .(, , )
button.TextSize =
button.Font = .Font.SourceSansBold
button.Modal =
button.Active =
button.ZIndex =
button.Parent = controlsFrame
corner = .()
corner.CornerRadius = .(, )
corner.Parent = button
button
upButton = (, .(, , , ))
leftButton = (, .(, , , ))
downButton = (, .(, , , ))
rightButton = (, .(, , , ))
(button, key)
isPressed =
button.MouseButton1Down:(()
isPressed =
keysPressed[key] =
button.BackgroundColor3 = .(, , )
)
button.MouseButton1Up:(()
isPressed =
keysPressed[key] =
button.BackgroundColor3 = .(, , )
)
button.InputBegan:((input)
input.UserInputType == .UserInputType.Touch
isPressed =
keysPressed[key] =
button.BackgroundColor3 = .(, , )
)
button.InputEnded:((input)
input.UserInputType == .UserInputType.Touch
isPressed =
keysPressed[key] =
button.BackgroundColor3 = .(, , )
)
button.MouseLeave:(()
isPressed
isPressed =
keysPressed[key] =
button.BackgroundColor3 = .(, , )
)
(upButton, )
(leftButton, )
(downButton, )
(rightButton, )
()
carBase
(() carBase:() )
carBase = .()
carBase.Name =
carBase.Size = .(, , )
carBase.Transparency =
carBase.CanCollide =
carBase.Anchored =
carBase.CFrame = rootPart.CFrame
carBase.Parent =
bodyVelocity = .()
bodyVelocity.MaxForce = .(, , )
bodyVelocity.Velocity = .(, , )
bodyVelocity.Parent = carBase
bodyGyro = .()
bodyGyro.MaxTorque = .(, , )
bodyGyro.P =
bodyGyro.Parent = carBase
weld = .()
weld.Part0 = carBase
weld.Part1 = rootPart
weld.C0 = .(, , )
weld.Parent = carBase
yRotation = (, rootPart.CFrame:())
targetRotation = yRotation
()
isDriving = isDriving
isDriving
()
.()
humanoid.WalkSpeed =
humanoid.JumpPower =
humanoid.Sit =
toggleButton.Text =
toggleButton.BackgroundColor3 = .(, , )
controlsFrame.Visible =
carBase
(() carBase:() )
carBase =
.()
humanoid.Sit =
humanoid.WalkSpeed = originalWalkSpeed
humanoid.JumpPower = originalJumpPower
currentSpeed =
toggleButton.Text =
toggleButton.BackgroundColor3 = .(, , )
controlsFrame.Visible =
key, _ (keysPressed)
keysPressed[key] =
upButton.BackgroundColor3 = .(, , )
leftButton.BackgroundColor3 = .(, , )
downButton.BackgroundColor3 = .(, , )
rightButton.BackgroundColor3 = .(, , )
toggleButton.Activated:(()
()
)
userInputService.InputBegan:((input, gameProcessed)
gameProcessed
input.KeyCode == .KeyCode.E
()
input.KeyCode == .KeyCode.W keysPressed.W =
input.KeyCode == .KeyCode.A keysPressed.A =
input.KeyCode == .KeyCode.S keysPressed.S =
input.KeyCode == .KeyCode.D keysPressed.D =
)
userInputService.InputEnded:((input)
input.KeyCode == .KeyCode.W keysPressed.W =
input.KeyCode == .KeyCode.A keysPressed.A =
input.KeyCode == .KeyCode.S keysPressed.S =
input.KeyCode == .KeyCode.D keysPressed.D =
)
connection = runService.Heartbeat:((deltaTime)
isDriving carBase bodyVelocity bodyGyro
keysPressed.W
currentSpeed = .(currentSpeed + , drivingSpeed)
keysPressed.S
currentSpeed = .(currentSpeed - , -drivingSpeed * )
currentSpeed >
currentSpeed = .(currentSpeed - , )
currentSpeed <
currentSpeed = .(currentSpeed + , )
keysPressed.A
targetRotation = targetRotation + turningSpeed * deltaTime
keysPressed.D
targetRotation = targetRotation - turningSpeed * deltaTime
bodyGyro.CFrame = .(, targetRotation, )
direction = bodyGyro.CFrame.LookVector
bodyVelocity.Velocity = direction * currentSpeed
carBase carBase.Parent
carBase.CFrame = .(carBase.Position.X, carBase.Position.Y, carBase.Position.Z) * .(, targetRotation, )
)
player.CharacterAdded:((newChar)
character = newChar
humanoid = character:()
rootPart = character:()
isDriving =
currentSpeed =
carBase
(() carBase:() )
carBase =
toggleButton.Text =
toggleButton.BackgroundColor3 = .(, , )
controlsFrame.Visible =
)-Driving

Universal