function Spool()if Values.Horsepower.Value==0 then totalPSI=totalPSI+(((((Values.RPM.Value*(Values.Throttle.Value*1.2))/Redline)/8-(totalPSI/WasteGatePressure)*(WasteGatePressure/15))*((36/TurboSize)*3))/WasteGatePressure)*15 if totalPSI<.05 then totalPSI=.05 end if totalPSI>2 then totalPSI=2 end end if Values.Horsepower.Value>0 then totalPSI=totalPSI+(((((Values.RPM.Value*(Values.Throttle.Value*1.2))/Redline)/8-(totalPSI/WasteGatePressure)*(WasteGatePressure/15))*((36/TurboSize)*3))/WasteGatePressure)*15 if totalPSI<.05 then totalPSI=.05 end if totalPSI>2 then totalPSI=2 end end actualPSI=totalPSI/2 if FE then local Z=totalPSI handler:FireServer(totalPSI,actualPSI,Throttle,BOVFix,BOV_Loudness,TurboLoudness,BOV_Pitch)else local Z=Throttle local e=car.DriveSeat:WaitForChild("\087\104\105\115\116\108\101")local a=car.DriveSeat:WaitForChild("\066\079\086")local c=a.Volume if Z<0 then Z=0 end e.Pitch=totalPSI e.Volume=(totalPSI/4)*TurboLoudness a.Pitch=(1-(-totalPSI/20))*BOV_Pitch a.Volume=(-0.5+(totalPSI/2)*BOV_Loudness)*(1-script.Parent.Parent.Values.Throttle.Value)end end

function Spool()
	--When In Neutral
	if Values.Horsepower.Value == 0 then
		totalPSI = totalPSI + ((((((Values.RPM.Value*(Values.Throttle.Value*1.2)/Redline)/8)-(((totalPSI/WasteGatePressure*(WasteGatePressure/15)))))*((36/TurboSize)*3))/WasteGatePressure)*15)
		if totalPSI < 0.05 then
			totalPSI = 0.05
		end
		if totalPSI > 2 then
			totalPSI = 2
		end
		--TEST
		
	end
	--When Driving
	if Values.Horsepower.Value > 0 then
		totalPSI = totalPSI + ((((((Values.RPM.Value*(Values.Throttle.Value*1.2)/Redline)/8)-(((totalPSI/WasteGatePressure*(WasteGatePressure/15)))))*((36/TurboSize)*3))/WasteGatePressure)*15)
		if totalPSI < 0.05 then
			totalPSI = 0.05
		end
		if totalPSI > 2 then
			totalPSI = 2
		end
		--TEST
		
	end

	
	
	actualPSI = totalPSI/2
	

	if FE then
		local BP = totalPSI
		
		handler:FireServer(totalPSI,actualPSI,Throttle,BOVFix,BOV_Loudness,TurboLoudness,BOV_Pitch)
	else
		local Throttle2 = Throttle
		local W = car.DriveSeat:WaitForChild("Whistle")
		local B = car.DriveSeat:WaitForChild("BOV")

		local bvol = B.Volume		
		
		if Throttle2 < 0 then
			Throttle2 = 0
		end
		W.Pitch = (totalPSI)
		W.Volume = (totalPSI/4)*TurboLoudness
		B.Pitch = (1 - (-totalPSI/20))*BOV_Pitch
		B.Volume = (((-0.5+((totalPSI/2)*BOV_Loudness)))*(1 - script.Parent.Parent.Values.Throttle.Value))
		
	
		
	end
	end