local q=require(car["\065-\067\104\097\115\115\105\115 \084\117\110\101"].README)print("\078\111\118\101\110\097\058 \065\067\054\084 \076\111\097\100\101\100 - \066\117\105\108\100 "..q)game["\082\117\110 \083\101\114\118\105\099\101"].Stepped:connect(function()Steering()Engine()_IsOn=car.DriveSeat.IsOn.Value _InControls=script.Parent.ControlsOpen.Value script.Parent.Values.Gear.Value=_CGear script.Parent.Values.RPM.Value=_RPM script.Parent.Values.Boost.Value=(_Boost/2)*_TPsi script.Parent.Values.Horsepower.Value=_HP script.Parent.Values.HpNatural.Value=_NH script.Parent.Values.HpBoosted.Value=_BH*(_Boost/2)script.Parent.Values.Torque.Value=(_HP*_Tune.EqPoint)/_RPM script.Parent.Values.TqNatural.Value=_NT script.Parent.Values.TqBoosted.Value=_BT*(_Boost/2)script.Parent.Values.Throttle.Value=_GThrot*_GThrotShift script.Parent.Values.SteerC.Value=_GSteerC*(1-math.min(car.DriveSeat.Velocity.Magnitude/_Tune.SteerDecay,1-_Tune.MinSteer/100))script.Parent.Values.SteerT.Value=_GSteerT script.Parent.Values.PBrake.Value=_PBrake script.Parent.Values.TCS.Value=_TCS script.Parent.Values.TCSActive.Value=_TCSActive script.Parent.Values.TCSAmt.Value=1-_TCSAmt script.Parent.Values.ABS.Value=_ABS script.Parent.Values.ABSActive.Value=_ABSActive script.Parent.Values.MouseSteerOn.Value=_MSteer script.Parent.Values.Velocity.Value=car.DriveSeat.Velocity script.Parent.Values.TransmissionMode.Value=_TMode if car.DriveSeat.AWD.Value then(car.DriveSeat:WaitForChild("\082\101\118")).Volume=.5;(car.DriveSeat:WaitForChild("\073\100\108\101")).Volume=.5;(car.DriveSeat:WaitForChild("\083\116\097\114\116\117\112")).Volume=.34 else(car.DriveSeat:WaitForChild("\073\100\108\101")).Volume=1.3;(car.DriveSeat:WaitForChild("\082\101\118")).Volume=1.3;(car.DriveSeat:WaitForChild("\083\116\097\114\116\117\112")).Volume=1 end if car.DriveSeat.CC.Value==true then if car.DriveSeat.Velocity.Magnitude*.56818181818182-2>car.DriveSeat.CCS.Value then _CBrake=.15 else _CThrot=.9 end else _CBrake=0 _CThrot=0 end if car.DriveSeat.SST.Value then if _RPM-10<=_Tune.IdleRPM then if _GBrake>.05 or _PBrake==true then car.DriveSeat.Tic.Value=true else car.DriveSeat.Tic.Value=false end end else car.DriveSeat.Tic.Value=false end if _GBrake>0 then car.DriveSeat.CC.Value=false end end)function AWD()if car.DriveSeat.AWD.Value then if _Tune.Config=="\070\087\068"or _Tune.Config=="\065\087\068"then for q,U in pairs(car.Wheels:GetChildren())do if U.Name=="\070\076"or U.Name=="\070\082"or U.Name=="\070"then table.insert(Drive,U)end end end else if _Tune.Config=="\070\087\068"or _Tune.Config=="\065\087\068"then for q,U in pairs(car.Wheels:GetChildren())do if U.Name=="\070\076"or U.Name=="\070\082"or U.Name=="\070"then table.remove(Drive,3)table.remove(Drive,4)end end end end end car.DriveSeat.AWD.Changed:connect(function()AWD()end)AWD()while wait(.0667)do if _TMode=="\065\117\116\111"then Auto()end if _Tune.AutoFlip then Flip()end end
--[[Run]]

--Print Version
local ver = require(car["A-Chassis Tune"].README)
print("Novena: AC6T Loaded - Build " .. ver)

--Runtime Loops

-- ~60 c/s
game["Run Service"].Stepped:connect(function()
	--Steering
	Steering()

	--Power
	Engine()

	--Update External Values
	_IsOn = car.DriveSeat.IsOn.Value
	_InControls = script.Parent.ControlsOpen.Value
	script.Parent.Values.Gear.Value = _CGear
	script.Parent.Values.RPM.Value = _RPM
	script.Parent.Values.Boost.Value = (_Boost / 2) * _TPsi
	script.Parent.Values.Horsepower.Value = _HP
	script.Parent.Values.HpNatural.Value = _NH
	script.Parent.Values.HpBoosted.Value = _BH * (_Boost / 2)
	script.Parent.Values.Torque.Value = _HP * _Tune.EqPoint / _RPM
	script.Parent.Values.TqNatural.Value = _NT
	script.Parent.Values.TqBoosted.Value = _BT * (_Boost / 2)
	script.Parent.Values.Throttle.Value = _GThrot * _GThrotShift
	script.Parent.Values.SteerC.Value = _GSteerC
		* (1 - math.min(car.DriveSeat.Velocity.Magnitude / _Tune.SteerDecay, 1 - (_Tune.MinSteer / 100)))
	script.Parent.Values.SteerT.Value = _GSteerT
	script.Parent.Values.PBrake.Value = _PBrake
	script.Parent.Values.TCS.Value = _TCS
	script.Parent.Values.TCSActive.Value = _TCSActive
	script.Parent.Values.TCSAmt.Value = 1 - _TCSAmt
	script.Parent.Values.ABS.Value = _ABS
	script.Parent.Values.ABSActive.Value = _ABSActive
	script.Parent.Values.MouseSteerOn.Value = _MSteer
	script.Parent.Values.Velocity.Value = car.DriveSeat.Velocity
	script.Parent.Values.TransmissionMode.Value = _TMode

	if car.DriveSeat.AWD.Value then -- SET AWD
		car.DriveSeat:WaitForChild("Rev").Volume = 0.5
		car.DriveSeat:WaitForChild("Idle").Volume = 0.5
		car.DriveSeat:WaitForChild("Startup").Volume = 0.34
	else --make RWD
		car.DriveSeat:WaitForChild("Idle").Volume = 1.3
		car.DriveSeat:WaitForChild("Rev").Volume = 1.3
		car.DriveSeat:WaitForChild("Startup").Volume = 1
	end

	if car.DriveSeat.CC.Value == true then
		if (car.DriveSeat.Velocity.Magnitude * ((10 / 12) * (60 / 88))) - 2 > car.DriveSeat.CCS.Value then
			_CBrake = 0.15
		else
			_CThrot = 0.9
		end
	else
		_CBrake = 0
		_CThrot = 0
	end
	if car.DriveSeat.SST.Value then
		if (_RPM - 10) <= _Tune.IdleRPM then
			if (_GBrake > 0.05) or (_PBrake == true) then
				car.DriveSeat.Tic.Value = true
			else
				car.DriveSeat.Tic.Value = false
			end
		end
	else
		car.DriveSeat.Tic.Value = false
	end
	if _GBrake > 0 then
		car.DriveSeat.CC.Value = false
	end
end)
function AWD()
	if car.DriveSeat.AWD.Value then -- SET AWD
		if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
			for i, v in pairs(car.Wheels:GetChildren()) do
				if v.Name == "FL" or v.Name == "FR" or v.Name == "F" then
					table.insert(Drive, v)
				end
			end
		end
	else --make RWD
		if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
			for i, v in pairs(car.Wheels:GetChildren()) do
				if v.Name == "FL" or v.Name == "FR" or v.Name == "F" then
					table.remove(Drive, 3)
					table.remove(Drive, 4)
				end
			end
		end
	end
end

car.DriveSeat.AWD.Changed:connect(function()
	AWD()
end)

AWD()
--15 c/s
while wait(0.0667) do
	--Automatic Transmission
	if _TMode == "Auto" then
		Auto()
	end

	--Flip
	if _Tune.AutoFlip then
		Flip()
	end
end
