script.Parent:WaitForChild("\071\101\097\114")script.Parent:WaitForChild("\083\112\101\101\100")script.Parent:WaitForChild("\078\101\101\100\108\101")local d=(game:GetService("\080\108\097\121\101\114\115")).LocalPlayer local y=d:GetMouse()local I=script.Parent.Parent.Parent.Car.Value I.DriveSeat.HeadsUpDisplay=false local t=require(I["\065-\067\104\097\115\115\105\115 \084\117\110\101"])local Z=t.PeakRPM local a=t.Redline local X=1 local O=math.ceil(a/1000)script.Parent.Parent.Parent.Values.Gear.Changed:connect(function()local d=script.Parent.Parent.Parent.Values.Gear.Value if d==0 then d="\078"elseif d==-1 then d="\082"end script.Parent.Gear.Text=d end)script.Parent.Parent.Parent.Values.RPM.Changed:connect(function()script.Parent.Needle.Rotation=230*math.min(1,script.Parent.Parent.Parent.Values.RPM.Value/(O*1000))end)script.Parent.Parent.Parent.Values.Velocity.Changed:connect(function(d)script.Parent.Speed.Text=math.floor(UNITS[X].scaling*script.Parent.Parent.Parent.Values.Velocity.Value.Magnitude)end)function PBrake()if script.Parent.Parent.Parent.Values.PBrake.Value then script.Parent.PBrake.ImageColor3=Color3.fromRGB(222,62,62)else script.Parent.PBrake.ImageColor3=Color3.fromRGB(241,241,241)end end script.Parent.Parent.Parent.Values.PBrake.Changed:connect(PBrake)function Headlight()if I.Body.Headlight.on.Value then script.Parent.HeadLight.ImageColor3=Color3.fromRGB(55,255,52)else script.Parent.HeadLight.ImageColor3=Color3.fromRGB(241,241,241)end end I.Body.Headlight.on.Changed:connect(Headlight)wait(.1)
-----------------------------------------------------------------------------------------------

script.Parent:WaitForChild("Gear")
script.Parent:WaitForChild("Speed")
script.Parent:WaitForChild("Needle")

local player = game:GetService("Players").LocalPlayer
local mouse = player:GetMouse()

local car = script.Parent.Parent.Parent.Car.Value
car.DriveSeat.HeadsUpDisplay = false

local _Tune = require(car["A-Chassis Tune"])

local _pRPM = _Tune.PeakRPM
local _lRPM = _Tune.Redline

local currentUnits = 1
local revEnd = math.ceil(_lRPM / 1000)

script.Parent.Parent.Parent.Values.Gear.Changed:connect(function()
	local gearText = script.Parent.Parent.Parent.Values.Gear.Value
	if gearText == 0 then
		gearText = "N"
	elseif gearText == -1 then
		gearText = "R"
	end
	script.Parent.Gear.Text = gearText
end)

script.Parent.Parent.Parent.Values.RPM.Changed:connect(function()
	script.Parent.Needle.Rotation = 230 * math.min(1, script.Parent.Parent.Parent.Values.RPM.Value / (revEnd * 1000))
end)

script.Parent.Parent.Parent.Values.Velocity.Changed:connect(function(property)
	script.Parent.Speed.Text =
		math.floor(UNITS[currentUnits].scaling * script.Parent.Parent.Parent.Values.Velocity.Value.Magnitude)
end)

function PBrake()
	if script.Parent.Parent.Parent.Values.PBrake.Value then
		script.Parent.PBrake.ImageColor3 = Color3.fromRGB(222, 62, 62)
	else
		script.Parent.PBrake.ImageColor3 = Color3.fromRGB(241, 241, 241)
	end
end
script.Parent.Parent.Parent.Values.PBrake.Changed:connect(PBrake)

function Headlight()
	if car.Body.Headlight.on.Value then
		script.Parent.HeadLight.ImageColor3 = Color3.fromRGB(55, 255, 52)
	else
		script.Parent.HeadLight.ImageColor3 = Color3.fromRGB(241, 241, 241)
	end
end
car.Body.Headlight.on.Changed:connect(Headlight)
wait(0.1)
