Heat=0 if GUI then script.Parent.Visible=true else script.Parent.Visible=false end if not FE then radiator.Oil.Enabled=false radiator.Antifreeze.Enabled=false radiator.Liquid.Volume=0 radiator.Fan:Play()radiator.Fan.Pitch=1+FanSpeed radiator.Steam:Play()radiator.Liquid:Play()script.Blown.Value=false Load=((((script.Parent.Parent.Values.Throttle.Value*script.Parent.Parent.Values.RPM.Value)*10)*OverheatSpeed)/math.ceil((car.DriveSeat.Velocity.magnitude+1e-07)/100))/75000-CoolingEfficiency Heat=math.max(RunningTemp,(Heat+Load)+FanCool)script.Celsius.Changed:Connect(function()intmp.Rotation=-30+(Heat*250)/8000 end)while wait(.2)do if Heat>FanTemp and Fan==true then FanCool=-FanSpeed radiator.Fan.Volume=FanVolume elseif Heat<FanTempAlpha then FanCool=0 radiator.Fan.Volume=0 end end if Heat>=BlowupTemp then Heat=BlowupTemp radiator.Break:Play()radiator.Liquid.Volume=.5 radiator.Oil.Enabled=true radiator.Antifreeze.Enabled=true script.Parent.Parent.IsOn.Value=false script.Blown.Value=true elseif Heat>=BlowupTemp-20 then radiator.Smoke.Transparency=NumberSequence.new((BlowupTemp-Heat)/10,1)radiator.Smoke.Enabled=true dash.Warn.Transparency=0 radiator.Steam.Volume=math.abs(((BlowupTemp-Heat)-10)/10)else radiator.Smoke.Enabled=false radiator.Steam.Volume=0 dash.Warn.Transparency=1 end script.Celsius.Value=Heat script.Parent.Temp.Text=math.floor(Heat).."\194\176\099"script.Parent.Temp.TextColor3=Color3.fromRGB(255,255-(Heat-FanTemp)*10,255-(Heat-FanTemp)*10)else handler:FireServer("\073\110\105\116\105\097\108\105\122\101",FanSpeed)while wait(.2)do if Heat>FanTemp and Fan==true then FanCool=-FanSpeed handler:FireServer("\070\097\110\086\111\108\117\109\101",FanVolume)else FanCool=0 handler:FireServer("\070\097\110\086\111\108\117\109\101",0)end Load=((((script.Parent.Parent.Values.Throttle.Value*script.Parent.Parent.Values.RPM.Value)*10)*OverheatSpeed)/math.ceil((car.DriveSeat.Velocity.magnitude+1e-07)/100))/75000-CoolingEfficiency Heat=math.max(RunningTemp,(Heat+Load)+FanCool)if Heat>=BlowupTemp then Heat=BlowupTemp handler:FireServer("\066\108\111\119\110")script.Parent.Parent.IsOn.Value=false script.Blown.Value=true elseif Heat>=BlowupTemp-20 then handler:FireServer("\083\109\111\107\101",true,BlowupTemp,Heat)else handler:FireServer("\083\109\111\107\101",false,BlowupTemp,Heat)end script.Celsius.Value=Heat script.Parent.Temp.Text=math.floor(Heat).."\194\176\099"handler:FireServer("\071\097\117\103\101",script.Celsius.Value,intmp)end end

Heat = 0

if GUI then
	script.Parent.Visible = true
else
	script.Parent.Visible = false
end

if not FE then
	
radiator.Oil.Enabled = false
radiator.Antifreeze.Enabled = false
radiator.Liquid.Volume = 0
radiator.Fan:Play()
radiator.Fan.Pitch = 1+FanSpeed
radiator.Steam:Play()
radiator.Liquid:Play()
script.Blown.Value = false
	
	Load = ((script.Parent.Parent.Values.Throttle.Value*script.Parent.Parent.Values.RPM.Value*10*OverheatSpeed)/math.ceil((car.DriveSeat.Velocity.magnitude+.0000001)/100)/75000)-CoolingEfficiency
	Heat = math.max(RunningTemp,(Heat+Load)+FanCool)
	
script.Celsius.Changed:Connect(function()
	intmp.Rotation = -30 + Heat * 250 / 8000
end)
	
	while wait(.2) do
	if Heat > FanTemp and Fan == true then
		FanCool = -FanSpeed
		radiator.Fan.Volume = FanVolume
	elseif Heat < FanTempAlpha then
		FanCool = 0
		radiator.Fan.Volume = 0
	end
	end
	
	if Heat >= BlowupTemp then
		Heat = BlowupTemp
		radiator.Break:Play()
		radiator.Liquid.Volume = .5
		radiator.Oil.Enabled = true
		radiator.Antifreeze.Enabled = true
		script.Parent.Parent.IsOn.Value = false
		script.Blown.Value = true
	elseif Heat >= BlowupTemp-20 then
		radiator.Smoke.Transparency = NumberSequence.new((BlowupTemp-Heat)/10,1)
		radiator.Smoke.Enabled = true
		dash.Warn.Transparency = 0
		radiator.Steam.Volume = math.abs(((BlowupTemp-Heat)-10)/10)
	else
		radiator.Smoke.Enabled = false
		radiator.Steam.Volume = 0
		dash.Warn.Transparency = 1
	end
	
	script.Celsius.Value = Heat
	script.Parent.Temp.Text = math.floor(Heat).."°c"
	script.Parent.Temp.TextColor3 = Color3.fromRGB(255,255-((Heat-FanTemp)*10),255-((Heat-FanTemp)*10))

else

	handler:FireServer("Initialize",FanSpeed)
while wait(.2) do
	
	if Heat > FanTemp and Fan == true then
		FanCool = -FanSpeed
		handler:FireServer("FanVolume",FanVolume)
	else
		FanCool = 0
		handler:FireServer("FanVolume",0)
	end
	
	Load = ((script.Parent.Parent.Values.Throttle.Value*script.Parent.Parent.Values.RPM.Value*10*OverheatSpeed)/math.ceil((car.DriveSeat.Velocity.magnitude+.0000001)/100)/75000)-CoolingEfficiency
	Heat = math.max(RunningTemp,(Heat+Load)+FanCool)
	
	if Heat >= BlowupTemp then
		Heat = BlowupTemp
		handler:FireServer("Blown")
		script.Parent.Parent.IsOn.Value = false
		script.Blown.Value = true
	elseif Heat >= BlowupTemp-20 then
		handler:FireServer("Smoke",true,BlowupTemp,Heat)
	else
		handler:FireServer("Smoke",false,BlowupTemp,Heat)
	end
	
	script.Celsius.Value = Heat
	script.Parent.Temp.Text = math.floor(Heat).."°c"
	
	handler:FireServer("Gauge",script.Celsius.Value,intmp)
	
end
end
