local l=car.Body.Sensors local c=_Tune.AutoStart if _Tune.AutoStart then car.DriveSeat.IsOn.Value=true end local g=0 local A=0 local n=0 local Y=0 local i=true local s=false local T=0 local L=0 local D=0 local r=0 local E=r local I=0 local e=_Tune.TransModes[1]local w=false local M=false local m=false local S=false local q=_Tune.TCSEnabled local b=false local F=_Tune.ABSEnabled local O=false local U=tick()local N=false local a=false script.Parent.DriveMode.Changed:Connect(function()if script.Parent.DriveMode.Value=="\083\112\111\114\116\080\108\117\115"then if _Tune.TCSEnabled and c then q=false end else if _Tune.TCSEnabled and c then q=true end end end)


	local snsrs = car.Body.Sensors

	local _IsOn = _Tune.AutoStart
	if _Tune.AutoStart then car.DriveSeat.IsOn.Value=true end
	
	local _GSteerT=0
	local _GSteerC=0
	local _GThrot=0
	local _GBrake=0
	
	local _ClutchOn = true
	local _ClPressing = false
	local _RPM = 0
	local _HP = 0
	local _OutTorque = 0
	local _CGear = 0
	local _PGear = _CGear
	local _spLimit = 0
	
	local _TMode = _Tune.TransModes[1]
	
	local _MSteer = false
	local _SteerL = false
	local _SteerR = false
	local _PBrake = false
	local _TCS = _Tune.TCSEnabled
	local _TCSActive = false
	local _ABS = _Tune.ABSEnabled
	local _ABSActive = false
	
	local FlipWait=tick()
	local FlipDB=false
	
	local _InControls = false

	script.Parent.DriveMode.Changed:Connect(function()
		if script.Parent.DriveMode.Value == "SportPlus" then
		   if _Tune.TCSEnabled and _IsOn then
					_TCS = false
		   end
		else
		   if _Tune.TCSEnabled and _IsOn then
					_TCS = true
		   end			
		end
	end)


