local s=script.Parent.Car.Value local Z=script.Parent:WaitForChild("\086\097\108\117\101\115")local e=require(s["\065-\067\104\097\115\115\105\115 \084\117\110\101"])local W=s:WaitForChild("\069\120\104\097\117\115\116\072\097\110\100\108\101\114")local X=false Z.Throttle.Changed:Connect(function()local P=Z.RPM.Value/e.Redline print(P)if P>.8 and(not X and s.DriveSeat.Throttle<1)then X=true W:FireServer("\070\108\097\109\101\115",true)wait(.5)W:FireServer("\070\108\097\109\101\115",false)W:FireServer("\070\108\097\109\101\115\083\109\097\108\108",true)wait(2)W:FireServer("\070\108\097\109\101\115\083\109\097\108\108",false)X=false elseif Z.Throttle.Value<.5 then W:FireServer("\070\108\097\109\101\115\083\109\097\108\108",false)end end)
--Feel free to poke around and see how this works.  It's not very complex

local car = script.Parent.Car.Value
local Values = script.Parent:WaitForChild("Values") --This bit of code is still in 90% of A-Chassis plugins lol
local _Tune = require(car["A-Chassis Tune"])
local Handler = car:WaitForChild("ExhaustHandler")
local IsFlaming = false --Exhaust flame debounce.  Debounces are important so code block doesn't run too quickly

Values.Throttle.Changed:Connect(
	function() -- This is where all the magic happens.  Flames are determined by when you release the throttle
		local RPMRatio = Values.RPM.Value / _Tune.Redline

		print(RPMRatio)

		if RPMRatio > 0.8 and not IsFlaming and car.DriveSeat.Throttle < 1 then
			IsFlaming = true
			Handler:FireServer("Flames", true)
			wait(0.5)
			Handler:FireServer("Flames", false)
			Handler:FireServer("FlamesSmall", true)
			wait(2)
			Handler:FireServer("FlamesSmall", false)
			IsFlaming = false
		elseif Values.Throttle.Value < 0.5 then
			Handler:FireServer("FlamesSmall", false)
		end
	end
)
