Universal Script 📌
2.2k Views
2.8k Executions

FE Car Driving V2

Universal Script 📌
11 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

-Studs per hour -mobile keyboard to steer -start driving -stop driving

View Raw
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


Comments

7
Log in to join the conversation. Login
MrRig's profile picture
MrRig5 months ago

This script was the one that inspired me to make my car scripts

1
joeylol's profile picture
joeylol11 months ago

also very cool

1
joeylol's profile picture
joeylol11 months ago

@pizzascripts

1
joeylol's profile picture
joeylol11 months ago

please add car psychics (falling and bumping system)

1
RealCalemorer's profile picture
RealCalemorer11 months ago

Can u make it so u can increase and decrease the speed pls? :3

1
PizzaScripts's profile picture
PizzaScriptsUploader11 months ago

@RealCalemorer I'll try to code that!

1
RealCalemorer's profile picture
RealCalemorer11 months ago

WORKS AMAZING ON XENO + no key = 11/10 KEEP UP THE GOOD WORK!!!

1

Tags

More universal scripts

See all
Script hub
17.0k
88.8k
Bumped 3 hours ago
Universal Script 📌
36.5k
1.1M
Bumped 3 hours ago
Script hub
4.0M
2.0M
Bumped 3 hours ago

Script hub

Hall of Fame #3

KeylessVerified script badge[KEYLESS] Moondiety Script | 20+ supported Games

Script hub
287
18
10 hours ago
Key System