script.Parent.Values.RPM.Changed:connect(function()intach.Rotation=-65+(script.Parent.Values.RPM.Value*250)/8000 end)script.Parent.Values.Velocity.Changed:connect(function(S)inspd.Rotation=-30+2.75*math.abs(script.Parent.Values.Velocity.Value.Magnitude*.47348484848485)end)script.Parent.Values.Gear.Changed:connect(function()local S=script.Parent.Values.Gear.Value if S==0 then S="\078"car.Body.Dash.DashSc.G.Gear.Text="\078"car.DriveSeat.Filter:FireServer("\114\101\118\101\114\115\101",false)elseif S==-1 then S="\082"car.Body.Dash.DashSc.G.Gear.Text="\082"car.DriveSeat.Filter:FireServer("\114\101\118\101\114\115\101",true)end car.Body.Dash.DashSc.G.Gear.Text=S end)script.Parent.Values.PBrake.Changed:connect(function()dash.PBrake.Visible=script.Parent.Values.PBrake.Value end)local S=script.Parent.Car.Value local z=script.Parent.Values local J=require(S["\065-\067\104\097\115\115\105\115 \084\117\110\101"])game["\082\117\110 \083\101\114\118\105\099\101"].Stepped:connect(function()local U=z.RPM.Value/J.Redline local K=.56818181818182 local t=.9144 local v=z.Velocity.Value.Magnitude S.Body.Gauges.Screen.FPGauges.Gauge.RPMFrame.Fill.Size=UDim2.new(U,0,1,0)S.Body.Gauges.Screen.FPGauges.Gauge.Gear.Gear.Text=z.Gear.Value S.Body.Gauges.Screen.FPGauges.Gauge.Speed.MPH.Text=" "..math.floor(v*K)S.Body.Gauges.Screen.FPGauges.Gauge.Speed.KPH.Text="  "..math.floor(v*t)end)
--------------------------------------------------
script.Parent.Values.RPM.Changed:connect(function()
	intach.Rotation = -65 + script.Parent.Values.RPM.Value * 250 / 8000
end)

script.Parent.Values.Velocity.Changed:connect(function(property)
	inspd.Rotation = -30
		+ (440 / 160) * (math.abs(script.Parent.Values.Velocity.Value.Magnitude * ((10 / 12) * (50 / 88))))
end)

script.Parent.Values.Gear.Changed:connect(function()
	local gearText = script.Parent.Values.Gear.Value
	if gearText == 0 then
		gearText = "N"
		car.Body.Dash.DashSc.G.Gear.Text = "N"
		car.DriveSeat.Filter:FireServer("reverse", false)
	elseif gearText == -1 then
		gearText = "R"
		car.Body.Dash.DashSc.G.Gear.Text = "R"
		car.DriveSeat.Filter:FireServer("reverse", true)
	end
	car.Body.Dash.DashSc.G.Gear.Text = gearText
end)

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

local car = script.Parent.Car.Value
local Values = script.Parent.Values
local _Tune = require(car["A-Chassis Tune"])

game["Run Service"].Stepped:connect(function()
	local rev = (Values.RPM.Value / _Tune.Redline)
	local MPHScale = (10 / 12) * (60 / 88)
	local KPHScale = (10 / 12) * 1.09728
	local Speed = Values.Velocity.Value.Magnitude
	car.Body.Gauges.Screen.FPGauges.Gauge.RPMFrame.Fill.Size = UDim2.new(rev, 0, 1, 0)
	car.Body.Gauges.Screen.FPGauges.Gauge.Gear.Gear.Text = Values.Gear.Value
	car.Body.Gauges.Screen.FPGauges.Gauge.Speed.MPH.Text = " " .. math.floor(Speed * MPHScale)
	car.Body.Gauges.Screen.FPGauges.Gauge.Speed.KPH.Text = "  " .. math.floor(Speed * KPHScale)
end)
