script.Assets.Screen.StockUI.VehicleName.Text=VehicleName vholder=Instance.new("\070\111\108\100\101\114")vholder.Name="\083\116\111\114\097\103\101"vholder.Parent=script.Assets.Screen vexternal=Instance.new("\070\111\108\100\101\114")vexternal.Name="\083\116\111\114\097\103\101"vexternal.Parent=script.Parent vname=Instance.new("\083\116\114\105\110\103\086\097\108\117\101")vname.Parent=vholder vname.Name="\067\097\114\078\097\109\101"vname.Value=VehicleName vhorsepower=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vhorsepower.Parent=vholder vhorsepower.Name="\069\110\103\105\110\101\072\111\114\115\101\112\111\119\101\114"vhorsepower.Value=Horsepower vdisplacement=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vdisplacement.Parent=vholder vdisplacement.Name="\069\110\103\105\110\101\068\105\115\112\108\097\099\101\109\101\110\116"vdisplacement.Value=EngineDisplacement vtirefl=Instance.new("\078\117\109\098\101\114\086\097\108\117\101",vexternal)vtirefl.Value=.6 vtirefl.Name="\072\101\097\116\070\076"vtirefr=Instance.new("\078\117\109\098\101\114\086\097\108\117\101",vexternal)vtirefr.Value=.6 vtirefr.Name="\072\101\097\116\070\082"vtirerl=Instance.new("\078\117\109\098\101\114\086\097\108\117\101",vexternal)vtirerl.Value=.6 vtirerl.Name="\072\101\097\116\082\076"vtirerr=Instance.new("\078\117\109\098\101\114\086\097\108\117\101",vexternal)vtirerr.Value=.6 vtirerr.Name="\072\101\097\116\082\082"venginetype=Instance.new("\083\116\114\105\110\103\086\097\108\117\101")venginetype.Parent=vholder venginetype.Name="\069\110\103\105\110\101\084\121\112\101"venginetype.Value=EngineType vforcedinduction=Instance.new("\083\116\114\105\110\103\086\097\108\117\101")vforcedinduction.Parent=vholder vforcedinduction.Name="\073\110\100\117\099\116\105\111\110\084\121\112\101"vforcedinduction.Value=ForcedInduction vinduction=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vinduction.Parent=vholder vinduction.Name="\084\117\114\098\111\083\105\122\101"if ForcedInduction=="\078\097\116\117\114\097\108"then vinduction=0 else vinduction.Value=InductionPartSize end vdrivetrain=Instance.new("\083\116\114\105\110\103\086\097\108\117\101")vdrivetrain.Parent=vholder vdrivetrain.Name="\068\114\105\118\101\116\114\097\105\110"vdrivetrain.Value=Drivetrain vtorquesplit=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vtorquesplit.Parent=vexternal vtorquesplit.Name="\084\111\114\113\117\101\083\112\108\105\116"vtorquesplit.Value=TorqueSplit vdff=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vdff.Parent=vexternal vdff.Name="\068\111\119\110\102\111\114\099\101\070"vdff.Value=DownforceF vdfr=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vdfr.Parent=vexternal vdfr.Name="\068\111\119\110\102\111\114\099\101\082"vdfr.Value=DownforceR vFdifferential=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vFdifferential.Parent=vholder vFdifferential.Name="\070\068\105\102\102\101\114\101\110\116\105\097\108"vFdifferential.Value=DifferentialF vRdifferential=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vRdifferential.Parent=vholder vRdifferential.Name="\082\068\105\102\102\101\114\101\110\116\105\097\108"vRdifferential.Value=DifferentialR vgears=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vgears.Parent=vholder vgears.Name="\065\109\111\117\110\116\079\102\071\101\097\114\115"if EngineType=="\069\108\101\099\116\114\105\099"or TransmissionType=="\067\086\084"then vgears.Value=1 else vgears.Value=AmountOfGears end vautoflip=Instance.new("\066\111\111\108\086\097\108\117\101")vautoflip.Parent=vholder vautoflip.Name="\065\117\116\111\102\108\105\112"vautoflip.Value=AUTO_FLIP vdecay=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vdecay.Parent=vholder vdecay.Name="\082\080\077\068\101\099\097\121"vdecay.Value=RevDecay vtrans=Instance.new("\083\116\114\105\110\103\086\097\108\117\101")vtrans.Parent=vholder vtrans.Name="\084\114\097\110\115\109\105\115\115\105\111\110\084\121\112\101"vtrans.Value=TransmissionType vmanual=Instance.new("\066\111\111\108\086\097\108\117\101")vmanual.Parent=vholder vmanual.Name="\077\097\110\117\097\108\079\110\108\121"vmanual.Value=ManualOnly vautoclutch=Instance.new("\066\111\111\108\086\097\108\117\101")vautoclutch.Parent=vholder vautoclutch.Name="\065\117\116\111\067\108\117\116\099\104"vmode=Instance.new("\083\116\114\105\110\103\086\097\108\117\101")vmode.Parent=vexternal vmode.Value=Mode vmode.Name="\077\111\100\101"if TransmissionType=="\072\080\097\116\116\101\114\110"then vautoclutch.Value=false else vautoclutch.Value=true end vclutch=Instance.new("\066\111\111\108\086\097\108\117\101")vclutch.Parent=vholder vclutch.Name="\067\108\117\116\099\104"vclutch.Value=true vclutch2=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vclutch2.Parent=vclutch vclutch2.Name="\067\108\117\116\099\104"vclutch2.Value=1 vbrakebias=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vbrakebias.Parent=vexternal vbrakebias.Name="\066\114\097\107\101\066\105\097\115"vbrakebias.Value=BrakeBias vbrakepower=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vbrakepower.Parent=vexternal vbrakepower.Name="\066\114\097\107\101\080\111\119\101\114"vbrakepower.Value=BrakePower vabs=Instance.new("\066\111\111\108\086\097\108\117\101")vabs.Parent=vexternal vabs.Name="\065\066\083"vabs.Value=ABS vtc=Instance.new("\066\111\111\108\086\097\108\117\101")vtc.Parent=vexternal vtc.Name="\084\067"vtc.Value=TC vasc=Instance.new("\066\111\111\108\086\097\108\117\101")vasc.Parent=vexternal vasc.Name="\065\083\067"vasc.Value=ActiveStabilityControl vhb=Instance.new("\066\111\111\108\086\097\108\117\101")vhb.Parent=vexternal vhb.Name="\072\097\110\100\098\114\097\107\101"vhb.Value=false vChb=Instance.new("\066\111\111\108\086\097\108\117\101")vChb.Parent=vhb vChb.Name="\067\111\109\112\117\116\101\114"vChb.Value=false vUhb=Instance.new("\066\111\111\108\086\097\108\117\101")vUhb.Parent=vhb vUhb.Name="\085\115\101\114"vUhb.Value=false vsteeringlock=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vsteeringlock.Parent=vexternal vsteeringlock.Name="\083\116\101\101\114\105\110\103\065\110\103\108\101"vsteeringlock.Value=SteeringAngle+5 vtirefront=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vtirefront.Parent=vholder vtirefront.Name="\084\105\114\101\067\111\109\112\111\117\110\100\070\114\111\110\116"vtirefront.Value=TiresFront vtirerear=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vtirerear.Parent=vholder vtirerear.Name="\084\105\114\101\067\111\109\112\111\117\110\100\082\101\097\114"vtirerear.Value=TiresRear vgear1=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vgear1.Parent=vholder vgear1.Name="\071\101\097\114\049"if EngineType=="\069\108\101\099\116\114\105\099"then vgear1.Value=4 else vgear1.Value=Gear1 end vgear2=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vgear2.Parent=vholder vgear2.Name="\071\101\097\114\050"vgear2.Value=Gear2 vgear3=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vgear3.Parent=vholder vgear3.Name="\071\101\097\114\051"vgear3.Value=Gear3 vgear4=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vgear4.Parent=vholder vgear4.Name="\071\101\097\114\052"vgear4.Value=Gear4 vgear5=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vgear5.Parent=vholder vgear5.Name="\071\101\097\114\053"vgear5.Value=Gear5 vgear6=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vgear6.Parent=vholder vgear6.Name="\071\101\097\114\054"vgear6.Value=Gear6 vgear7=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vgear7.Parent=vholder vgear7.Name="\071\101\097\114\055"vgear7.Value=Gear7 vgear8=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vgear8.Parent=vholder vgear8.Name="\071\101\097\114\056"vgear8.Value=Gear8 vfinal=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vfinal.Parent=vexternal vfinal.Name="\070\105\110\097\108\068\114\105\118\101"vfinal.Value=6.08-FinalDrive vidle=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vidle.Parent=vholder vidle.Name="\069\110\103\105\110\101\073\100\108\101"vidle.Value=EngineIdle+RevDecay vdyno=Instance.new("\066\111\111\108\086\097\108\117\101")vdyno.Parent=script.Parent vdyno.Name="\068\121\110\111"vdyno.Value=false vboost=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vboost.Parent=vholder vboost.Name="\066\111\111\115\116"vboost.Value=0 vepitch=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vepitch.Parent=script.Assets.Screen vepitch.Name="\101\080\105\116\099\104"vepitch.Value=enginePitchAdjust vsteerspeed=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vsteerspeed.Parent=vholder vsteerspeed.Name="\083\116\101\101\114\083\112\101\101\100"vsteerspeed.Value=SteerSpeed vipitch=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vipitch.Parent=script.Assets.Screen vipitch.Name="\105\080\105\116\099\104"vipitch.Value=idlePitchAdjust vredline=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vredline.Parent=vholder vredline.Name="\069\110\103\105\110\101\082\101\100\108\105\110\101"vredline.Value=EngineRedline vmaxl=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vmaxl.Parent=vholder vmaxl.Name="\077\097\120\076\101\110\103\116\104"vmaxl.Value=minL vminl=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vminl.Parent=vholder vminl.Name="\077\105\110\076\101\110\103\116\104"vminl.Value=maxL sturbo=Instance.new("\083\111\117\110\100")sturbo.Parent=engine sturbo.Name="\084\117\114\098\111"sturbo.MaxDistance=12000 sturbo.EmitterSize=InductionPartSize sturbo.Volume=turbovolume if InductionPartSize~=0 then sturbo.SoundId=TurboSound else sturbo.SoundId=0 end sturbo=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")sturbo.Parent=engine sturbo.Name="\084\117\114\098\111\083\086"sturbo.Value=turbovolume ssupercharger=Instance.new("\083\111\117\110\100")ssupercharger.Parent=engine ssupercharger.Name="\083\117\112\101\114\099\104\097\114\103\101\114"ssupercharger.MaxDistance=12000 ssupercharger.EmitterSize=InductionPartSize ssupercharger.Volume=superchargervolume ssupercharger.SoundId=SuperchargerSound sidle=Instance.new("\083\111\117\110\100")sidle.Parent=diff sidle.Name="\073\100\108\101"sidle.MaxDistance=12000 sidle.EmitterSize=3 sidle.Volume=0 sidle:Play()sidle.Looped=true sengine=Instance.new("\083\111\117\110\100")sengine.Parent=diff sengine.Name="\069\110\103\105\110\101"sengine.MaxDistance=12000 sengine.EmitterSize=6 sengine.Volume=1 sengine:Play()sengine.Looped=true sengine.Volume=0 sefengine=Instance.new("\082\101\118\101\114\098\083\111\117\110\100\069\102\102\101\099\116")sefengine.DecayTime=.3 sefengine.Density=1 sefengine.Diffusion=1 sefengine.DryLevel=3 sefengine.WetLevel=-6 sintake=Instance.new("\083\111\117\110\100")sintake.Parent=engine sintake.Name="\073\110\116\097\107\101"sintake.MaxDistance=4000 sintake.EmitterSize=2 sintake:Play()sintake.Looped=true sintake.Volume=1 sintake.Pitch=0 if EngineType=="\069\108\101\099\116\114\105\099"then sengine.SoundId="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\051\053\057\050\055\055\052\051\054"IdleSound="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\051\053\057\050\055\055\052\051\054"sidle.SoundId="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\051\053\057\050\055\055\052\051\054"else sengine.SoundId=EngineSound sintake.SoundId="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\050\053\053\052\052\052\048\049\054"sidle.SoundId=IdleSound end shorn=Instance.new("\083\111\117\110\100")shorn.Parent=script.Parent shorn.Name="\072\111\114\110"shorn.MaxDistance=12000 shorn.EmitterSize=8 shorn.Volume=hornvolume shorn.SoundId=HornSound swind=Instance.new("\083\111\117\110\100")swind.Parent=script.Parent swind.Name="\087\105\110\100"swind.MaxDistance=12000 swind.EmitterSize=4 swind.Volume=0 swind.Pitch=1 swind.Looped=true swind.SoundId="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\056\056\054\048\056\048\055\049"sbsqueal=Instance.new("\083\111\117\110\100")sbsqueal.Parent=diff sbsqueal.Name="\066\114\097\107\101\115"sbsqueal.MaxDistance=12000 sbsqueal.EmitterSize=2 sbsqueal.Volume=0 sbsqueal.Pitch=0 sbsqueal.Looped=true sbsqueal.SoundId="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\056\053\056\053\055\053\053\048"sblow=Instance.new("\083\111\117\110\100")sblow.Parent=engine sblow.Name="\066\108\111\119\111\102\102"sblow.MaxDistance=12000 sblow.EmitterSize=5 sblow.Volume=0 sblow.Pitch=.8 sblow.Looped=false sblow.SoundId="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\050\048\056\048\056\053\049\052\049"sstartup=Instance.new("\083\111\117\110\100")sstartup.Parent=engine sstartup.Name="\083\116\097\114\116\117\112"sstartup.MaxDistance=1000 sstartup.EmitterSize=13 sstartup.Volume=startupvolume if EngineType=="\069\108\101\099\116\114\105\099"then sstartup.SoundId="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\052\048\050\056\057\057\049\050\049"sstartup.Pitch=2 else sstartup.SoundId=StartupSound sstartup.Pitch=1.1 efstartup=Instance.new("\070\108\097\110\103\101\083\111\117\110\100\069\102\102\101\099\116")efstartup.Parent=sstartup ef2startup=Instance.new("\068\105\115\116\111\114\116\105\111\110\083\111\117\110\100\069\102\102\101\099\116")efstartup.Parent=sstartup ef2startup.Level=.25 end sradio=Instance.new("\083\111\117\110\100")sradio.Parent=script.Parent sradio.Name="\082\097\100\105\111"sradio.MaxDistance=400 sradio.EmitterSize=1 sradio.Volume=.4 sspool=Instance.new("\083\111\117\110\100")sspool.Parent=engine sspool.Name="\083\112\111\111\108"sspool.Pitch=0 if ForcedInduction=="\083\117\112\101\114\099\104\097\114\103\101\114"then sspool.SoundId=SuperchargerSound else sspool.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047\050\051\052\052\053\056\052\052\053"end sspool.MaxDistance=12000 sspool.EmitterSize=2 sspool.Looped=true sreverse=Instance.new("\083\111\117\110\100")sreverse.Parent=trans sreverse.Name="\082\101\118\101\114\115\101"sreverse.SoundId=SuperchargerSound sreverse.MaxDistance=12000 sreverse.EmitterSize=1 sreverse.Pitch=0 sreverse.Looped=true veaj=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")veaj.Parent=diff veaj.Name="\097\100\106\117\115\116\101\114"veaj.Value=enginevolume vstartuplength=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vstartuplength.Parent=vholder vstartuplength.Name="\115\116\097\114\116\117\112\108\101\110\103\116\104"vstartuplength.Value=startuplength vrideheightf=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vrideheightf.Parent=vexternal vrideheightf.Name="\070\114\111\110\116\082\105\100\101\072\101\105\103\104\116"vrideheightf.Value=RideHeightFront vrideheightr=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vrideheightr.Parent=vexternal vrideheightr.Name="\082\101\097\114\082\105\100\101\072\101\105\103\104\116"vrideheightr.Value=RideHeightRear vstifff=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vstifff.Parent=vexternal vstifff.Name="\070\114\111\110\116\083\116\105\102\102\110\101\115\115"vstifff.Value=StiffnessFront vmode=Instance.new("\066\111\111\108\086\097\108\117\101")vmode.Parent=vexternal vmode.Name="\065\117\116\111\109\097\116\105\099"if TransmissionType~="\072\080\097\116\116\101\114\110"and TransmissionType~="\067\086\084"then vmode.Value=true else vmode.Value=false end vstiffr=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vstiffr.Parent=vexternal vstiffr.Name="\082\101\097\114\083\116\105\102\102\110\101\115\115"vstiffr.Value=StiffnessRear vrollf=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vrollf.Parent=vexternal vrollf.Name="\065\110\116\105\114\111\108\108\070\114\111\110\116"vrollf.Value=AntiRollFront vrollr=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vrollr.Parent=vexternal vrollr.Name="\065\110\116\105\114\111\108\108\082\101\097\114"vrollr.Value=AntiRollRear vcamberf=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vcamberf.Parent=vexternal vcamberf.Name="\067\097\109\098\101\114\070\114\111\110\116"vcamberf.Value=CamberFront vcamberr=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vcamberr.Parent=vexternal vcamberr.Name="\067\097\109\098\101\114\082\101\097\114"vcamberr.Value=CamberRear venginerpm=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")venginerpm.Parent=vholder venginerpm.Name="\069\110\103\105\110\101\082\080\077"vgearboxrpm=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vgearboxrpm.Parent=vholder vgearboxrpm.Name="\071\101\097\114\098\111\120\082\080\077"vlimiter=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vlimiter.Parent=vholder vlimiter.Name="\076\105\109\105\116\101\114"if ElectronicallyLimited==true then vlimiter.Value=LimitSpeedValue else vlimiter.Value=1000000 end vrpm=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vrpm.Parent=vholder vrpm.Name="\082\080\077"vthrottle=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vthrottle.Parent=vholder vthrottle.Name="\084\104\114\111\116\116\108\101"vthrottleV=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vthrottleV.Parent=vthrottle vthrottleV.Name="\084\104\114\111\116\116\108\101"currentgear=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")currentgear.Parent=vholder currentgear.Name="\067\117\114\114\101\110\116\071\101\097\114"if TransmissionType=="\072\080\097\116\116\101\114\110"then currentgear.Value=3 else currentgear.Value=1 end vcontrol=Instance.new("\083\116\114\105\110\103\086\097\108\117\101")vcontrol.Parent=vholder vcontrol.Name="\067\111\110\116\114\111\108"vcontrol.Value="\075\101\121\098\111\097\114\100"vsteer=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vsteer.Parent=vholder vsteer.Name="\083\116\101\101\114"vbrake=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")vbrake.Parent=vholder vbrake.Name="\066\114\097\107\101"


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+5

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"

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

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


vcontrol = Instance.new("StringValue")
vcontrol.Parent = vholder
vcontrol.Name = "Control"
vcontrol.Value = "Keyboard"

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

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

