script.Parent:WaitForChild("\071\101\097\114")script.Parent:WaitForChild("\083\112\101\101\100")script.Parent:WaitForChild("\078\101\101\100\108\101")script.Parent:WaitForChild("\066\114\097\107\101")local p=game.Players.LocalPlayer local R=p:GetMouse()local A=script.Parent.Parent.Parent.Car.Value A.DriveSeat.HeadsUpDisplay=false local c=require(A["\065-\067\104\097\115\115\105\115 \084\117\110\101"])local e=c.PeakRPM local g=c.Redline local f=0 local L=math.ceil(g/1000)script.Parent.Parent.Parent.Values.Gear.Changed:connect(function()local p=script.Parent.Parent.Parent.Values.Gear.Value if p==0 then p="\078"elseif p==-1 then p="\082"end script.Parent.Gear.Text=p 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/(L*1000))end)script.Parent.Parent.Parent.Values.Velocity.Changed:connect(function(p)script.Parent.Speed.Text=math.floor(UNITS[f].scaling*script.Parent.Parent.Parent.Values.Velocity.Value.Magnitude)end)local function C()if f==#UNITS then f=1 else f=f+1 end script.Parent.Speed.Text=math.floor(UNITS[f].scaling*script.Parent.Parent.Parent.Values.Velocity.Value.Magnitude)script.Parent.Unit.Text=UNITS[f].units end script.Parent.Speed.MouseButton1Click:connect(function()C()end)C()script.Parent.Parent.Parent.Values.PBrake.Changed:connect(function()script.Parent.Brake.Visible=script.Parent.Parent.Parent.Values.PBrake.Value end)wait(.1)


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

local player=game.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 = 0
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)

local function nextUnity ()
	if currentUnits==#UNITS then
		currentUnits = 1
	else
		currentUnits = currentUnits+1
	end
	script.Parent.Speed.Text = math.floor(UNITS[currentUnits].scaling*script.Parent.Parent.Parent.Values.Velocity.Value.Magnitude)
	script.Parent.Unit.Text = UNITS[currentUnits].units
end

script.Parent.Speed.MouseButton1Click:connect(function()
	nextUnity()
end)
nextUnity()

script.Parent.Parent.Parent.Values.PBrake.Changed:connect(function()
	script.Parent.Brake.Visible = script.Parent.Parent.Parent.Values.PBrake.Value
end)

wait(.1)
