if autoscaling then local k={}if _Tune.Config=="\070\087\068"or _Tune.Config=="\065\087\068"then if car.Wheels:FindFirstChild("\070\076")~=nil then table.insert(k,car.Wheels.FL)end if car.Wheels:FindFirstChild("\070\082")~=nil then table.insert(k,car.Wheels.FR)end if car.Wheels:FindFirstChild("\070")~=nil then table.insert(k,car.Wheels.F)end end if _Tune.Config=="\082\087\068"or _Tune.Config=="\065\087\068"then if car.Wheels:FindFirstChild("\082\076")~=nil then table.insert(k,car.Wheels.RL)end if car.Wheels:FindFirstChild("\082\082")~=nil then table.insert(k,car.Wheels.RR)end if car.Wheels:FindFirstChild("\082")~=nil then table.insert(k,car.Wheels.R)end end local a=0 for k,P in pairs(k)do if P.Size.x>a then a=P.Size.x end end k=nil for k,P in pairs(UNITS)do P.maxSpeed=math.ceil(((((((P.scaling*a)*math.pi)*_lRPM)/60)/_Tune.Ratios[#_Tune.Ratios])/_Tune.FinalDrive)/_Tune.FDMult)P.spInc=math.max(math.ceil(P.maxSpeed/150)*10,10)end end for k=0,revEnd*2,1 do local a=gauges.ln:clone()a.Parent=gauges.Tach a.Rotation=45+(k*270)/(revEnd*2)a.Num.Text=k/2 a.Num.Rotation=-a.Rotation a.Frame.Position=UDim2.new(0,-1,0,85)if k*500>=math.floor(_pRPM/500)*500 then a.Frame.BackgroundColor3=Color3.new(1.0,0,.29803921568627)if k<revEnd*2 then ln2=a:clone()ln2.Parent=gauges.Tach ln2.Rotation=45+((k+.5)*270)/(revEnd*2)ln2.Num:Destroy()ln2.Visible=true end end if k%2==0 then a.Frame.Size=UDim2.new(0,3,0,10)a.Frame.Position=UDim2.new(0,-1,0,80)a.Num.Visible=true else a.Num:Destroy()end a.Visible=true end local k=Instance.new("\070\114\097\109\101",gauges.Boost)k.Name="\098\108\110\115"k.BackgroundTransparency=1 k.BorderSizePixel=0 k.Size=UDim2.new(0,0,0,0)for a=0,6,1 do local P=gauges.bln:clone()P.Parent=k P.Rotation=25-50*(a/6)if a%2==0 then P.Frame.Size=UDim2.new(0,2,0,7)P.Frame.Position=UDim2.new(0,-1,0,62)else P.Frame.Size=UDim2.new(0,3,0,5)P.Frame.Position=UDim2.new(0,-1,0,62)end P.Num:Destroy()P.Visible=true end if isOn.Value then gauges:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)end isOn.Changed:connect(function()if isOn.Value then gauges:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)end end)game["\082\117\110 \083\101\114\118\105\099\101"].RenderStepped:connect(function()gauges.Tach.Needle.Rotation=gauges.Tach.Needle.Rotation*Smoothness+(45+270*math.min(1,values.RPM.Value/(revEnd*1000)))*(1-Smoothness)gauges.Tach.Needle2.Rotation=gauges.Tach.Needle2.Rotation*(Smoothness+.003)+(45+270*math.min(1,values.RPM.Value/(revEnd*1000)))*(1-(Smoothness+.003))gauges.Tach.Needle3.Rotation=gauges.Tach.Needle3.Rotation*(Smoothness+.006)+(45+270*math.min(1,values.RPM.Value/(revEnd*1000)))*(1-(Smoothness+.006))gauges.Tach.Needle4.Rotation=gauges.Tach.Needle4.Rotation*(Smoothness+.009)+(45+270*math.min(1,values.RPM.Value/(revEnd*1000)))*(1-(Smoothness+.009))gauges.Tach.Needle5.Rotation=gauges.Tach.Needle5.Rotation*(Smoothness+.012)+(45+270*math.min(1,values.RPM.Value/(revEnd*1000)))*(1-(Smoothness+.012))gauges.Tach.Needle6.Rotation=gauges.Tach.Needle6.Rotation*(Smoothness+.015)+(45+270*math.min(1,values.RPM.Value/(revEnd*1000)))*(1-(Smoothness+.015))gauges.Tach.Needle7.Rotation=gauges.Tach.Needle7.Rotation*(Smoothness+.018)+(45+270*math.min(1,values.RPM.Value/(revEnd*1000)))*(1-(Smoothness+.018))gauges.Tach.Needle8.Rotation=gauges.Tach.Needle8.Rotation*(Smoothness+.021)+(45+270*math.min(1,values.RPM.Value/(revEnd*1000)))*(1-(Smoothness+.021))gauges.Tach.Needle9.Rotation=gauges.Tach.Needle9.Rotation*(Smoothness+.024)+(45+270*math.min(1,values.RPM.Value/(revEnd*1000)))*(1-(Smoothness+.024))gauges.Tach.Needle10.Rotation=gauges.Tach.Needle10.Rotation*(Smoothness+.027)+(45+270*math.min(1,values.RPM.Value/(revEnd*1000)))*(1-(Smoothness+.027))if _Tune.Aspiration then gauges.Boost.Needle.Rotation=gauges.Boost.Needle.Rotation*TurboSmoothness+(25-50*(values.Boost.Value/BST))*(1-TurboSmoothness)gauges.Boost.Needle2.Rotation=gauges.Boost.Needle2.Rotation*(TurboSmoothness+.005)+(25-50*(values.Boost.Value/BST))*(1-(TurboSmoothness+.005))gauges.Boost.Needle3.Rotation=gauges.Boost.Needle3.Rotation*(TurboSmoothness+.01)+(25-50*(values.Boost.Value/BST))*(1-(TurboSmoothness+.01))gauges.Boost.Needle4.Rotation=gauges.Boost.Needle4.Rotation*(TurboSmoothness+.015)+(25-50*(values.Boost.Value/BST))*(1-(TurboSmoothness+.015))gauges.Boost.Needle5.Rotation=gauges.Boost.Needle5.Rotation*(TurboSmoothness+.02)+(25-50*(values.Boost.Value/BST))*(1-(TurboSmoothness+.02))gauges.Boost.Needle6.Rotation=gauges.Boost.Needle6.Rotation*(TurboSmoothness+.025)+(25-50*(values.Boost.Value/BST))*(1-(TurboSmoothness+.025))gauges.Boost.Needle7.Rotation=gauges.Boost.Needle7.Rotation*(TurboSmoothness+.03)+(25-50*(values.Boost.Value/BST))*(1-(TurboSmoothness+.03))gauges.Boost.Needle8.Rotation=gauges.Boost.Needle8.Rotation*(TurboSmoothness+.035)+(25-50*(values.Boost.Value/BST))*(1-(TurboSmoothness+.035))gauges.Boost.Needle9.Rotation=gauges.Boost.Needle9.Rotation*(TurboSmoothness+.04)+(25-50*(values.Boost.Value/BST))*(1-(TurboSmoothness+.04))gauges.Boost.Needle10.Rotation=gauges.Boost.Needle10.Rotation*(TurboSmoothness+.045)+(25-50*(values.Boost.Value/BST))*(1-(TurboSmoothness+.045))else end end)local a=0 if _Tune.Aspiration then if _Tune.Aspiration~="\078\097\116\117\114\097\108"then if _Tune.Aspiration=="\083\105\110\103\108\101"or _Tune.Aspiration=="\083\117\112\101\114"then a=1 elseif _Tune.Aspiration=="\068\111\117\098\108\101"then a=2 end else gauges.Boost.Visible=false gauges.BoostImage.Visible=false end else gauges.Boost.Visible=false gauges.BoostImage.Visible=false end values.Gear.Changed:connect(function()local k=values.Gear.Value if k==0 then k="\078"elseif k==-1 then k="\082"end gauges.Gear.Text=k end)values.TCS.Changed:connect(function()if _Tune.TCSEnabled then if values.TCS.Value then gauges.TCS.TextColor3=Color3.new(1,.88627450980392,0)gauges.TCS.TextStrokeColor3=Color3.new(1,.88627450980392,0)if values.TCSActive.Value then wait()gauges.TCS.TextColor3=Color3.new(1,.88627450980392,0)gauges.TCS.TextStrokeColor3=Color3.new(1,.88627450980392,0)else wait()gauges.TCS.TextColor3=Color3.new(.2,.2,.2)gauges.TCS.TextStrokeColor3=Color3.new(.2,.2,.2)end else gauges.TCS.TextColor3=Color3.new(.2,.2,.2)gauges.TCS.TextStrokeColor3=Color3.new(.2,.2,.2)end else gauges.TCS.TextColor3=Color3.new(.2,.2,.2)gauges.TCS.TextStrokeColor3=Color3.new(.2,.2,.2)end end)values.TCSActive.Changed:connect(function()if _Tune.TCSEnabled then if values.TCSActive.Value and values.TCS.Value then wait()gauges.TCS.TextColor3=Color3.new(1,.88627450980392,0)gauges.TCS.TextStrokeColor3=Color3.new(1,.88627450980392,0)elseif not values.TCS.Value then wait()gauges.TCS.TextColor3=Color3.new(1,.88627450980392,0)gauges.TCS.TextStrokeColor3=Color3.new(1,.88627450980392,0)else wait()gauges.TCS.TextColor3=Color3.new(.2,.2,.2)gauges.TCS.TextStrokeColor3=Color3.new(.2,.2,.2)end else gauges.TCS.TextColor3=Color3.new(.2,.2,.2)gauges.TCS.TextStrokeColor3=Color3.new(.2,.2,.2)end end)gauges.TCS.Changed:connect(function()if _Tune.TCSEnabled then if values.TCSActive.Value and values.TCS.Value then wait()gauges.TCS.TextColor3=Color3.new(1,.88627450980392,0)gauges.TCS.TextStrokeColor3=Color3.new(1,.88627450980392,0)elseif not values.TCS.Value then wait()gauges.TCS.TextColor3=Color3.new(1,.88627450980392,0)gauges.TCS.TextStrokeColor3=Color3.new(1,.88627450980392,0)end else if gauges.TCS.Visible then gauges.TCS.TextColor3=Color3.new(.2,.2,.2)gauges.TCS.TextStrokeColor3=Color3.new(.2,.2,.2)end end end)values.ABS.Changed:connect(function()if _Tune.ABSEnabled then if values.ABS.Value then gauges.ABS.TextColor3=Color3.new(1,.88627450980392,0)gauges.ABS.TextStrokeColor3=Color3.new(1,.88627450980392,0)if values.ABSActive.Value then wait()gauges.ABS.TextColor3=Color3.new(1,.88627450980392,0)gauges.ABS.TextStrokeColor3=Color3.new(1,.88627450980392,0)else wait()gauges.ABS.TextColor3=Color3.new(.2,.2,.2)gauges.ABS.TextStrokeColor3=Color3.new(.2,.2,.2)end else gauges.ABS.Visible=true gauges.ABS.TextColor3=Color3.new(.2,.2,.2)gauges.ABS.TextStrokeColor3=Color3.new(.2,.2,.2)end else gauges.ABS.TextColor3=Color3.new(.2,.2,.2)gauges.ABS.TextStrokeColor3=Color3.new(.2,.2,.2)end end)values.ABSActive.Changed:connect(function()if _Tune.ABSEnabled then if values.ABSActive.Value and values.ABS.Value then wait()gauges.ABS.TextColor3=Color3.new(1,.88627450980392,0)gauges.ABS.TextStrokeColor3=Color3.new(1,.88627450980392,0)elseif not values.ABS.Value then wait()gauges.ABS.TextColor3=Color3.new(1,.88627450980392,0)gauges.ABS.TextStrokeColor3=Color3.new(1,.88627450980392,0)else wait()gauges.ABS.TextColor3=Color3.new(.2,.2,.2)gauges.ABS.TextStrokeColor3=Color3.new(.2,.2,.2)end else gauges.ABS.TextColor3=Color3.new(.2,.2,.2)gauges.ABS.TextStrokeColor3=Color3.new(.2,.2,.2)end end)gauges.ABS.Changed:connect(function()if _Tune.ABSEnabled then if values.ABSActive.Value and values.ABS.Value then wait()gauges.ABS.TextColor3=Color3.new(1,.88627450980392,0)gauges.ABS.TextStrokeColor3=Color3.new(1,.88627450980392,0)elseif not values.ABS.Value then wait()gauges.ABS.TextColor3=Color3.new(1,.88627450980392,0)gauges.ABS.TextStrokeColor3=Color3.new(1,.88627450980392,0)end else if gauges.ABS.Visible then gauges.ABS.TextColor3=Color3.new(.2,.2,.2)gauges.ABS.TextStrokeColor3=Color3.new(.2,.2,.2)end end end)function Speed()gauges.SpeedThing.Text=SpeedType local k=values.Velocity.Value.Magnitude local a=.56818181818182 local P=.9144 if SpeedType=="\077\080\072"then if k*a<100 then if k*a<10 then gauges.Speed.Text="\048\048"..math.floor(k*a)else gauges.Speed.Text="\048"..math.floor(k*a)end else gauges.Speed.Text=math.floor(k*a)end end if SpeedType=="\075\080\072"then if k*P<100 then if k*P<10 then gauges.Speed.Text="\048\048"..math.floor(k*P)else gauges.Speed.Text="\048"..math.floor(k*P)end else gauges.Speed.Text=math.floor(k*P)end end end values.Velocity.Changed:connect(function()Speed()end)wait(.1)Speed()

if autoscaling then
	local Drive={}
	if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
		if car.Wheels:FindFirstChild("FL")~= nil then
			table.insert(Drive,car.Wheels.FL)
		end
		if car.Wheels:FindFirstChild("FR")~= nil then
			table.insert(Drive,car.Wheels.FR)
		end
		if car.Wheels:FindFirstChild("F")~= nil then
			table.insert(Drive,car.Wheels.F)
		end
	end
	if _Tune.Config == "RWD" or _Tune.Config == "AWD" then
		if car.Wheels:FindFirstChild("RL")~= nil then
			table.insert(Drive,car.Wheels.RL)
		end
		if car.Wheels:FindFirstChild("RR")~= nil then
			table.insert(Drive,car.Wheels.RR)
		end
		if car.Wheels:FindFirstChild("R")~= nil then
			table.insert(Drive,car.Wheels.R)
		end
	end

	local wDia = 0
	for i,v in pairs(Drive) do
		if v.Size.x>wDia then wDia = v.Size.x end
	end
	Drive = nil
	for i,v in pairs(UNITS) do
		v.maxSpeed = math.ceil(v.scaling*wDia*math.pi*_lRPM/60/_Tune.Ratios[#_Tune.Ratios]/_Tune.FinalDrive/_Tune.FDMult)
		v.spInc = math.max(math.ceil(v.maxSpeed/150)*10,10)
	end
end

for i=0,revEnd*2 do
	local ln = gauges.ln:clone()
	ln.Parent = gauges.Tach
	ln.Rotation = 45 + i * 270 / (revEnd*2)
	ln.Num.Text = i/2
	ln.Num.Rotation = -ln.Rotation
	ln.Frame.Position = UDim2.new(0,-1,0,85)
	if i*500>=math.floor(_pRPM/500)*500 then
		ln.Frame.BackgroundColor3 = Color3.new(255/255, 0, 76/255)
		if i<revEnd*2 then
			ln2 = ln:clone()
			ln2.Parent = gauges.Tach
			ln2.Rotation = 45 + (i+.5) * 270 / (revEnd*2)
			ln2.Num:Destroy()
			ln2.Visible=true
		end
	end
	if i%2==0 then
		ln.Frame.Size = UDim2.new(0,3,0,10)
		ln.Frame.Position = UDim2.new(0,-1,0,80)
		ln.Num.Visible = true
	else
		ln.Num:Destroy()
	end
	ln.Visible=true
end


local blns = Instance.new("Frame",gauges.Boost)
blns.Name = "blns"
blns.BackgroundTransparency = 1
blns.BorderSizePixel = 0
blns.Size = UDim2.new(0,0,0,0)

for i=0,6 do
	local bln = gauges.bln:clone()
	bln.Parent = blns
	bln.Rotation = 25-50*(i/6)
	if i%2==0 then
		bln.Frame.Size = UDim2.new(0,2,0,7)
		bln.Frame.Position = UDim2.new(0,-1,0,62)
	else
		bln.Frame.Size = UDim2.new(0,3,0,5)
		bln.Frame.Position = UDim2.new(0,-1,0,62)
	end
	bln.Num:Destroy()
	bln.Visible=true
end


if isOn.Value then
	gauges:TweenPosition(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)
end

isOn.Changed:connect(function()
	if isOn.Value then
		gauges:TweenPosition(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)
	end
end)

game["Run Service"].RenderStepped:connect(function()
	
	gauges.Tach.Needle.Rotation = gauges.Tach.Needle.Rotation*Smoothness + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-Smoothness)
	gauges.Tach.Needle2.Rotation = gauges.Tach.Needle2.Rotation*(Smoothness+0.003) + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-(Smoothness+0.003))
	gauges.Tach.Needle3.Rotation = gauges.Tach.Needle3.Rotation*(Smoothness+0.006) + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-(Smoothness+0.006))
	gauges.Tach.Needle4.Rotation = gauges.Tach.Needle4.Rotation*(Smoothness+0.009) + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-(Smoothness+0.009))
	gauges.Tach.Needle5.Rotation = gauges.Tach.Needle5.Rotation*(Smoothness+0.012) + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-(Smoothness+0.012))
	gauges.Tach.Needle6.Rotation = gauges.Tach.Needle6.Rotation*(Smoothness+0.015) + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-(Smoothness+0.015))
	gauges.Tach.Needle7.Rotation = gauges.Tach.Needle7.Rotation*(Smoothness+0.018) + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-(Smoothness+0.018))
	gauges.Tach.Needle8.Rotation = gauges.Tach.Needle8.Rotation*(Smoothness+0.021) + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-(Smoothness+0.021))
	gauges.Tach.Needle9.Rotation = gauges.Tach.Needle9.Rotation*(Smoothness+0.024) + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-(Smoothness+0.024))
	gauges.Tach.Needle10.Rotation = gauges.Tach.Needle10.Rotation*(Smoothness+0.027) + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-(Smoothness+0.027))
	
	--[[gauges.Tach.Needle.Rotation = gauges.Tach.Needle.Rotation*Smoothness + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-Smoothness)
	gauges.Tach.Needle2.Rotation = gauges.Tach.Needle2.Rotation*Smoothness + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-Smoothness)
	gauges.Tach.Needle3.Rotation = gauges.Tach.Needle3.Rotation*Smoothness + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-Smoothness)
	gauges.Tach.Needle4.Rotation = gauges.Tach.Needle4.Rotation*Smoothness + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-Smoothness)
	gauges.Tach.Needle5.Rotation = gauges.Tach.Needle5.Rotation*Smoothness + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-Smoothness)
	gauges.Tach.Needle6.Rotation = gauges.Tach.Needle6.Rotation*Smoothness + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-Smoothness)
	gauges.Tach.Needle7.Rotation = gauges.Tach.Needle7.Rotation*Smoothness + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-Smoothness)
	gauges.Tach.Needle8.Rotation = gauges.Tach.Needle8.Rotation*Smoothness + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-Smoothness)
	gauges.Tach.Needle9.Rotation = gauges.Tach.Needle9.Rotation*Smoothness + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-Smoothness)
	gauges.Tach.Needle10.Rotation = gauges.Tach.Needle10.Rotation*Smoothness + (45 + 270 * math.min(1,values.RPM.Value / (revEnd*1000)))*(1-Smoothness)]]
	
	if _Tune.Aspiration then
	gauges.Boost.Needle.Rotation = gauges.Boost.Needle.Rotation*(TurboSmoothness) + (25 - 50*(values.Boost.Value/BST))*(1-(TurboSmoothness))
	gauges.Boost.Needle2.Rotation = gauges.Boost.Needle2.Rotation*(TurboSmoothness+0.005) + (25 - 50*(values.Boost.Value/BST))*(1-(TurboSmoothness+0.005))
	gauges.Boost.Needle3.Rotation = gauges.Boost.Needle3.Rotation*(TurboSmoothness+0.01) + (25 - 50*(values.Boost.Value/BST))*(1-(TurboSmoothness+0.01))
	gauges.Boost.Needle4.Rotation = gauges.Boost.Needle4.Rotation*(TurboSmoothness+0.015) + (25 - 50*(values.Boost.Value/BST))*(1-(TurboSmoothness+0.015))
	gauges.Boost.Needle5.Rotation = gauges.Boost.Needle5.Rotation*(TurboSmoothness+0.02) + (25 - 50*(values.Boost.Value/BST))*(1-(TurboSmoothness+0.02))
	gauges.Boost.Needle6.Rotation = gauges.Boost.Needle6.Rotation*(TurboSmoothness+0.025) + (25 - 50*(values.Boost.Value/BST))*(1-(TurboSmoothness+0.025))
	gauges.Boost.Needle7.Rotation = gauges.Boost.Needle7.Rotation*(TurboSmoothness+0.03) + (25 - 50*(values.Boost.Value/BST))*(1-(TurboSmoothness+0.03))
	gauges.Boost.Needle8.Rotation = gauges.Boost.Needle8.Rotation*(TurboSmoothness+0.035) + (25 - 50*(values.Boost.Value/BST))*(1-(TurboSmoothness+0.035))
	gauges.Boost.Needle9.Rotation = gauges.Boost.Needle9.Rotation*(TurboSmoothness+0.04) + (25 - 50*(values.Boost.Value/BST))*(1-(TurboSmoothness+0.04))
	gauges.Boost.Needle10.Rotation = gauges.Boost.Needle10.Rotation*(TurboSmoothness+0.045) + (25 - 50*(values.Boost.Value/BST))*(1-(TurboSmoothness+0.045))
	else
		end
	
end)

local _TCount = 0

if _Tune.Aspiration then
if _Tune.Aspiration ~= "Natural" then
	if _Tune.Aspiration == "Single" or _Tune.Aspiration == "Super" then 
		_TCount = 1 
	elseif _Tune.Aspiration == "Double" then 
		_TCount = 2 
	end
else
	gauges.Boost.Visible = false
	gauges.BoostImage.Visible = false
end
else
	gauges.Boost.Visible = false
	gauges.BoostImage.Visible = false
end

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

values.TCS.Changed:connect(function()
	if _Tune.TCSEnabled then
		if values.TCS.Value then
			gauges.TCS.TextColor3 = Color3.new(1,226/255,0)
			gauges.TCS.TextStrokeColor3 = Color3.new(1,226/255,0)
			if values.TCSActive.Value then
				wait()
				gauges.TCS.TextColor3 = Color3.new(1,226/255,0)
			gauges.TCS.TextStrokeColor3 = Color3.new(1,226/255,0)
			else
				wait()
				gauges.TCS.TextColor3 = Color3.new(.2,.2,.2)
			gauges.TCS.TextStrokeColor3 = Color3.new(.2,.2,.2)
			end
		else
			
			gauges.TCS.TextColor3 = Color3.new(.2,.2,.2)
			gauges.TCS.TextStrokeColor3 = Color3.new(.2,.2,.2)
		end
	else
		gauges.TCS.TextColor3 = Color3.new(.2,.2,.2)
			gauges.TCS.TextStrokeColor3 = Color3.new(.2,.2,.2)
	end
end)

values.TCSActive.Changed:connect(function()
	if _Tune.TCSEnabled then
		if values.TCSActive.Value and values.TCS.Value then
			wait()
			gauges.TCS.TextColor3 = Color3.new(1,226/255,0)
			gauges.TCS.TextStrokeColor3 = Color3.new(1,226/255,0)
		elseif not values.TCS.Value then
			wait()
			gauges.TCS.TextColor3 = Color3.new(1,226/255,0)
			gauges.TCS.TextStrokeColor3 = Color3.new(1,226/255,0)
		else
			wait()
			gauges.TCS.TextColor3 = Color3.new(.2,.2,.2)
			gauges.TCS.TextStrokeColor3 = Color3.new(.2,.2,.2)
		end
	else
		gauges.TCS.TextColor3 = Color3.new(.2,.2,.2)
			gauges.TCS.TextStrokeColor3 = Color3.new(.2,.2,.2)
	end
end)

gauges.TCS.Changed:connect(function()
	if _Tune.TCSEnabled then
		if values.TCSActive.Value and values.TCS.Value then
			wait()
			gauges.TCS.TextColor3 = Color3.new(1,226/255,0)
			gauges.TCS.TextStrokeColor3 = Color3.new(1,226/255,0)
		elseif not values.TCS.Value then
			wait()
			gauges.TCS.TextColor3 = Color3.new(1,226/255,0)
			gauges.TCS.TextStrokeColor3 = Color3.new(1,226/255,0)
		end
	else
		if gauges.TCS.Visible then
			gauges.TCS.TextColor3 = Color3.new(.2,.2,.2)
			gauges.TCS.TextStrokeColor3 = Color3.new(.2,.2,.2)
		end
	end
end)

values.ABS.Changed:connect(function()
	if _Tune.ABSEnabled then
		if values.ABS.Value then
			gauges.ABS.TextColor3 = Color3.new(1,226/255,0)
			gauges.ABS.TextStrokeColor3 = Color3.new(1,226/255,0)
			if values.ABSActive.Value then
				wait()
				gauges.ABS.TextColor3 = Color3.new(1,226/255,0)
			gauges.ABS.TextStrokeColor3 = Color3.new(1,226/255,0)
			else
				wait()
				gauges.ABS.TextColor3 = Color3.new(.2,.2,.2)
			gauges.ABS.TextStrokeColor3 = Color3.new(.2,.2,.2)
			end
		else
			gauges.ABS.Visible = true
			gauges.ABS.TextColor3 = Color3.new(.2,.2,.2)
			gauges.ABS.TextStrokeColor3 = Color3.new(.2,.2,.2)
		end
	else
		gauges.ABS.TextColor3 = Color3.new(.2,.2,.2)
			gauges.ABS.TextStrokeColor3 = Color3.new(.2,.2,.2)
	end
end)

values.ABSActive.Changed:connect(function()
	if _Tune.ABSEnabled then
		if values.ABSActive.Value and values.ABS.Value then
			wait()
			gauges.ABS.TextColor3 = Color3.new(1,226/255,0)
			gauges.ABS.TextStrokeColor3 = Color3.new(1,226/255,0)
		elseif not values.ABS.Value then
			wait()
			gauges.ABS.TextColor3 = Color3.new(1,226/255,0)
			gauges.ABS.TextStrokeColor3 = Color3.new(1,226/255,0)
		else
			wait()
			gauges.ABS.TextColor3 = Color3.new(.2,.2,.2)
			gauges.ABS.TextStrokeColor3 = Color3.new(.2,.2,.2)
		end
	else
		gauges.ABS.TextColor3 = Color3.new(.2,.2,.2)
			gauges.ABS.TextStrokeColor3 = Color3.new(.2,.2,.2)
	end
end)

gauges.ABS.Changed:connect(function()
	if _Tune.ABSEnabled then
		if values.ABSActive.Value and values.ABS.Value then
			wait()
			gauges.ABS.TextColor3 = Color3.new(1,226/255,0)
			gauges.ABS.TextStrokeColor3 = Color3.new(1,226/255,0)
		elseif not values.ABS.Value then
			wait()
			gauges.ABS.TextColor3 = Color3.new(1,226/255,0)
			gauges.ABS.TextStrokeColor3 = Color3.new(1,226/255,0)
		end
	else
		if gauges.ABS.Visible then
			gauges.ABS.TextColor3 = Color3.new(.2,.2,.2)
			gauges.ABS.TextStrokeColor3 = Color3.new(.2,.2,.2)
		end
	end
end)

function Speed()
	gauges.SpeedThing.Text = SpeedType
	local SpeedVal = values.Velocity.Value.Magnitude
	local MPHScale = (10/12) * (60/88)
	local KPHScale = (10/12) * 1.09728
	if SpeedType == "MPH" then
		if SpeedVal*MPHScale < 100 then
			if SpeedVal*MPHScale < 10 then
			gauges.Speed.Text = "00"..math.floor(SpeedVal*MPHScale)
				else
			gauges.Speed.Text = "0"..math.floor(SpeedVal*MPHScale)
			end
		else
		gauges.Speed.Text = math.floor(SpeedVal*MPHScale)
		end
	end
	if SpeedType == "KPH" then
		if SpeedVal*KPHScale < 100 then
			if SpeedVal*KPHScale < 10 then
			gauges.Speed.Text = "00"..math.floor(SpeedVal*KPHScale)
				else
			gauges.Speed.Text = "0"..math.floor(SpeedVal*KPHScale)
			end
		else
		gauges.Speed.Text = math.floor(SpeedVal*KPHScale)
		end
	end
end

values.Velocity.Changed:connect(function()
	Speed()
end)

wait(.1)
Speed()

