Universal Script πŸ“Œ
2.2k Views
3.4k 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
MrRig6 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
135
986
Bumped 21 minutes ago

Script hub

Lunyx Hub

Script hub
120.8k
221.2k
Bumped 39 minutes ago
Key System
Script hub
10.5k
200.6k
Bumped 58 minutes ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1

Script hub
33.3k
299.2k
Bumped 4 hours ago
Script hub
23.7k
5.3k
Bumped 4 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
301
977
Bumped 4 hours ago