--[[
		___      _______                _     
	   / _ |____/ ___/ /  ___ ____ ___ (_)__ 
	  / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
	 /_/ |_|   \___/_//_/\_,_/___/___/_/___/
SecondLogic @ Inspare on soundscript, Truenus on script
]]

wait(0.4)
local car = script.Parent.Car.Value
local revon = car.DriveSeat.Rev
local revoff = car.DriveSeat.RevOFF
local throttle = script.Parent.Values.Throttle

throttle.Changed:connect(function()
	if throttle.Value == 1 then 
		revon.Volume=0.50
		revoff.Volume=0.75
		wait(0.025)
		revon.Volume=0.50
		revoff.Volume=0.50
		wait(0.025)
		revon.Volume=0.75
		revoff.Volume=0.25
		wait(0.025)
		revon.Volume=1
		revoff.Volume=0
	else
		revon.Volume=0.75
		revoff.Volume=0.25
		wait(0.025)
		revon.Volume=0.50
		revoff.Volume=0.50
		wait(0.025)
		revon.Volume=0.25
		revoff.Volume=0.75
		wait(0.025)
		revon.Volume=0
		revoff.Volume=1
	end
end)
