
2.2k Views
2.8k Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
-Studs per hour -mobile keyboard to steer -start driving -stop driving
local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local rootPart = character:WaitForChild("HumanoidRootPart")
local userInputService = game:GetService("UserInputService")
local runService = game:GetService("RunService")
local drivingSpeed = 50
local turningSpeed = 3
local acceleration = 0.8
local deceleration = 1.2
local friction = 0.5
local isDriving = false
local originalWalkSpeed = 16
local originalJumpPower = 50
local carBase, bodyVelocity, bodyGyro, weld
local currentSpeed = 0
local targetRotation = 0
local keysPressed = {
W = false,
A = false,
S = false,
D = false
}
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "DrivingGUI"
screenGui.ResetOnSpawn = false
screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
screenGui.Parent = player:WaitForChild("PlayerGui")
local creditsFrame = Instance.new("Frame")
creditsFrame.Size = UDim2.new(0, 280, 0, 80)
creditsFrame.Position = UDim2.new(1, -300, 1, -100)
creditsFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
creditsFrame.BorderSizePixel = 2
creditsFrame.BorderColor3 = Color3.fromRGB(100, 200, 255)
creditsFrame.ZIndex = 15









This script was the one that inspired me to make my car scripts
also very cool
@pizzascripts
please add car psychics (falling and bumping system)
Can u make it so u can increase and decrease the speed pls? :3
@RealCalemorer I'll try to code that!
WORKS AMAZING ON XENO + no key = 11/10 KEEP UP THE GOOD WORK!!!