local x="\083\108\105\099\107\115"local g={TireWearOn=true;FWearSpeed=.2;FTargetFriction=1.23,FMinFriction=.35;RWearSpeed=.2;RTargetFriction=1.23;RMinFriction=.35,TCSOffRatio=.58823529411765;WheelLockRatio=.16666666666667,WheelspinRatio=.83333333333333,FFrictionWeight=2;RFrictionWeight=2;FLgcyFrWeight=0;RLgcyFrWeight=0,FElasticity=0,RElasticity=0,FLgcyElasticity=0;RLgcyElasticity=0,FElastWeight=1,RElastWeight=1,FLgcyElWeight=10;RLgcyElWeight=10;RegenSpeed=3.6}local u={TireWearOn=true,FWearSpeed=.2,FTargetFriction=.6;FMinFriction=.35;RWearSpeed=.2;RTargetFriction=.6,RMinFriction=.35;TCSOffRatio=1;WheelLockRatio=.16666666666667;WheelspinRatio=.83333333333333,FFrictionWeight=2;RFrictionWeight=2;FLgcyFrWeight=0,RLgcyFrWeight=0;FElasticity=0;RElasticity=0,FLgcyElasticity=0;RLgcyElasticity=0,FElastWeight=1;RElastWeight=1;FLgcyElWeight=10;RLgcyElWeight=10;RegenSpeed=3.6}local e={TireWearOn=true,FWearSpeed=.6;FTargetFriction=.93;FMinFriction=.35,RWearSpeed=.6;RTargetFriction=.93;RMinFriction=.35;TCSOffRatio=1,WheelLockRatio=.16666666666667,WheelspinRatio=.83333333333333,FFrictionWeight=.6,RFrictionWeight=.6;FLgcyFrWeight=0,RLgcyFrWeight=0,FElasticity=0,RElasticity=0;FLgcyElasticity=0,RLgcyElasticity=0;FElastWeight=1,RElastWeight=1;FLgcyElWeight=10,RLgcyElWeight=10,RegenSpeed=3.6}local Y={TireWearOn=true,FWearSpeed=.5;FTargetFriction=.78;FMinFriction=.35;RWearSpeed=.5;RTargetFriction=.78,RMinFriction=.35;TCSOffRatio=1,WheelLockRatio=.16666666666667;WheelspinRatio=.83333333333333;FFrictionWeight=.6,RFrictionWeight=.6;FLgcyFrWeight=0,RLgcyFrWeight=0;FElasticity=0;RElasticity=0;FLgcyElasticity=0,RLgcyElasticity=0,FElastWeight=1,RElastWeight=1;FLgcyElWeight=10;RLgcyElWeight=10;RegenSpeed=3.6}local v={TireWearOn=true,FWearSpeed=.3;FTargetFriction=.5,FMinFriction=.35;RWearSpeed=.3;RTargetFriction=.5,RMinFriction=.35;TCSOffRatio=1,WheelLockRatio=.16666666666667,WheelspinRatio=.83333333333333;FFrictionWeight=10;RFrictionWeight=10,FLgcyFrWeight=0,RLgcyFrWeight=0,FElasticity=0,RElasticity=0,FLgcyElasticity=0;RLgcyElasticity=0;FElastWeight=1;RElastWeight=1;FLgcyElWeight=10,RLgcyElWeight=10;RegenSpeed=3.6}local R={TireWearOn=true;FWearSpeed=30;FTargetFriction=1.2;FMinFriction=.35;RWearSpeed=30;RTargetFriction=1.2;RMinFriction=.35;TCSOffRatio=1;WheelLockRatio=.16666666666667;WheelspinRatio=.83333333333333,FFrictionWeight=1;RFrictionWeight=1;FLgcyFrWeight=0;RLgcyFrWeight=0;FElasticity=0,RElasticity=0,FLgcyElasticity=0,RLgcyElasticity=0,FElastWeight=1;RElastWeight=1,FLgcyElWeight=10,RLgcyElWeight=10,RegenSpeed=20}local G=script.Parent.Parent.Car.Value local E=require(G["\065-\067\104\097\115\115\105\115 \084\117\110\101"])local r=script.Parent.Parent:WaitForChild("\086\097\108\117\101\115")local j=u if x=="\068\114\097\103\082\097\100\105\097\108\115"then j=R elseif x=="\067\117\115\116\111\109"then j=g elseif x=="\065\108\108\084\101\114\114\097\105\110"then j=v elseif x=="\083\108\105\099\107\115"then j=e elseif x=="\083\101\109\105\083\108\105\099\107\115"then j=Y else j=u end G.DriveSeat.TireStats.Fwear.Value=j.FWearSpeed G.DriveSeat.TireStats.Ffriction.Value=j.FTargetFriction G.DriveSeat.TireStats.Fminfriction.Value=j.FMinFriction G.DriveSeat.TireStats.Ffweight.Value=j.FFrictionWeight G.DriveSeat.TireStats.Rwear.Value=j.RWearSpeed G.DriveSeat.TireStats.Rfriction.Value=j.RTargetFriction G.DriveSeat.TireStats.Rminfriction.Value=j.RMinFriction G.DriveSeat.TireStats.Rfweight.Value=j.RFrictionWeight G.DriveSeat.TireStats.TCS.Value=j.TCSOffRatio G.DriveSeat.TireStats.Lock.Value=j.WheelLockRatio G.DriveSeat.TireStats.Spin.Value=j.WheelspinRatio G.DriveSeat.TireStats.Reg.Value=j.RegenSpeed


local _Select = "Slicks" --(AllSeason, Slicks, SemiSlicks, AllTerrain, DragRadials, Custom) Caps and space sensitive

local _Custom = {

	TireWearOn         = true    ,

    --Friction and Wear
    FWearSpeed        = .2    , --How fast your tires will degrade (Front)
    FTargetFriction    = 1.23   , --Friction in optimal conditions (Front)
    FMinFriction     = 0.35   , --Friction in worst conditions (Front)

    RWearSpeed        = .2    , --How fast your tires will degrade (Rear)
    RTargetFriction    = 1.23 ,  --Friction in optimal conditions (Rear)
    RMinFriction    = 0.35    , --Friction in worst conditions (Rear)

    --Tire Slip
    TCSOffRatio        = 1/1.7     , --How much optimal grip your car will lose with TCS off, set to 1 if you dont want any losses.
    WheelLockRatio    = 1/6    , --How much grip your car will lose when locking the wheels
    WheelspinRatio    = 1/1.2  , --How much grip your car will lose when spinning the wheels

    --Wheel Properties
    FFrictionWeight    = 2      , --Ratio of friction between wheel and terrain, the higher it is, the more true to target friction your grip wil be (Front) (PGS)
    RFrictionWeight    = 2      , --Ratio of friction between wheel and terrain, the higher it is, the more true to target friction your grip wil be (Rear) (PGS)
    FLgcyFrWeight    = 0        , --Ratio of friction between wheel and terrain, the higher it is, the more true to target friction your grip wil be (Front)
    RLgcyFrWeight    = 0        , --Ratio of friction between wheel and terrain, the higher it is, the more true to target friction your grip wil be (Rear)

    FElasticity        = 0     , --How much your wheel will bounce (Front) (PGS)
    RElasticity        = 0     , --How much your wheel will bounce (Rear) (PGS)
    FLgcyElasticity    = 0     , --How much your wheel will bounce (Front)
    RLgcyElasticity    = 0     , --How much your wheel will bounce (Rear)

    FElastWeight    = 1      , --Ratio of elasticity between wheel and terrain, the higher it is, the more true to the wheel elasticity it will be (Front) (PGS)
    RElastWeight    = 1      , --Ratio of elasticity between wheel and terrain, the higher it is, the more true to the wheel elasticity it will be (Rear) (PGS)
    FLgcyElWeight    = 10    , --Ratio of elasticity between wheel and terrain, the higher it is, the more true to the wheel elasticity it will be (Front)
    RLgcyElWeight    = 10    , --Ratio of elasticity between wheel and terrain, the higher it is, the more true to the wheel elasticity it will be (Rear)

    --Wear Regen
    RegenSpeed        = 3.6		, --Don't change this
}

local _AllSeason = {

	TireWearOn         = true    ,

    --Friction and Wear
    FWearSpeed        = .2    , --Don't change this
    FTargetFriction    = .6   , -- .58 to .63
    FMinFriction     = 0.35   , --Don't change this

    RWearSpeed        = .2    , --Don't change this
    RTargetFriction    = .6  , -- .58 to .63
    RMinFriction    = 0.35    , --Don't change this

    --Tire Slip
    TCSOffRatio        = 1     , --Don't change this
    WheelLockRatio    = 1/6    , --Don't change this
    WheelspinRatio    = 1/1.2  ,  --Don't change this

    --Wheel Properties
    FFrictionWeight    = 2      , --Don't change this
    RFrictionWeight    = 2      , --Don't change this
    FLgcyFrWeight    = 0        , --Don't change this
    RLgcyFrWeight    = 0        , --Don't change this

    FElasticity        = 0     , --Don't change this
    RElasticity        = 0     , --Don't change this
    FLgcyElasticity    = 0     , --Don't change this
    RLgcyElasticity    = 0     , --Don't change this

    FElastWeight    = 1      , --Don't change this
    RElastWeight    = 1      , --Don't change this
    FLgcyElWeight    = 10    , --Don't change this
    RLgcyElWeight    = 10    , --Don't change this

    --Wear Regen
    RegenSpeed        = 3.6		, --Don't change this
}

local _Slicks = {

	TireWearOn         = true    ,

    --Friction and Wear
    FWearSpeed        = .6    , --Don't change this
    FTargetFriction    = .93   , -- .88 to .93
    FMinFriction     = 0.35   , --Don't change this

    RWearSpeed        = .6    , --Don't change this
    RTargetFriction    = .93  , -- .88 to .93
    RMinFriction    = 0.35    , --Don't change this

    --Tire Slip
    TCSOffRatio        = 1     , --Don't change this
    WheelLockRatio    = 1/6    , --Don't change this
    WheelspinRatio    = 1/1.2  ,  --Don't change this

    --Wheel Properties
    FFrictionWeight    = 0.6      , --Don't change this
    RFrictionWeight    = 0.6      , --Don't change this
    FLgcyFrWeight    = 0        , --Don't change this
    RLgcyFrWeight    = 0        , --Don't change this

    FElasticity        = 0     , --Don't change this
    RElasticity        = 0     , --Don't change this
    FLgcyElasticity    = 0     , --Don't change this
    RLgcyElasticity    = 0     , --Don't change this

    FElastWeight    = 1      , --Don't change this
    RElastWeight    = 1      , --Don't change this
    FLgcyElWeight    = 10    , --Don't change this
    RLgcyElWeight    = 10    , --Don't change this

    --Wear Regen
    RegenSpeed        = 3.6		, --Don't change this
}

local _SemiSlicks = {

	TireWearOn         = true    ,

    --Friction and Wear
    FWearSpeed        = .5    , --Don't change this
    FTargetFriction    = .78   , -- .73 to .78
    FMinFriction     = 0.35   , --Don't change this

    RWearSpeed        = .5    , --Don't change this
    RTargetFriction    = .78  , -- .73 to .78
    RMinFriction    = 0.35    , --Don't change this

    --Tire Slip
    TCSOffRatio        = 1     , --Don't change this
    WheelLockRatio    = 1/6    , --Don't change this
    WheelspinRatio    = 1/1.2  ,  --Don't change this

    --Wheel Properties
    FFrictionWeight    = 0.6      , --Don't change this
    RFrictionWeight    = 0.6      , --Don't change this
    FLgcyFrWeight    = 0        , --Don't change this
    RLgcyFrWeight    = 0        , --Don't change this

    FElasticity        = 0     , --Don't change this
    RElasticity        = 0     , --Don't change this
    FLgcyElasticity    = 0     , --Don't change this
    RLgcyElasticity    = 0     , --Don't change this

    FElastWeight    = 1      , --Don't change this
    RElastWeight    = 1      , --Don't change this
    FLgcyElWeight    = 10    , --Don't change this
    RLgcyElWeight    = 10    , --Don't change this

    --Wear Regen
    RegenSpeed        = 3.6		, --Don't change this
}

local _AllTerrain = {

	TireWearOn         = true    ,

    --Friction and Wear
    FWearSpeed        = .3    , --Don't change this
    FTargetFriction    = .5   , -- .48 to .53
    FMinFriction     = 0.35   , --Don't change this

    RWearSpeed        = .3    , --Don't change this
    RTargetFriction    = .5  , -- .48 to .53
    RMinFriction    = 0.35    , --Don't change this

    --Tire Slip
    TCSOffRatio        = 1     , --Don't change this
    WheelLockRatio    = 1/6    , --Don't change this
    WheelspinRatio    = 1/1.2  ,  --Don't change this

    --Wheel Properties
    FFrictionWeight    = 10      , --Don't change this
    RFrictionWeight    = 10      , --Don't change this
    FLgcyFrWeight    = 0        , --Don't change this
    RLgcyFrWeight    = 0        , --Don't change this

    FElasticity        = 0     , --Don't change this
    RElasticity        = 0     , --Don't change this
    FLgcyElasticity    = 0     , --Don't change this
    RLgcyElasticity    = 0     , --Don't change this

    FElastWeight    = 1      , --Don't change this
    RElastWeight    = 1      , --Don't change this
    FLgcyElWeight    = 10    , --Don't change this
    RLgcyElWeight    = 10    , --Don't change this

    --Wear Regen
    RegenSpeed        = 3.6		, --Don't change this
}

local _DragRadials = {

	TireWearOn         = true    ,

    --Friction and Wear
    FWearSpeed        = 30    , --Don't change this
    FTargetFriction    = 1.2   , -- 1.18 to 1.23
    FMinFriction     = 0.35   , --Don't change this

    RWearSpeed        = 30    , --Don't change this
    RTargetFriction    = 1.2  , -- 1.18 to 1.23
    RMinFriction    = 0.35    , --Don't change this

    --Tire Slip
    TCSOffRatio        = 1     , --Don't change this
    WheelLockRatio    = 1/6    , --Don't change this
    WheelspinRatio    = 1/1.2  ,  --Don't change this

    --Wheel Properties
    FFrictionWeight    = 1      , --Don't change this
    RFrictionWeight    = 1      , --Don't change this
    FLgcyFrWeight    = 0        , --Don't change this
    RLgcyFrWeight    = 0        , --Don't change this

    FElasticity        = 0     , --Don't change this
    RElasticity        = 0     , --Don't change this
    FLgcyElasticity    = 0     , --Don't change this
    RLgcyElasticity    = 0     , --Don't change this

    FElastWeight    = 1      , --Don't change this
    RElastWeight    = 1      , --Don't change this
    FLgcyElWeight    = 10    , --Don't change this
    RLgcyElWeight    = 10    , --Don't change this

    --Wear Regen
    RegenSpeed        = 20		, --Don't change this
}


local car = script.Parent.Parent.Car.Value
local _Tune = require(car["A-Chassis Tune"])
local cValues = script.Parent.Parent:WaitForChild("Values")
local _WHEELTUNE = _AllSeason

if _Select == "DragRadials" then
	_WHEELTUNE = _DragRadials
elseif _Select == "Custom" then
	_WHEELTUNE = _Custom
elseif _Select == "AllTerrain" then
	_WHEELTUNE = _AllTerrain
elseif _Select == "Slicks" then
	_WHEELTUNE = _Slicks
elseif _Select == "SemiSlicks" then
	_WHEELTUNE = _SemiSlicks
else
	_WHEELTUNE = _AllSeason
end

car.DriveSeat.TireStats.Fwear.Value = _WHEELTUNE.FWearSpeed
car.DriveSeat.TireStats.Ffriction.Value = _WHEELTUNE.FTargetFriction
car.DriveSeat.TireStats.Fminfriction.Value = _WHEELTUNE.FMinFriction
car.DriveSeat.TireStats.Ffweight.Value = _WHEELTUNE.FFrictionWeight
		
car.DriveSeat.TireStats.Rwear.Value = _WHEELTUNE.RWearSpeed
car.DriveSeat.TireStats.Rfriction.Value = _WHEELTUNE.RTargetFriction
car.DriveSeat.TireStats.Rminfriction.Value = _WHEELTUNE.RMinFriction
car.DriveSeat.TireStats.Rfweight.Value = _WHEELTUNE.RFrictionWeight

car.DriveSeat.TireStats.TCS.Value = _WHEELTUNE.TCSOffRatio
car.DriveSeat.TireStats.Lock.Value = _WHEELTUNE.WheelLockRatio
car.DriveSeat.TireStats.Spin.Value = _WHEELTUNE.WheelspinRatio
car.DriveSeat.TireStats.Reg.Value = _WHEELTUNE.RegenSpeed
