local t=_Tune.AutoStart if _Tune.AutoStart then script.Parent.IsOn.Value=true end local e=0 local o=0 local R=0 local s=0 local q=true local J=false local U=0 local S=0 local y=0 local H=0 local r=H local v=0 local z=_Tune.TransModes[1]local T=false local Z=false local N=false local I=false local c=_Tune.TCSEnabled local p=false local m=_Tune.ABSEnabled local W=false local D=tick()local G=false local M=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 t then c=false end else if _Tune.TCSEnabled and t then c=true end end end)
--[[Status Vars]]

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)
