local Z=_Tune.AutoStart if _Tune.AutoStart then script.Parent.IsOn.Value=true end local e=0 local a=0 local c=0 local M=0 local T=true local Y=false local D=0 local Q=0 local n=0 local O=0 local R=O local w=0 local j=_Tune.TransModes[1]local d=false local C=false local y=false local p=false local L=_Tune.TCSEnabled local m=false local k=_Tune.ABSEnabled local B=false local f=tick()local U=false local z=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 Z then L=false end else if _Tune.TCSEnabled and Z then L=true end end end)


	local _IsOn = _Tune.AutoStart
	if _Tune.AutoStart then script.Parent.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)


