local o=_Tune.AutoStart if _Tune.AutoStart and(_Tune.Engine or _Tune.Electric)then script.Parent.IsOn.Value=true end local D=0 local Z=0 local r=0 local H=_Tune.IdleThrottle/100 local I=tick()local s=0 local x=0 local K=tick()local O=false local M=0 local v=0 local p=0 local u=0 local y=0 local d=0 local L=0 local S=L local G=false local U=false local T=false local n=0 local k=0 local F=0 local B=0 local h=0 local Q=0 local R=0 local q=0 local g=0 local f=0 local J=0 local P=0 local N=0 local a=0 local W=0 local i=0 local A=0 local C=0 local c=_Tune.TransModes[1]local t=false local Y=false local w=false local e=false local X=_Tune.TCS local j=false local z=0 local m=_Tune.ABS local E=false local b=false local V=0 local l=false local o6=false bike.Body.bal.LeanGyro.D=_Tune.LeanD bike.Body.bal.LeanGyro.MaxTorque=Vector3.new(0,0,_Tune.LeanMaxTorque)bike.Body.bal.LeanGyro.P=_Tune.LeanP


local _IsOn = _Tune.AutoStart
if _Tune.AutoStart and (_Tune.Engine or _Tune.Electric) then script.Parent.IsOn.Value=true end

local _GSteerT=0
local _GSteerC=0
local _GThrot=0
local _InThrot=_Tune.IdleThrottle/100
local _TTick=tick()
local _GBrake=0
local _InBrake=0
local _BTick=tick()

local _ClPressing = false
local _Clutch = 0
local _ClutchKick = 0
local _ClutchModulate = 0
local _RPM = 0
local _HP = 0
local _OutTorque = 0
local _CGear = 0
local _PGear = _CGear
local _ShiftUp = false
local _ShiftDn = false
local _Shifting = false
local _spLimit = 0

local _Boost = 0
local _TCount = 0
local _TPsi = 0
local _TBoost = 0
local _SCount = 0
local _SPsi = 0
local _SBoost = 0
local _NH = 0
local _NT = 0
local _EH = 0
local _ET = 0
local _TH = 0
local _TT = 0
local _SH = 0
local _ST = 0
local _BH = 0
local _BT = 0

local _TMode = _Tune.TransModes[1]

local _MSteer = false
local _SteerL = false
local _SteerR = false
local _PBrake = false
local _TCS = _Tune.TCS
local _TCSActive = false
local _TCSAmt = 0
local _ABS = _Tune.ABS
local _fABSActive = false
local _rABSActive = false

local _SlipCount = 0
local _ClutchSlip = false

local _InControls = false

bike.Body.bal.LeanGyro.D = _Tune.LeanD
bike.Body.bal.LeanGyro.MaxTorque = Vector3.new(0,0,_Tune.LeanMaxTorque)
bike.Body.bal.LeanGyro.P = _Tune.LeanP


