--//Value Info//--



script.Assets.Screen.StockUI.VehicleName.Text = VehicleName

vholder = Instance.new("Folder")
vholder.Name = "Storage"
vholder.Parent = script.Assets.Screen


vexternal = Instance.new("Folder")
vexternal.Name = "Storage"
vexternal.Parent = script.Parent

vname = Instance.new("StringValue")
vname.Parent = vholder
vname.Name = "CarName"
vname.Value = VehicleName

vhorsepower = Instance.new("NumberValue")
vhorsepower.Parent = vholder
vhorsepower.Name = "EngineHorsepower"
vhorsepower.Value = Horsepower

vdisplacement = Instance.new("NumberValue")
vdisplacement.Parent = vholder
vdisplacement.Name = "EngineDisplacement"
vdisplacement.Value = EngineDisplacement

vtirefl = Instance.new("NumberValue", vexternal)
vtirefl.Value = 0.59999999999999998
vtirefl.Name = "HeatFL"

vtirefr = Instance.new("NumberValue", vexternal)
vtirefr.Value = 0.59999999999999998
vtirefr.Name = "HeatFR"

vtirerl = Instance.new("NumberValue", vexternal)
vtirerl.Value = 0.59999999999999998
vtirerl.Name = "HeatRL"

vtirerr = Instance.new("NumberValue", vexternal)
vtirerr.Value = 0.59999999999999998
vtirerr.Name = "HeatRR"

venginetype = Instance.new("StringValue")
venginetype.Parent = vholder
venginetype.Name = "EngineType"
venginetype.Value = EngineType

vforcedinduction = Instance.new("StringValue")
vforcedinduction.Parent = vholder
vforcedinduction.Name = "InductionType"
vforcedinduction.Value = ForcedInduction

vinduction = Instance.new("NumberValue")
vinduction.Parent = vholder
vinduction.Name = "TurboSize"
if ForcedInduction == "Natural" then
	vinduction = 0
	else
vinduction.Value = InductionPartSize
end
vdrivetrain = Instance.new("StringValue")
vdrivetrain.Parent = vholder
vdrivetrain.Name = "Drivetrain"
vdrivetrain.Value = Drivetrain

vtorquesplit = Instance.new("NumberValue")
vtorquesplit.Parent = vexternal
vtorquesplit.Name = "TorqueSplit"
vtorquesplit.Value = TorqueSplit 

vdff = Instance.new("NumberValue")
vdff.Parent = vexternal
vdff.Name = "DownforceF"
vdff.Value = DownforceF 

vdfr = Instance.new("NumberValue")
vdfr.Parent = vexternal
vdfr.Name = "DownforceR"
vdfr.Value = DownforceR 

vFdifferential = Instance.new("NumberValue")
vFdifferential.Parent = vholder
vFdifferential.Name = "FDifferential"
vFdifferential.Value = DifferentialF

vRdifferential = Instance.new("NumberValue")
vRdifferential.Parent = vholder
vRdifferential.Name = "RDifferential"
vRdifferential.Value = DifferentialR

vgears = Instance.new("NumberValue")
vgears.Parent = vholder
vgears.Name = "AmountOfGears"
if EngineType == "Electric" or TransmissionType == "CVT" then
vgears.Value = 1 
else
vgears.Value = AmountOfGears
end

vautoflip = Instance.new("BoolValue")
vautoflip.Parent = vholder
vautoflip.Name = "Autoflip"
vautoflip.Value = AUTO_FLIP

vdecay = Instance.new("NumberValue")
vdecay.Parent = vholder
vdecay.Name = "RPMDecay"
vdecay.Value = RevDecay

vtrans = Instance.new("StringValue")
vtrans.Parent = vholder
vtrans.Name = "TransmissionType"
vtrans.Value = TransmissionType

vmanual = Instance.new("BoolValue")
vmanual.Parent = vholder
vmanual.Name = "ManualOnly"
vmanual.Value = ManualOnly

vautoclutch = Instance.new("BoolValue")
vautoclutch.Parent = vholder
vautoclutch.Name = "AutoClutch"

vmode = Instance.new("StringValue")
vmode.Parent = vexternal
vmode.Value = Mode
vmode.Name = "Mode"

if TransmissionType == "HPattern" then
vautoclutch.Value = false
else
vautoclutch.Value = true
end

vclutch = Instance.new("BoolValue")
vclutch.Parent = vholder
vclutch.Name = "Clutch"
vclutch.Value = true

vclutch2 = Instance.new("NumberValue")
vclutch2.Parent = vclutch
vclutch2.Name = "Clutch"
vclutch2.Value = 1

vbrakebias = Instance.new("NumberValue")
vbrakebias.Parent = vexternal
vbrakebias.Name = "BrakeBias"
vbrakebias.Value = BrakeBias

vbrakepower = Instance.new("NumberValue")
vbrakepower.Parent = vexternal
vbrakepower.Name = "BrakePower"
vbrakepower.Value = BrakePower

vabs = Instance.new("BoolValue")
vabs.Parent = vexternal
vabs.Name = "ABS"
vabs.Value = ABS

vtc = Instance.new("BoolValue")
vtc.Parent = vexternal
vtc.Name = "TC"
vtc.Value = TC

vasc = Instance.new("BoolValue")
vasc.Parent = vexternal
vasc.Name = "ASC"
vasc.Value = ActiveStabilityControl

vhb = Instance.new("BoolValue")
vhb.Parent = vexternal
vhb.Name = "Handbrake"
vhb.Value = false

vChb = Instance.new("BoolValue")
vChb.Parent = vhb
vChb.Name = "Computer"
vChb.Value = false

vUhb = Instance.new("BoolValue")
vUhb.Parent = vhb
vUhb.Name = "User"
vUhb.Value = false

vsteeringlock = Instance.new("NumberValue")
vsteeringlock.Parent = vexternal
vsteeringlock.Name = "SteeringAngle"
vsteeringlock.Value = SteeringAngle

vtirefront = Instance.new("NumberValue")
vtirefront.Parent = vholder
vtirefront.Name = "TireCompoundFront"
vtirefront.Value = TiresFront

vtirerear = Instance.new("NumberValue")
vtirerear.Parent = vholder
vtirerear.Name = "TireCompoundRear"
vtirerear.Value = TiresRear

vgear1 = Instance.new("NumberValue")
vgear1.Parent = vholder
vgear1.Name = "Gear1"
if EngineType == "Electric" then
vgear1.Value = 4
else
vgear1.Value = Gear1
end

vgear2 = Instance.new("NumberValue")
vgear2.Parent = vholder
vgear2.Name = "Gear2"
vgear2.Value = Gear2

vgear3 = Instance.new("NumberValue")
vgear3.Parent = vholder
vgear3.Name = "Gear3"
vgear3.Value = Gear3

vgear4 = Instance.new("NumberValue")
vgear4.Parent = vholder
vgear4.Name = "Gear4"
vgear4.Value = Gear4

vgear5 = Instance.new("NumberValue")
vgear5.Parent = vholder
vgear5.Name = "Gear5"
vgear5.Value = Gear5

vgear6 = Instance.new("NumberValue")
vgear6.Parent = vholder
vgear6.Name = "Gear6"
vgear6.Value = Gear6

vgear7 = Instance.new("NumberValue")
vgear7.Parent = vholder
vgear7.Name = "Gear7"
vgear7.Value = Gear7

vgear8 = Instance.new("NumberValue")
vgear8.Parent = vholder
vgear8.Name = "Gear8"
vgear8.Value = Gear8

vfinal = Instance.new("NumberValue")
vfinal.Parent = vexternal
vfinal.Name = "FinalDrive"
vfinal.Value = 6.08 - FinalDrive

vidle = Instance.new("NumberValue")
vidle.Parent = vholder
vidle.Name = "EngineIdle"
vidle.Value = EngineIdle+RevDecay

vdyno = Instance.new("BoolValue")
vdyno.Parent = script.Parent
vdyno.Name = "Dyno"
vdyno.Value = false

vboost = Instance.new("NumberValue")
vboost.Parent = vholder
vboost.Name = "Boost"
vboost.Value = 0

vepitch = Instance.new("NumberValue")
vepitch.Parent = script.Assets.Screen
vepitch.Name = "ePitch"
vepitch.Value = enginePitchAdjust

vsteerspeed = Instance.new("NumberValue")
vsteerspeed.Parent = vholder
vsteerspeed.Name = "SteerSpeed"
vsteerspeed.Value = SteerSpeed

vipitch = Instance.new("NumberValue")
vipitch.Parent = script.Assets.Screen
vipitch.Name = "iPitch"
vipitch.Value = idlePitchAdjust

vredline = Instance.new("NumberValue")
vredline.Parent = vholder
vredline.Name = "EngineRedline"
vredline.Value = EngineRedline

vmaxl = Instance.new("NumberValue")
vmaxl.Parent = vholder
vmaxl.Name = "MaxLength"
vmaxl.Value = minL

vminl = Instance.new("NumberValue")
vminl.Parent = vholder
vminl.Name = "MinLength"
vminl.Value = maxL

sturbo = Instance.new("Sound")
sturbo.Parent = engine
sturbo.Name = "Turbo"
sturbo.MaxDistance = 12000
sturbo.EmitterSize = InductionPartSize
sturbo.Volume = turbovolume
if InductionPartSize ~= 0 then
sturbo.SoundId = TurboSound
else
sturbo.SoundId = 0
end
sturbo = Instance.new("NumberValue")
sturbo.Parent = engine
sturbo.Name = "TurboSV"
sturbo.Value = turbovolume

ssupercharger = Instance.new("Sound")
ssupercharger.Parent = engine
ssupercharger.Name = "Supercharger"
ssupercharger.MaxDistance = 12000
ssupercharger.EmitterSize = InductionPartSize
ssupercharger.Volume = superchargervolume
ssupercharger.SoundId = SuperchargerSound

sidle = Instance.new("Sound")
sidle.Parent = diff
sidle.Name = "Idle"
sidle.MaxDistance = 12000
sidle.EmitterSize = 3
sidle.Volume = 0
sidle:Play()
sidle.Looped = true

sengine = Instance.new("Sound")
sengine.Parent = diff
sengine.Name = "Engine"
sengine.MaxDistance = 12000
sengine.EmitterSize = 6
sengine.Volume = 1
sengine:Play()
sengine.Looped = true
sengine.Volume = 0

sefengine = Instance.new("ReverbSoundEffect")
sefengine.DecayTime = 0.3
sefengine.Density = 1
sefengine.Diffusion = 1
sefengine.DryLevel = 3
sefengine.WetLevel = -6

sintake = Instance.new("Sound")
sintake.Parent = engine
sintake.Name = "Intake"
sintake.MaxDistance = 4000
sintake.EmitterSize = 2
sintake:Play()
sintake.Looped = true
sintake.Volume = 1
sintake.Pitch = 0

if EngineType == "Electric" then
sengine.SoundId =	"http://www.roblox.com/asset/?id=359277436"
IdleSound = "http://www.roblox.com/asset/?id=359277436"
sidle.SoundId = "http://www.roblox.com/asset/?id=359277436"
else
sengine.SoundId = EngineSound
sintake.SoundId =	"http://www.roblox.com/asset/?id=255444016"
sidle.SoundId = IdleSound
end

shorn = Instance.new("Sound")
shorn.Parent = script.Parent
shorn.Name = "Horn"
shorn.MaxDistance = 12000
shorn.EmitterSize = 8
shorn.Volume = hornvolume
shorn.SoundId = HornSound

swind = Instance.new("Sound")
swind.Parent = script.Parent
swind.Name = "Wind"
swind.MaxDistance = 12000
swind.EmitterSize = 4
swind.Volume = 0
swind.Pitch = 1
swind.Looped = true
swind.SoundId = "http://www.roblox.com/asset/?id=188608071"

sbsqueal = Instance.new("Sound")
sbsqueal.Parent = diff
sbsqueal.Name = "Brakes"
sbsqueal.MaxDistance = 12000
sbsqueal.EmitterSize = 2
sbsqueal.Volume = 0
sbsqueal.Pitch = 0
sbsqueal.Looped = true
sbsqueal.SoundId = "http://www.roblox.com/asset/?id=185857550"

sblow = Instance.new("Sound")
sblow.Parent = engine
sblow.Name = "Blowoff"
sblow.MaxDistance = 12000
sblow.EmitterSize = 5
sblow.Volume = 0
sblow.Pitch = 0.8
sblow.Looped = false
sblow.SoundId = "http://www.roblox.com/asset/?id=208085141"

sstartup = Instance.new("Sound")
sstartup.Parent = engine
sstartup.Name = "Startup"
sstartup.MaxDistance = 1000
sstartup.EmitterSize = 13
sstartup.Volume = startupvolume
if EngineType == "Electric" then
sstartup.SoundId = "http://www.roblox.com/asset/?id=402899121"
sstartup.Pitch = 2
else
sstartup.SoundId = StartupSound
sstartup.Pitch = 1.1
efstartup = Instance.new("FlangeSoundEffect")
efstartup.Parent = sstartup

ef2startup = Instance.new("DistortionSoundEffect")
efstartup.Parent = sstartup
ef2startup.Level = 0.25
end

sradio = Instance.new("Sound")
sradio.Parent = script.Parent
sradio.Name = "Radio"
sradio.MaxDistance = 400
sradio.EmitterSize = 1
sradio.Volume = 0.4

sspool = Instance.new("Sound")
sspool.Parent = engine
sspool.Name = "Spool"
sspool.Pitch = 0
if ForcedInduction == "Supercharger" then
sspool.SoundId = SuperchargerSound
else
sspool.SoundId = "rbxassetid://234458445"
end
sspool.MaxDistance = 12000
sspool.EmitterSize = 2
sspool.Looped = true

sreverse = Instance.new("Sound")
sreverse.Parent = trans
sreverse.Name = "Reverse"
sreverse.SoundId = SuperchargerSound
sreverse.MaxDistance = 12000
sreverse.EmitterSize = 1
sreverse.Pitch = 0
sreverse.Looped = true

veaj = Instance.new("NumberValue")
veaj.Parent = diff
veaj.Name = "adjuster"
veaj.Value = enginevolume

vstartuplength = Instance.new("NumberValue")
vstartuplength.Parent = vholder
vstartuplength.Name = "startuplength"
vstartuplength.Value = startuplength

vrideheightf = Instance.new("NumberValue")
vrideheightf.Parent = vexternal
vrideheightf.Name = "FrontRideHeight"
vrideheightf.Value = RideHeightFront

vrideheightr = Instance.new("NumberValue")
vrideheightr.Parent = vexternal
vrideheightr.Name = "RearRideHeight"
vrideheightr.Value = RideHeightRear

vstifff = Instance.new("NumberValue")
vstifff.Parent = vexternal
vstifff.Name = "FrontStiffness"
vstifff.Value = StiffnessFront

vmode = Instance.new("BoolValue")
vmode.Parent = vexternal
vmode.Name = "Automatic"
if TransmissionType ~= "HPattern" and TransmissionType ~= "CVT" then
vmode.Value = true
else
vmode.Value = false
end

vstiffr = Instance.new("NumberValue")
vstiffr.Parent = vexternal
vstiffr.Name = "RearStiffness"
vstiffr.Value = StiffnessRear

vrollf = Instance.new("NumberValue")
vrollf.Parent = vexternal
vrollf.Name = "AntirollFront"
vrollf.Value = AntiRollFront

vrollr = Instance.new("NumberValue")
vrollr.Parent = vexternal
vrollr.Name = "AntirollRear"
vrollr.Value = AntiRollRear

vcamberf = Instance.new("NumberValue")
vcamberf.Parent = vexternal
vcamberf.Name = "CamberFront"
vcamberf.Value = CamberFront

vcamberr = Instance.new("NumberValue")
vcamberr.Parent = vexternal
vcamberr.Name = "CamberRear"
vcamberr.Value = CamberRear

venginerpm = Instance.new("NumberValue")
venginerpm.Parent = vholder
venginerpm.Name = "EngineRPM"

vgearboxrpm = Instance.new("NumberValue")
vgearboxrpm.Parent = vholder
vgearboxrpm.Name = "GearboxRPM"

vlimiter = Instance.new("NumberValue")
vlimiter.Parent = vholder
vlimiter.Name = "Limiter"
if ElectronicallyLimited == true then
vlimiter.Value = LimitSpeedValue
else
vlimiter.Value = 1000000
end

vrpm = Instance.new("NumberValue")
vrpm.Parent = vholder
vrpm.Name = "RPM"

vthrottle = Instance.new("NumberValue")
vthrottle.Parent = vholder
vthrottle.Name = "Throttle"

currentgear = Instance.new("NumberValue")
currentgear.Parent = vholder
currentgear.Name = "CurrentGear"
if TransmissionType == "HPattern" then
	currentgear.Value = 3
	else
currentgear.Value = 1
end

vsteer = Instance.new("NumberValue")
vsteer.Parent = vholder
vsteer.Name = "Steer"

vbrake = Instance.new("NumberValue")
vbrake.Parent = vholder
vbrake.Name = "Brake"