Values.Values.RPM.Changed:connect(function()Throttle=Values.Values.Throttle.Value CurrentGear=Values.Values.Gear.Value CurrentRPM=Values.Values.RPM.Value if Throttle==1 then active=true if CPSI<PSI then if Turbos=="\083\105\110\103\108\101"then if TurboSize=="\083\109\097\108\108"then CPSI=CPSI+(CurrentRPM/75000)*4 wait(.1)Values.Values.PSI.Value=CPSI*8 Values.Values.APSI.Value=CPSI end if TurboSize=="\077\101\100\105\117\109"then CPSI=CPSI+(CurrentRPM/100000)*4 wait(.1)Values.Values.PSI.Value=CPSI*10 Values.Values.APSI.Value=CPSI end if TurboSize=="\076\097\114\103\101"then CPSI=CPSI+(CurrentRPM/125000)*4 wait(.1)Values.Values.PSI.Value=CPSI*12 Values.Values.APSI.Value=CPSI end elseif Turbos=="\084\119\105\110"then if TurboSize=="\083\109\097\108\108"then CPSI=CPSI+(CurrentRPM/75000)*4 wait(.05)Values.Values.PSI.Value=CPSI*8 Values.Values.APSI.Value=CPSI end if TurboSize=="\077\101\100\105\117\109"then CPSI=CPSI+(CurrentRPM/100000)*4 wait(.05)Values.Values.PSI.Value=CPSI*10 Values.Values.APSI.Value=CPSI end if TurboSize=="\076\097\114\103\101"then CPSI=CPSI+(CurrentRPM/125000)*4 wait(.05)Values.Values.PSI.Value=CPSI*12 Values.Values.APSI.Value=CPSI end end end if CurrentRPM>_Tune.Redline-500 and(TwoStep==true and boom==true)then boom=false if car.Body.Exhaust.E1.S.IsPlaying then else local h=math.random(1,4)h=math.ceil(h)while h>=1 do car.Body.Exhaust.E2.S:Play()car.Body.Exhaust.E1.Afterburn.Enabled=true car.Body.Exhaust.E2.Afterburn.Enabled=true wait(math.random(.2,.3))car.Body.Exhaust.E1.Afterburn.Enabled=false car.Body.Exhaust.E2.Afterburn.Enabled=false h=h-1 end wait(.5)boom=true end end end if Throttle<=.01 and(active==true and Valve=="\066\079\086")then active=false CPSI=0 if TurboSize=="\076\097\114\103\101"then Values.Values.PSI.Value=CPSI*12 elseif TurboSize=="\077\101\100\105\117\109"then Values.Values.PSI.Value=CPSI*10 elseif TurboSize=="\083\109\097\108\108"then Values.Values.PSI.Value=CPSI*8 end Values.Values.APSI.Value=CPSI if BOV.IsPlaying then else BOV:Play()end end if Throttle<=.01 and Valve=="\066\108\101\101\100"then if CPSI>0 then CPSI=CPSI-.1 wait(.05)end if TurboSize=="\076\097\114\103\101"then Values.Values.PSI.Value=CPSI*12 elseif TurboSize=="\077\101\100\105\117\109"then Values.Values.PSI.Value=CPSI*10 elseif TurboSize=="\083\109\097\108\108"then Values.Values.PSI.Value=CPSI*8 end Values.Values.APSI.Value=CPSI if active==true then if BOV.IsPlaying then else BOV:Play()active=false end end end end)if boom==false then wait(math.random(1))boom=true end

Values.Values.RPM.Changed:connect(function()
	Throttle = Values.Values.Throttle.Value
	CurrentGear = Values.Values.Gear.Value
	CurrentRPM = Values.Values.RPM.Value
	if Throttle == 1 then
		active = true
		if CPSI < PSI then 
			if Turbos == "Single" then
				if TurboSize == "Small" then
					CPSI = CPSI + (CurrentRPM / 75000) * 4
					wait(0.1)
					Values.Values.PSI.Value = CPSI * 8
					Values.Values.APSI.Value = CPSI
				end
				if TurboSize == "Medium" then
					CPSI = CPSI + (CurrentRPM / 100000) * 4
					wait(0.1)
					Values.Values.PSI.Value = CPSI * 10
					Values.Values.APSI.Value = CPSI
				end
				if TurboSize == "Large" then
					CPSI = CPSI + (CurrentRPM / 125000) * 4
					wait(0.1)
					Values.Values.PSI.Value = CPSI * 12
					Values.Values.APSI.Value = CPSI
				end
			elseif Turbos == "Twin" then
				if TurboSize == "Small" then
					CPSI = CPSI + (CurrentRPM / 75000) * 4
					wait(0.05)
					Values.Values.PSI.Value = CPSI * 8
					Values.Values.APSI.Value = CPSI
				end
				if TurboSize == "Medium" then
					CPSI = CPSI + (CurrentRPM / 100000) * 4
					wait(0.05)
					Values.Values.PSI.Value = CPSI * 10
					Values.Values.APSI.Value = CPSI
				end
				if TurboSize == "Large" then
					CPSI = CPSI + (CurrentRPM / 125000) * 4
					wait(0.05)
					Values.Values.PSI.Value = CPSI * 12
					Values.Values.APSI.Value = CPSI
				end	
			end
		end
		if CurrentRPM > (_Tune.Redline - 500) and TwoStep == true and boom == true  then
			boom = false
				if car.Body.Exhaust.E1.S.IsPlaying then
				else
				local i = math.random(1,4)
				i = math.ceil(i)
				while i >= 1 do
				car.Body.Exhaust.E2.S:Play()
				car.Body.Exhaust.E1.Afterburn.Enabled = true
				car.Body.Exhaust.E2.Afterburn.Enabled = true
				wait(math.random(0.2,.3))
				car.Body.Exhaust.E1.Afterburn.Enabled = false
				car.Body.Exhaust.E2.Afterburn.Enabled = false
				i= i - 1
				end
				wait(0.5)
				boom = true
				end
				end
	end
			if Throttle <= 0.01 and active == true and Valve == "BOV" then
				active = false
				CPSI = 0
				if TurboSize == "Large" then
					Values.Values.PSI.Value = CPSI * 12
				elseif TurboSize == "Medium" then
					Values.Values.PSI.Value = CPSI * 10
				elseif TurboSize == "Small" then
					Values.Values.PSI.Value = CPSI * 8
				end	
				Values.Values.APSI.Value = CPSI
				if BOV.IsPlaying then		
				else
				BOV:Play()
				end
			end
			if Throttle <= 0.01 and Valve == "Bleed" then
				if CPSI > 0 then
				CPSI = CPSI - 0.1
				wait(0.05)
				end
				if TurboSize == "Large" then
					Values.Values.PSI.Value = CPSI * 12
				elseif TurboSize == "Medium" then
					Values.Values.PSI.Value = CPSI * 10
				elseif TurboSize == "Small" then
					Values.Values.PSI.Value = CPSI * 8
				end				
				Values.Values.APSI.Value = CPSI
				if active == true then
				if BOV.IsPlaying then		
				else
				BOV:Play()
				active = false
				end
				end
			end
		end
)
if boom == false then wait(math.random(1)) boom = true end
