local b={}local r=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local y=script.Parent.Parent:WaitForChild("\068\114\105\118\101\083\101\097\116")local X=y.Parent local l=script.Parent local n=script.Parent.OnLeave local T=X.Body.Lights local N=X.Misc local q=N:FindFirstChild("\080\111\112\117\112\115")local u=N:FindFirstChild("\084\075")local a=false local J={}local A local g local B local i for b,r in pairs(N:GetDescendants())do if r.Name=="\070\076"or r.Name=="\070\082"or r.Name=="\082\076"or r.Name=="\082\082"then table.insert(J,r)end end local s local O local D b.Setup=function(b,r,y,X,n,N,J,A,g,H,t,V,E,Y,m,F,G)if not a then O=TweenInfo.new(E,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,0,false,0)D=TweenInfo.new(Y/2.5,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,0,false,0)l.IndicatorsAfterLeave.Disabled=true B=m i=G if H and u~=nil then for b,r in pairs(u.Brake:GetChildren())do if r.Name=="\076"and(r.Parent.Name=="\066\114\097\107\101"and#r:GetChildren()<1)then local b=Instance.new("\083\112\111\116\076\105\103\104\116",r)b.Name="\076"b.Brightness=0 b.Range=38 b.Face=Enum.NormalId.Front b.Color=Color3.fromRGB(255,0,0)b.Shadows=true b.Angle=180 elseif r.Name=="\076\078"then if r:IsA("\077\101\115\104\080\097\114\116")then r.TextureID=""end r.Material=Enum.Material.Neon r.Color=Color3.fromRGB(248,87,73)r.Transparency=1 end end for b,r in pairs(u.Rear:GetChildren())do if r.Name=="\076"and(r.Parent.Name=="\082\101\097\114"and#r:GetChildren()<1)then local b=Instance.new("\083\112\111\116\076\105\103\104\116",r)b.Name="\076"b.Brightness=0 b.Range=25 b.Face=Enum.NormalId.Front b.Color=Color3.fromRGB(255,0,0)b.Shadows=true b.Angle=180 elseif r.Name=="\076\078"then if r:IsA("\077\101\115\104\080\097\114\116")then r.TextureID=""end r.Material=Enum.Material.Neon r.Color=Color3.fromRGB(248,87,73)r.Transparency=1 end end for b,r in pairs(u.Reverse:GetChildren())do if r.Name=="\076"and(r.Parent.Name=="\082\101\118\101\114\115\101"and#r:GetChildren()<1)then local b=Instance.new("\083\112\111\116\076\105\103\104\116",r)b.Name="\076"b.Brightness=0 b.Range=20 b.Face=Enum.NormalId.Front b.Color=Color3.fromRGB(255,255,255)b.Shadows=true b.Angle=180 elseif r.Name=="\076\078"then if r:IsA("\077\101\115\104\080\097\114\116")then r.TextureID=""end r.Material=Enum.Material.Neon r.Color=Color3.fromRGB(255,255,255)r.Transparency=1 end end end for b,r in pairs(T.Brake:GetChildren())do if r.Name=="\076"and(r.Parent.Name=="\066\114\097\107\101"and#r:GetChildren()<1)then local b=Instance.new("\083\112\111\116\076\105\103\104\116",r)b.Name="\076"b.Brightness=0 b.Range=38 b.Face=Enum.NormalId.Front b.Color=Color3.fromRGB(255,0,0)b.Shadows=true b.Angle=180 elseif r.Name=="\076\078"then if r:IsA("\077\101\115\104\080\097\114\116")then r.TextureID=""end r.Material=Enum.Material.Neon r.Color=Color3.fromRGB(248,87,73)r.Transparency=1 end end for b,r in pairs(T.Rear:GetChildren())do if r.Name=="\076"and(r.Parent.Name=="\082\101\097\114"and#r:GetChildren()<1)then local b=Instance.new("\083\112\111\116\076\105\103\104\116",r)b.Name="\076"b.Brightness=0 b.Range=25 b.Face=Enum.NormalId.Front b.Color=Color3.fromRGB(255,0,0)b.Shadows=true b.Angle=180 elseif r.Name=="\076\078"then if r:IsA("\077\101\115\104\080\097\114\116")then r.TextureID=""end r.Material=Enum.Material.Neon r.Color=Color3.fromRGB(248,87,73)r.Transparency=1 end end for b,r in pairs(T.Reverse:GetChildren())do if r.Name=="\076"and(r.Parent.Name=="\082\101\118\101\114\115\101"and#r:GetChildren()<1)then local b=Instance.new("\083\112\111\116\076\105\103\104\116",r)b.Name="\076"b.Brightness=0 b.Range=20 b.Face=Enum.NormalId.Front b.Color=Color3.fromRGB(255,255,255)b.Shadows=true b.Angle=180 elseif r.Name=="\076\078"then if r:IsA("\077\101\115\104\080\097\114\116")then r.TextureID=""end r.Material=Enum.Material.Neon r.Color=Color3.fromRGB(255,255,255)r.Transparency=1 end end for b,r in pairs(T.LeftInd:GetDescendants())do if r.Name=="\076"and(r.Parent.Parent.Name=="\076\101\102\116\073\110\100"and#r:GetChildren()<1)then local b=Instance.new("\083\117\114\102\097\099\101\076\105\103\104\116",r)b.Name="\076"b.Brightness=0 b.Range=16 b.Face=Enum.NormalId.Front b.Angle=180 if r.Parent.Name=="\070\114\111\110\116"or r.Parent.Name=="\083\105\100\101"then if X=="\076\105\103\104\116 \079\114\097\110\103\101"then b.Color=Color3.fromRGB(255,130,80)elseif X=="\089\101\108\108\111\119"then b.Color=Color3.fromRGB(181,154,45)elseif X=="\082\101\100"then b.Color=Color3.fromRGB(241,57,60)elseif X=="\068\097\114\107 \079\114\097\110\103\101"then b.Color=Color3.fromRGB(198,107,54)else b.Color=X end elseif r.Parent.Name=="\082\101\097\114"then if n=="\076\105\103\104\116 \079\114\097\110\103\101"then b.Color=Color3.fromRGB(255,130,80)elseif n=="\089\101\108\108\111\119"then b.Color=Color3.fromRGB(181,154,45)elseif n=="\082\101\100"then b.Color=Color3.fromRGB(241,57,60)elseif n=="\068\097\114\107 \079\114\097\110\103\101"then b.Color=Color3.fromRGB(198,107,54)else b.Color=n end end elseif r.Name=="\076\078"then if r:IsA("\077\101\115\104\080\097\114\116")then r.TextureID=""end r.Material=Enum.Material.Neon if r.Parent.Name=="\070\114\111\110\116"or r.Parent.Name=="\083\105\100\101"then if X=="\076\105\103\104\116 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(255,130,80)elseif X=="\089\101\108\108\111\119"then r.Color=Color3.fromRGB(181,154,45)elseif X=="\082\101\100"then r.Color=Color3.fromRGB(241,57,60)elseif X=="\068\097\114\107 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(198,107,54)else r.Color=X end elseif r.Parent.Name=="\082\101\097\114"then if n=="\076\105\103\104\116 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(255,130,80)elseif n=="\089\101\108\108\111\119"then r.Color=Color3.fromRGB(181,154,45)elseif n=="\082\101\100"then r.Color=Color3.fromRGB(241,57,60)elseif n=="\068\097\114\107 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(198,107,54)else r.Color=n end end r.Transparency=1 elseif string.sub(r.Name,1,2)=="\083\073"then if r:IsA("\077\101\115\104\080\097\114\116")then r.TextureID=""end r.Material=Enum.Material.Neon if r.Parent.Name=="\070\114\111\110\116"or r.Parent.Name=="\083\105\100\101"then if X=="\076\105\103\104\116 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(255,130,80)elseif X=="\089\101\108\108\111\119"then r.Color=Color3.fromRGB(181,154,45)elseif X=="\082\101\100"then r.Color=Color3.fromRGB(241,57,60)elseif X=="\068\097\114\107 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(198,107,54)else r.Color=X end elseif r.Parent.Name=="\082\101\097\114"then if n=="\076\105\103\104\116 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(255,130,80)elseif n=="\089\101\108\108\111\119"then r.Color=Color3.fromRGB(181,154,45)elseif n=="\082\101\100"then r.Color=Color3.fromRGB(241,57,60)elseif n=="\068\097\114\107 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(198,107,54)else r.Color=n end end r.Transparency=1 end end for b,r in pairs(T.RightInd:GetDescendants())do if r.Name=="\076"and(r.Parent.Parent.Name=="\082\105\103\104\116\073\110\100"and#r:GetChildren()<1)then local b=Instance.new("\083\117\114\102\097\099\101\076\105\103\104\116",r)b.Name="\076"b.Brightness=0 b.Range=16 b.Face=Enum.NormalId.Front b.Angle=180 if r.Parent.Name=="\070\114\111\110\116"or r.Parent.Name=="\083\105\100\101"then if X=="\076\105\103\104\116 \079\114\097\110\103\101"then b.Color=Color3.fromRGB(255,130,80)elseif X=="\089\101\108\108\111\119"then b.Color=Color3.fromRGB(181,154,45)elseif X=="\082\101\100"then b.Color=Color3.fromRGB(241,57,60)elseif X=="\068\097\114\107 \079\114\097\110\103\101"then b.Color=Color3.fromRGB(198,107,54)else b.Color=X end elseif r.Parent.Name=="\082\101\097\114"then if n=="\076\105\103\104\116 \079\114\097\110\103\101"then b.Color=Color3.fromRGB(255,130,80)elseif n=="\089\101\108\108\111\119"then b.Color=Color3.fromRGB(181,154,45)elseif n=="\082\101\100"then b.Color=Color3.fromRGB(241,57,60)elseif n=="\068\097\114\107 \079\114\097\110\103\101"then b.Color=Color3.fromRGB(198,107,54)else b.Color=n end end elseif r.Name=="\076\078"then if r:IsA("\077\101\115\104\080\097\114\116")then r.TextureID=""end r.Material=Enum.Material.Neon if r.Parent.Name=="\070\114\111\110\116"or r.Parent.Name=="\083\105\100\101"then if X=="\076\105\103\104\116 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(255,130,80)elseif X=="\089\101\108\108\111\119"then r.Color=Color3.fromRGB(181,154,45)elseif X=="\082\101\100"then r.Color=Color3.fromRGB(241,57,60)elseif X=="\068\097\114\107 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(198,107,54)else r.Color=X end elseif r.Parent.Name=="\082\101\097\114"then if n=="\076\105\103\104\116 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(255,130,80)elseif n=="\089\101\108\108\111\119"then r.Color=Color3.fromRGB(181,154,45)elseif n=="\082\101\100"then r.Color=Color3.fromRGB(241,57,60)elseif n=="\068\097\114\107 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(198,107,54)else r.Color=n end end r.Transparency=1 elseif string.sub(r.Name,1,2)=="\083\073"then if r:IsA("\077\101\115\104\080\097\114\116")then r.TextureID=""end r.Material=Enum.Material.Neon if r.Parent.Name=="\070\114\111\110\116"or r.Parent.Name=="\083\105\100\101"then if X=="\076\105\103\104\116 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(255,130,80)elseif X=="\089\101\108\108\111\119"then r.Color=Color3.fromRGB(181,154,45)elseif X=="\082\101\100"then r.Color=Color3.fromRGB(241,57,60)elseif X=="\068\097\114\107 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(198,107,54)else r.Color=X end elseif r.Parent.Name=="\082\101\097\114"then if n=="\076\105\103\104\116 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(255,130,80)elseif n=="\089\101\108\108\111\119"then r.Color=Color3.fromRGB(181,154,45)elseif n=="\082\101\100"then r.Color=Color3.fromRGB(241,57,60)elseif n=="\068\097\114\107 \079\114\097\110\103\101"then r.Color=Color3.fromRGB(198,107,54)else r.Color=n end end r.Transparency=1 end end if A then for r,y in pairs(T.Plate:GetDescendants())do if y.Name=="\076"and(y.Parent.Name=="\080\108\097\116\101"and#y:GetChildren()<1)then local r=Instance.new("\083\117\114\102\097\099\101\076\105\103\104\116",y)r.Name="\076"r.Angle=135 r.Brightness=0 r.Range=1 r.Face=Enum.NormalId.Bottom r.Shadows=true if b=="\080\117\114\101 \087\104\105\116\101"then r.Color=Color3.fromRGB(255,255,255)elseif b=="\079\069\077 \087\104\105\116\101"then r.Color=Color3.fromRGB(255,237,199)elseif b=="\088\101\110\111\110"then r.Color=Color3.fromRGB(205,227,255)elseif b=="\066\114\105\108\108\105\097\110\116 \066\108\117\101"then r.Color=Color3.fromRGB(74,137,255)elseif b=="\076\105\103\104\116 \071\114\101\101\110"then r.Color=Color3.fromRGB(175,196,196)elseif b=="\071\111\108\100\101\110 \089\101\108\108\111\119"then r.Color=Color3.fromRGB(255,239,193)elseif b=="\066\117\098\117\'\115 \080\117\114\112\108\101"then r.Color=Color3.fromRGB(197,197,255)elseif b=="\089\101\108\108\111\119"then r.Color=Color3.fromRGB(181,178,87)else r.Color=b end r.Shadows=true elseif y.Name=="\076\078"then if y:IsA("\077\101\115\104\080\097\114\116")then y.TextureID=""end y.Material=Enum.Material.Neon if b=="\080\117\114\101 \087\104\105\116\101"then y.Color=Color3.fromRGB(255,255,255)elseif b=="\079\069\077 \087\104\105\116\101"then y.Color=Color3.fromRGB(255,180,161)elseif b=="\088\101\110\111\110"then y.Color=Color3.fromRGB(226,231,255)elseif b=="\066\114\105\108\108\105\097\110\116 \066\108\117\101"then y.Color=Color3.fromRGB(97,126,255)elseif b=="\076\105\103\104\116 \071\114\101\101\110"then y.Color=Color3.fromRGB(165,195,196)elseif b=="\071\111\108\100\101\110 \089\101\108\108\111\119"then y.Color=Color3.fromRGB(255,169,140)elseif b=="\066\117\098\117\'\115 \080\117\114\112\108\101"then y.Color=Color3.fromRGB(150,146,255)elseif b=="\089\101\108\108\111\119"then y.Color=Color3.fromRGB(181,178,87)else y.Color=b end y.Transparency=1 end end end if V=="\076\111\119 \066\101\097\109 \047 \073\110\100\105\099\097\116\111\114\115"then s=1 elseif V=="\076\111\119 \066\101\097\109"then s=2 elseif V=="\067\117\115\116\111\109 \068\082\076"then s=3 for b,r in pairs(T.Headlights.Running:GetDescendants())do if r.Name=="\076\078"then if r:IsA("\077\101\115\104\080\097\114\116")then r.TextureID=""end r.Material=Enum.Material.Neon if y=="\080\117\114\101 \087\104\105\116\101"then r.Color=Color3.fromRGB(255,255,255)elseif y=="\079\069\077 \087\104\105\116\101"then r.Color=Color3.fromRGB(255,180,161)elseif y=="\088\101\110\111\110"then r.Color=Color3.fromRGB(226,231,255)elseif y=="\066\114\105\108\108\105\097\110\116 \066\108\117\101"then r.Color=Color3.fromRGB(97,126,255)elseif y=="\076\105\103\104\116 \071\114\101\101\110"then r.Color=Color3.fromRGB(165,195,196)elseif y=="\071\111\108\100\101\110 \089\101\108\108\111\119"then r.Color=Color3.fromRGB(255,169,140)elseif y=="\066\117\098\117\'\115 \080\117\114\112\108\101"then r.Color=Color3.fromRGB(150,146,255)elseif y=="\089\101\108\108\111\119"then r.Color=Color3.fromRGB(181,178,87)else r.Color=y end r.Transparency=1 end end end for r,y in pairs(T.Headlights.Low:GetChildren())do if y.Name=="\076"and(y.Parent.Name=="\076\111\119"and#y:GetChildren()<1)then local r=Instance.new("\083\112\111\116\076\105\103\104\116",y)r.Angle=180 r.Name="\076"r.Brightness=0 r.Range=0 r.Face=Enum.NormalId.Front if b=="\080\117\114\101 \087\104\105\116\101"then r.Color=Color3.fromRGB(255,255,255)elseif b=="\079\069\077 \087\104\105\116\101"then r.Color=Color3.fromRGB(255,237,199)elseif b=="\088\101\110\111\110"then r.Color=Color3.fromRGB(205,227,255)elseif b=="\066\114\105\108\108\105\097\110\116 \066\108\117\101"then r.Color=Color3.fromRGB(74,137,255)elseif b=="\076\105\103\104\116 \071\114\101\101\110"then r.Color=Color3.fromRGB(175,196,196)elseif b=="\071\111\108\100\101\110 \089\101\108\108\111\119"then r.Color=Color3.fromRGB(255,239,193)elseif b=="\066\117\098\117\'\115 \080\117\114\112\108\101"then r.Color=Color3.fromRGB(197,197,255)elseif b=="\089\101\108\108\111\119"then r.Color=Color3.fromRGB(181,178,87)else r.Color=b end r.Shadows=true elseif y.Name=="\076\078"then if y:IsA("\077\101\115\104\080\097\114\116")then y.TextureID=""end y.Material=Enum.Material.Neon if b=="\080\117\114\101 \087\104\105\116\101"then y.Color=Color3.fromRGB(255,255,255)elseif b=="\079\069\077 \087\104\105\116\101"then y.Color=Color3.fromRGB(255,180,161)elseif b=="\088\101\110\111\110"then y.Color=Color3.fromRGB(226,231,255)elseif b=="\066\114\105\108\108\105\097\110\116 \066\108\117\101"then y.Color=Color3.fromRGB(97,126,255)elseif b=="\076\105\103\104\116 \071\114\101\101\110"then y.Color=Color3.fromRGB(165,195,196)elseif b=="\071\111\108\100\101\110 \089\101\108\108\111\119"then y.Color=Color3.fromRGB(255,169,140)elseif b=="\066\117\098\117\'\115 \080\117\114\112\108\101"then y.Color=Color3.fromRGB(150,146,255)elseif b=="\089\101\108\108\111\119"then y.Color=Color3.fromRGB(181,178,87)else y.Color=b end y.Transparency=1 end end for b,y in pairs(T.Headlights.High:GetChildren())do if y.Name=="\076"and(y.Parent.Name=="\072\105\103\104"and#y:GetChildren()<1)then local b=Instance.new("\083\112\111\116\076\105\103\104\116",y)b.Name="\076"b.Angle=180 b.Brightness=0 b.Range=0 b.Face=Enum.NormalId.Front if r=="\080\117\114\101 \087\104\105\116\101"then b.Color=Color3.fromRGB(255,255,255)elseif r=="\079\069\077 \087\104\105\116\101"then b.Color=Color3.fromRGB(255,237,199)elseif r=="\088\101\110\111\110"then b.Color=Color3.fromRGB(205,227,255)elseif r=="\066\114\105\108\108\105\097\110\116 \066\108\117\101"then b.Color=Color3.fromRGB(74,137,255)elseif r=="\076\105\103\104\116 \071\114\101\101\110"then b.Color=Color3.fromRGB(175,196,196)elseif r=="\071\111\108\100\101\110 \089\101\108\108\111\119"then b.Color=Color3.fromRGB(255,239,193)elseif r=="\066\117\098\117\'\115 \080\117\114\112\108\101"then b.Color=Color3.fromRGB(197,197,255)elseif r=="\089\101\108\108\111\119"then b.Color=Color3.fromRGB(181,178,87)else b.Color=r end b.Shadows=true elseif y.Name=="\076\078"then if y:IsA("\077\101\115\104\080\097\114\116")then y.TextureID=""end y.Material=Enum.Material.Neon if r=="\080\117\114\101 \087\104\105\116\101"then y.Color=Color3.fromRGB(255,255,255)elseif r=="\079\069\077 \087\104\105\116\101"then y.Color=Color3.fromRGB(255,180,161)elseif r=="\088\101\110\111\110"then y.Color=Color3.fromRGB(226,231,255)elseif r=="\066\114\105\108\108\105\097\110\116 \066\108\117\101"then y.Color=Color3.fromRGB(97,126,255)elseif r=="\076\105\103\104\116 \071\114\101\101\110"then y.Color=Color3.fromRGB(165,195,196)elseif r=="\071\111\108\100\101\110 \089\101\108\108\111\119"then y.Color=Color3.fromRGB(255,169,140)elseif r=="\066\117\098\117\'\115 \080\117\114\112\108\101"then y.Color=Color3.fromRGB(150,146,255)elseif r=="\089\101\108\108\111\119"then y.Color=Color3.fromRGB(181,178,87)else y.Color=r end y.Transparency=1 end end if J and q~=nil then for r,y in pairs(q.Parts.Headlights:GetChildren())do if y.Name=="\076"and#y:GetChildren()<1 then local r=Instance.new("\083\112\111\116\076\105\103\104\116",y)r.Name="\076"r.Angle=180 r.Brightness=0 r.Range=0 r.Face=Enum.NormalId.Front if b=="\080\117\114\101 \087\104\105\116\101"then r.Color=Color3.fromRGB(255,255,255)elseif b=="\079\069\077 \087\104\105\116\101"then r.Color=Color3.fromRGB(255,237,199)elseif b=="\088\101\110\111\110"then r.Color=Color3.fromRGB(205,227,255)elseif b=="\066\114\105\108\108\105\097\110\116 \066\108\117\101"then r.Color=Color3.fromRGB(74,137,255)elseif b=="\076\105\103\104\116 \071\114\101\101\110"then r.Color=Color3.fromRGB(175,196,196)elseif b=="\071\111\108\100\101\110 \089\101\108\108\111\119"then r.Color=Color3.fromRGB(255,239,193)elseif b=="\066\117\098\117\'\115 \080\117\114\112\108\101"then r.Color=Color3.fromRGB(197,197,255)elseif b=="\089\101\108\108\111\119"then r.Color=Color3.fromRGB(181,178,87)else r.Color=b end r.Shadows=true elseif y.Name=="\076\078"then if y:IsA("\077\101\115\104\080\097\114\116")then y.TextureID=""end y.Material=Enum.Material.Neon if b=="\080\117\114\101 \087\104\105\116\101"then y.Color=Color3.fromRGB(255,255,255)elseif b=="\079\069\077 \087\104\105\116\101"then y.Color=Color3.fromRGB(255,180,161)elseif b=="\088\101\110\111\110"then y.Color=Color3.fromRGB(226,231,255)elseif b=="\066\114\105\108\108\105\097\110\116 \066\108\117\101"then y.Color=Color3.fromRGB(97,126,255)elseif b=="\076\105\103\104\116 \071\114\101\101\110"then y.Color=Color3.fromRGB(165,195,196)elseif b=="\071\111\108\100\101\110 \089\101\108\108\111\119"then y.Color=Color3.fromRGB(255,169,140)elseif b=="\066\117\098\117\'\115 \080\117\114\112\108\101"then y.Color=Color3.fromRGB(150,146,255)elseif b=="\089\101\108\108\111\119"then y.Color=Color3.fromRGB(181,178,87)else y.Color=b end y.Transparency=1 end end end for b,r in pairs(T.Fog:GetChildren())do if r.Name=="\076"and(r.Parent.Name=="\070\111\103"and#r:GetChildren()<1)then local b=Instance.new("\083\112\111\116\076\105\103\104\116",r)b.Name="\076"b.Angle=180 b.Brightness=0 b.Range=48 b.Face=Enum.NormalId.Front if N=="\080\117\114\101 \087\104\105\116\101"then b.Color=Color3.fromRGB(255,255,255)elseif N=="\079\069\077 \087\104\105\116\101"then b.Color=Color3.fromRGB(255,237,199)elseif N=="\088\101\110\111\110"then b.Color=Color3.fromRGB(205,227,255)elseif N=="\066\114\105\108\108\105\097\110\116 \066\108\117\101"then b.Color=Color3.fromRGB(74,137,255)elseif N=="\076\105\103\104\116 \071\114\101\101\110"then b.Color=Color3.fromRGB(175,196,196)elseif N=="\071\111\108\100\101\110 \089\101\108\108\111\119"then b.Color=Color3.fromRGB(255,239,193)elseif N=="\066\117\098\117\'\115 \080\117\114\112\108\101"then b.Color=Color3.fromRGB(197,197,255)elseif N=="\089\101\108\108\111\119"then b.Color=Color3.fromRGB(181,178,87)else b.Color=N end b.Shadows=true elseif r.Name=="\076\078"then if r:IsA("\077\101\115\104\080\097\114\116")then r.TextureID=""end r.Material=Enum.Material.Neon if N=="\080\117\114\101 \087\104\105\116\101"then r.Color=Color3.fromRGB(255,255,255)elseif N=="\079\069\077 \087\104\105\116\101"then r.Color=Color3.fromRGB(255,180,161)elseif N=="\088\101\110\111\110"then r.Color=Color3.fromRGB(226,231,255)elseif N=="\066\114\105\108\108\105\097\110\116 \066\108\117\101"then r.Color=Color3.fromRGB(97,126,255)elseif N=="\076\105\103\104\116 \071\114\101\101\110"then r.Color=Color3.fromRGB(165,195,196)elseif N=="\071\111\108\100\101\110 \089\101\108\108\111\119"then r.Color=Color3.fromRGB(255,169,140)elseif N=="\066\117\098\117\'\115 \080\117\114\112\108\101"then r.Color=Color3.fromRGB(150,146,255)elseif N=="\089\101\108\108\111\119"then r.Color=Color3.fromRGB(181,178,87)else r.Color=N end r.Transparency=1 end end if m then for b,y in pairs(T.Interior:GetChildren())do if y.Name=="\070\114\111\110\116\076"then local b=Instance.new("\083\112\111\116\076\105\103\104\116",y)b.Name="\076"print(b.Parent.Name)b.Angle=135 b.Brightness=0 b.Range=0 b.Face=Enum.NormalId.Bottom if F=="\080\117\114\101 \087\104\105\116\101"then b.Color=Color3.fromRGB(255,255,255)elseif F=="\079\069\077 \087\104\105\116\101"then b.Color=Color3.fromRGB(255,237,199)elseif F=="\088\101\110\111\110"then b.Color=Color3.fromRGB(205,227,255)elseif F=="\066\114\105\108\108\105\097\110\116 \066\108\117\101"then b.Color=Color3.fromRGB(74,137,255)elseif F=="\076\105\103\104\116 \071\114\101\101\110"then b.Color=Color3.fromRGB(175,196,196)elseif F=="\071\111\108\100\101\110 \089\101\108\108\111\119"then b.Color=Color3.fromRGB(255,239,193)elseif F=="\066\117\098\117\'\115 \080\117\114\112\108\101"then b.Color=Color3.fromRGB(197,197,255)elseif F=="\089\101\108\108\111\119"then b.Color=Color3.fromRGB(181,178,87)else b.Color=F end b.Shadows=true elseif y.Name=="\067\101\110\116\101\114\076"then local b=Instance.new("\080\111\105\110\116\076\105\103\104\116",y)b.Name="\076"b.Brightness=0 b.Range=0 if F=="\080\117\114\101 \087\104\105\116\101"then b.Color=Color3.fromRGB(255,255,255)elseif F=="\079\069\077 \087\104\105\116\101"then b.Color=Color3.fromRGB(255,237,199)elseif F=="\088\101\110\111\110"then b.Color=Color3.fromRGB(205,227,255)elseif F=="\066\114\105\108\108\105\097\110\116 \066\108\117\101"then b.Color=Color3.fromRGB(74,137,255)elseif F=="\076\105\103\104\116 \071\114\101\101\110"then b.Color=Color3.fromRGB(175,196,196)elseif F=="\071\111\108\100\101\110 \089\101\108\108\111\119"then b.Color=Color3.fromRGB(255,239,193)elseif F=="\066\117\098\117\'\115 \080\117\114\112\108\101"then b.Color=Color3.fromRGB(197,197,255)elseif F=="\089\101\108\108\111\119"then b.Color=Color3.fromRGB(181,178,87)else b.Color=F end b.Shadows=true elseif y.Name=="\067\076\078"or y.Name=="\070\076\078"then if y:IsA("\077\101\115\104\080\097\114\116")then y.TextureID=""end y.Material=Enum.Material.Neon if r=="\080\117\114\101 \087\104\105\116\101"then y.Color=Color3.fromRGB(255,255,255)elseif r=="\079\069\077 \087\104\105\116\101"then y.Color=Color3.fromRGB(255,180,161)elseif r=="\088\101\110\111\110"then y.Color=Color3.fromRGB(226,231,255)elseif r=="\066\114\105\108\108\105\097\110\116 \066\108\117\101"then y.Color=Color3.fromRGB(97,126,255)elseif r=="\076\105\103\104\116 \071\114\101\101\110"then y.Color=Color3.fromRGB(165,195,196)elseif r=="\071\111\108\100\101\110 \089\101\108\108\111\119"then y.Color=Color3.fromRGB(255,169,140)elseif r=="\066\117\098\117\'\115 \080\117\114\112\108\101"then y.Color=Color3.fromRGB(150,146,255)elseif r=="\089\101\108\108\111\119"then y.Color=Color3.fromRGB(181,178,87)else y.Color=r end y.Transparency=1 end end end print("\069\112\105\099\076\105\103\104\116\115 \086\101\114\115\105\111\110 \051 \047\047 \083\101\116\117\112 \099\111\109\112\108\101\116\101\100\033")a=true end intLights()end b.SignalLeft=function(b,y,X,l,n)if y==.71 then if X=="\072\097\108\111\103\101\110"then for X,l in pairs(T.LeftInd:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,D,{Brightness=b})):Play()elseif l.Name=="\076\078"and l.Parent.Name=="\082\101\097\114"then(r:Create(l,D,{Transparency=1})):Play()elseif l.Name=="\076\078"and l.Parent.Name=="\070\114\111\110\116"then(r:Create(l,D,{Transparency=y})):Play()end end elseif X=="\076\069\068"then for r,X in pairs(T.LeftInd:GetDescendants())do if X:IsA("\076\105\103\104\116")and X.Name=="\076"then X.Brightness=b elseif X.Name=="\076\078"and X.Parent.Name=="\082\101\097\114"then X.Transparency=1 elseif X.Name=="\076\078"and X.Parent.Name=="\070\114\111\110\116"then X.Transparency=y end end end else if X=="\072\097\108\111\103\101\110"then if not l then for X,l in pairs(T.LeftInd:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,D,{Brightness=b})):Play()elseif l.Name=="\076\078"then(r:Create(l,D,{Transparency=y})):Play()end end else for b,X in pairs(T.LeftInd:GetDescendants())do if X:IsA("\066\097\115\101\080\097\114\116")or X:IsA("\077\101\115\104\080\097\114\116")then if y<1 then if X.Name=="\083\073"..tostring(n)then(r:Create(X,D,{Transparency=y})):Play()end else if string.sub(X.Name,1,2)=="\083\073"then(r:Create(X,D,{Transparency=y})):Play()end end end end end elseif X=="\076\069\068"then if not l then for r,X in pairs(T.LeftInd:GetDescendants())do if X:IsA("\076\105\103\104\116")and X.Name=="\076"then X.Brightness=b elseif X.Name=="\076\078"then X.Transparency=y end end else for b,r in pairs(T.LeftInd:GetDescendants())do if r:IsA("\066\097\115\101\080\097\114\116")or r:IsA("\077\101\115\104\080\097\114\116")then if y<1 then if r.Name=="\083\073"..tostring(n)then r.Transparency=y end else r.Transparency=y end end end end end end end b.SignalRight=function(b,y,X,l,n)if y==.71 then if X=="\072\097\108\111\103\101\110"then for X,l in pairs(T.RightInd:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,D,{Brightness=b})):Play()elseif l.Name=="\076\078"and l.Parent.Name=="\082\101\097\114"then(r:Create(l,D,{Transparency=1})):Play()elseif l.Name=="\076\078"and l.Parent.Name=="\070\114\111\110\116"then(r:Create(l,D,{Transparency=y})):Play()end end elseif X=="\076\069\068"then for r,X in pairs(T.RightInd:GetDescendants())do if X:IsA("\076\105\103\104\116")and X.Name=="\076"then X.Brightness=b elseif X.Name=="\076\078"and X.Parent.Name=="\082\101\097\114"then X.Transparency=1 elseif X.Name=="\076\078"and X.Parent.Name=="\070\114\111\110\116"then X.Transparency=y end end end else if X=="\072\097\108\111\103\101\110"then if not l then for X,l in pairs(T.RightInd:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,D,{Brightness=b})):Play()elseif l.Name=="\076\078"then(r:Create(l,D,{Transparency=y})):Play()end end else for b,X in pairs(T.RightInd:GetDescendants())do if X:IsA("\066\097\115\101\080\097\114\116")or X:IsA("\077\101\115\104\080\097\114\116")then if y<1 then if X.Name=="\083\073"..tostring(n)then(r:Create(X,D,{Transparency=y})):Play()end else if string.sub(X.Name,1,2)=="\083\073"then(r:Create(X,D,{Transparency=y})):Play()end end end end end elseif X=="\076\069\068"then if not l then for r,X in pairs(T.RightInd:GetDescendants())do if X:IsA("\076\105\103\104\116")and X.Name=="\076"then X.Brightness=b elseif X.Name=="\076\078"then X.Transparency=y end end else for b,r in pairs(T.RightInd:GetDescendants())do if y<1 then if r.Name=="\083\073"..tostring(n)then r.Transparency=y end else r.Transparency=y end end end end end end b.Hazards=function(b,y,X,l,n)if y==.71 then if X=="\072\097\108\111\103\101\110"then for X,l in pairs(T.LeftInd:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,D,{Brightness=b})):Play()elseif l.Name=="\076\078"and l.Parent.Name=="\082\101\097\114"then(r:Create(l,D,{Transparency=1})):Play()elseif l.Name=="\076\078"and l.Parent.Name=="\070\114\111\110\116"then(r:Create(l,D,{Transparency=y})):Play()end end for X,l in pairs(T.RightInd:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,D,{Brightness=b})):Play()elseif l.Name=="\076\078"and l.Parent.Name=="\082\101\097\114"then(r:Create(l,D,{Transparency=1})):Play()elseif l.Name=="\076\078"and l.Parent.Name=="\070\114\111\110\116"then(r:Create(l,D,{Transparency=y})):Play()end end elseif X=="\076\069\068"then for r,X in pairs(T.LeftInd:GetDescendants())do if X:IsA("\076\105\103\104\116")and X.Name=="\076"then X.Brightness=b elseif X.Name=="\076\078"and X.Parent.Name=="\082\101\097\114"then X.Transparency=1 elseif X.Name=="\076\078"and X.Parent.Name=="\070\114\111\110\116"then X.Transparency=y end end for r,X in pairs(T.RightInd:GetDescendants())do if X:IsA("\076\105\103\104\116")and X.Name=="\076"then X.Brightness=b elseif X.Name=="\076\078"and X.Parent.Name=="\082\101\097\114"then X.Transparency=1 elseif X.Name=="\076\078"and X.Parent.Name=="\070\114\111\110\116"then X.Transparency=y end end end else if X=="\072\097\108\111\103\101\110"then if not l then for X,l in pairs(T.LeftInd:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,D,{Brightness=b})):Play()elseif l.Name=="\076\078"then(r:Create(l,D,{Transparency=y})):Play()end end for X,l in pairs(T.RightInd:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,D,{Brightness=b})):Play()elseif l.Name=="\076\078"then(r:Create(l,D,{Transparency=y})):Play()end end else for b,X in pairs(T.LeftInd:GetDescendants())do if X:IsA("\066\097\115\101\080\097\114\116")or X:IsA("\077\101\115\104\080\097\114\116")then if y<1 then if X.Name=="\083\073"..tostring(n)then(r:Create(X,D,{Transparency=y})):Play()end else if string.sub(X.Name,1,2)=="\083\073"then(r:Create(X,D,{Transparency=y})):Play()end end end end for b,X in pairs(T.RightInd:GetDescendants())do if X:IsA("\066\097\115\101\080\097\114\116")or X:IsA("\077\101\115\104\080\097\114\116")then if y<1 then if X.Name=="\083\073"..tostring(n)then(r:Create(X,D,{Transparency=y})):Play()end else if string.sub(X.Name,1,2)=="\083\073"then(r:Create(X,D,{Transparency=y})):Play()end end end end end elseif X=="\076\069\068"then if not l then for r,X in pairs(T.LeftInd:GetDescendants())do if X:IsA("\076\105\103\104\116")and X.Name=="\076"then X.Brightness=b elseif X.Name=="\076\078"then X.Transparency=y end end for r,X in pairs(T.RightInd:GetDescendants())do if X:IsA("\076\105\103\104\116")and X.Name=="\076"then X.Brightness=b elseif X.Name=="\076\078"then X.Transparency=y end end else for b,r in pairs(T.LeftInd:GetDescendants())do if r:IsA("\066\097\115\101\080\097\114\116")or r:IsA("\077\101\115\104\080\097\114\116")then if y<1 then if r.Name=="\083\073"..tostring(n)then r.Transparency=y end else r.Transparency=y end end end for b,r in pairs(T.RightInd:GetDescendants())do if r:IsA("\066\097\115\101\080\097\114\116")or r:IsA("\077\101\115\104\080\097\114\116")then if y<1 then if r.Name=="\083\073"..tostring(n)then r.Transparency=y end else r.Transparency=y end end end end end end end b.Headlights=function(b,y,X,l,n,N,u)if not n then if N=="\072\097\108\111\103\101\110"then if l and u==0 then if s==1 then for b,y in pairs(T.LeftInd.Front:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=.71})):Play()end end for b,y in pairs(T.RightInd.Front:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=.71})):Play()end end for b,y in pairs(T.Headlights.Low:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=.71})):Play()end end for b,y in pairs(T.Headlights.High:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end elseif s==2 then for b,y in pairs(T.Headlights.Low:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=.71})):Play()end end for b,y in pairs(T.Headlights.High:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end end for l,n in pairs(T.Headlights:GetDescendants())do if n:IsA("\076\105\103\104\116")and n.Name=="\076"then(r:Create(n,O,{Brightness=b})):Play()n.Range=X elseif n:IsA("\077\101\115\104\080\097\114\116")and n.Name=="\076\078"then if n.Parent.Name=="\072\105\103\104"then(r:Create(n,O,{Transparency=y})):Play()elseif n.Parent.Name=="\076\111\119"and(s~=2 and s~=1)then(r:Create(n,O,{Transparency=y})):Play()end end end elseif not l and u==0 then if s==1 then for b,y in pairs(T.LeftInd.Front:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end for b,y in pairs(T.RightInd.Front:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end for b,y in pairs(T.Headlights.Low:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end elseif s==2 then for b,y in pairs(T.Headlights.Low:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end end for l,n in pairs(T.Headlights:GetDescendants())do if n:IsA("\076\105\103\104\116")and n.Name=="\076"then(r:Create(n,O,{Brightness=b})):Play()n.Range=X elseif n:IsA("\077\101\115\104\080\097\114\116")and n.Name=="\076\078"then if n.Parent.Name=="\072\105\103\104"then(r:Create(n,O,{Transparency=y})):Play()elseif n.Parent.Name=="\076\111\119"and(s~=2 and s~=1)then(r:Create(n,O,{Transparency=y})):Play()end end end elseif u==1 then if s==1 then for b,y in pairs(T.LeftInd.Front:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=.71})):Play()end end for b,y in pairs(T.RightInd.Front:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=.71})):Play()end end end for l,n in pairs(T.Headlights.Low:GetDescendants())do if n:IsA("\076\105\103\104\116")and n.Name=="\076"then(r:Create(n,O,{Brightness=b})):Play()n.Range=X elseif n:IsA("\077\101\115\104\080\097\114\116")and n.Name=="\076\078"then(r:Create(n,O,{Transparency=y})):Play()end end for b,y in pairs(T.Headlights.High:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end elseif u==2 then for l,n in pairs(T.Headlights.Low:GetDescendants())do if n:IsA("\076\105\103\104\116")and n.Name=="\076"then(r:Create(n,O,{Brightness=b})):Play()n.Range=X elseif n:IsA("\077\101\115\104\080\097\114\116")and n.Name=="\076\078"then(r:Create(n,O,{Transparency=y})):Play()end end for l,n in pairs(T.Headlights.High:GetDescendants())do if n:IsA("\076\105\103\104\116")and n.Name=="\076"then(r:Create(n,O,{Brightness=b})):Play()n.Range=X elseif n:IsA("\077\101\115\104\080\097\114\116")and n.Name=="\076\078"then(r:Create(n,O,{Transparency=y})):Play()end end end elseif N=="\076\069\068"then if l and u==0 then if s==1 then for b,r in pairs(T.LeftInd.Front:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=.71 end end for b,r in pairs(T.RightInd.Front:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=.71 end end for b,r in pairs(T.Headlights.Low:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=.71 end end for b,r in pairs(T.Headlights.High:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=1 end end elseif s==2 then for b,r in pairs(T.Headlights.Low:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=.71 end end for b,r in pairs(T.Headlights.High:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=1 end end end for r,l in pairs(T.Headlights:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then l.Brightness=b l.Range=X elseif l:IsA("\077\101\115\104\080\097\114\116")and l.Name=="\076\078"then if l.Parent.Name=="\072\105\103\104"then l.Transparency=y elseif l.Parent.Name=="\076\111\119"and(s~=2 and s~=1)then l.Transparency=y end end end elseif not l and u==0 then if s==1 then for b,r in pairs(T.LeftInd.Front:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=1 end end for b,r in pairs(T.RightInd.Front:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=1 end end for b,r in pairs(T.Headlights.Low:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=1 end end elseif s==2 then for b,r in pairs(T.Headlights.Low:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=1 end end end for r,l in pairs(T.Headlights:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then l.Brightness=b l.Range=X elseif l:IsA("\077\101\115\104\080\097\114\116")and l.Name=="\076\078"then if l.Parent.Name=="\072\105\103\104"then l.Transparency=y elseif l.Parent.Name=="\076\111\119"and(s~=2 and s~=1)then l.Transparency=y end end end elseif u==1 then if s==1 then for b,r in pairs(T.LeftInd.Front:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=.71 end end for b,r in pairs(T.RightInd.Front:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=.71 end end end for r,l in pairs(T.Headlights.Low:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then l.Brightness=b l.Range=X elseif l:IsA("\077\101\115\104\080\097\114\116")and l.Name=="\076\078"then l.Transparency=y end end for b,r in pairs(T.Headlights.High:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=1 end end elseif u==2 then for r,l in pairs(T.Headlights.Low:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then l.Brightness=b l.Range=X elseif l:IsA("\077\101\115\104\080\097\114\116")and l.Name=="\076\078"then l.Transparency=y end end for r,l in pairs(T.Headlights.High:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then l.Brightness=b l.Range=X elseif l:IsA("\077\101\115\104\080\097\114\116")and l.Name=="\076\078"then l.Transparency=y end end end elseif not l and u==0 then if s==1 then for b,r in pairs(T.LeftInd.Front:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=1 end end for b,r in pairs(T.RightInd.Front:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=1 end end for b,r in pairs(T.Headlights.Low:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=1 end end elseif s==2 then for b,r in pairs(T.Headlights.Low:GetChildren())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=1 end end end for r,l in pairs(T.Headlights:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then l.Brightness=b l.Range=X elseif l:IsA("\077\101\115\104\080\097\114\116")and l.Name=="\076\078"then if l.Parent.Name=="\072\105\103\104"then l.Transparency=y elseif l.Parent.Name=="\076\111\119"and(s~=2 and s~=1)then l.Transparency=y end end end if u==1 then for r,l in pairs(T.Headlights.Low:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then l.Brightness=b l.Range=X elseif l:IsA("\077\101\115\104\080\097\114\116")and l.Name=="\076\078"then l.Transparency=y end end for b,r in pairs(T.Headlights.High:GetDescendants())do if r:IsA("\076\105\103\104\116")and r.Name=="\076"then r.Brightness=0 r.Range=0 elseif r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=1 end end end end else if l and u==0 then if s==1 then for b,y in pairs(T.LeftInd.Front:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=.71})):Play()end end for b,y in pairs(T.RightInd.Front:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=.71})):Play()end end for b,y in pairs(T.Headlights.Low:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=.71})):Play()end end for b,y in pairs(q.Parts.Headlights:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end elseif s==2 then for b,y in pairs(T.Headlights.Low:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=.71})):Play()end end for b,y in pairs(q.Parts.Headlights:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end else for b,y in pairs(T.Headlights.Running:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=.71})):Play()end end for b,y in pairs(q.Parts.Headlights:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end end for l,n in pairs(T.Headlights:GetDescendants())do if n:IsA("\076\105\103\104\116")and n.Name=="\076"then(r:Create(n,O,{Brightness=b})):Play()n.Range=X elseif n:IsA("\077\101\115\104\080\097\114\116")and n.Name=="\076\078"then if n.Parent.Name=="\072\105\103\104"then(r:Create(n,O,{Transparency=y})):Play()elseif n.Parent.Name=="\076\111\119"and(s~=2 and s~=1)then(r:Create(n,O,{Transparency=y})):Play()end end end for y,l in pairs(q.Parts.Headlights:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,O,{Brightness=b})):Play()l.Range=X end end elseif not l and u==0 then if s==1 then for b,y in pairs(T.LeftInd.Front:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end for b,y in pairs(T.RightInd.Front:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end for b,y in pairs(T.Headlights.Low:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end for b,y in pairs(q.Parts.Headlights:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end elseif s==2 then for b,y in pairs(T.Headlights.Low:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end for b,y in pairs(q.Parts.Headlights:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end else for b,y in pairs(T.Headlights.Running:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end for b,y in pairs(q.Parts.Headlights:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end end for l,n in pairs(T.Headlights:GetDescendants())do if n:IsA("\076\105\103\104\116")and n.Name=="\076"then(r:Create(n,O,{Brightness=b})):Play()n.Range=X elseif n:IsA("\077\101\115\104\080\097\114\116")and n.Name=="\076\078"then if n.Parent.Name=="\072\105\103\104"then(r:Create(n,O,{Transparency=y})):Play()elseif n.Parent.Name=="\076\111\119"and(s~=2 and s~=1)then(r:Create(n,O,{Transparency=y})):Play()end end end for y,l in pairs(q.Parts.Headlights:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,O,{Brightness=b})):Play()l.Range=X end end elseif u==1 then if s==1 then for b,y in pairs(T.LeftInd.Front:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=.71})):Play()end end for b,y in pairs(T.RightInd.Front:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=.71})):Play()end end elseif s==3 then for b,y in pairs(T.Headlights.Running:GetChildren())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=.71})):Play()end end end for l,n in pairs(T.Headlights.Low:GetDescendants())do if n:IsA("\076\105\103\104\116")and n.Name=="\076"then(r:Create(n,O,{Brightness=b})):Play()n.Range=X elseif n:IsA("\077\101\115\104\080\097\114\116")and n.Name=="\076\078"then(r:Create(n,O,{Transparency=y})):Play()end end for l,n in pairs(q.Parts.Headlights:GetDescendants())do if n:IsA("\076\105\103\104\116")and n.Name=="\076"then(r:Create(n,O,{Brightness=b})):Play()n.Range=X elseif n:IsA("\077\101\115\104\080\097\114\116")and n.Name=="\076\078"then(r:Create(n,O,{Transparency=y})):Play()end end elseif u==2 then for l,n in pairs(T.Headlights.Low:GetDescendants())do if n:IsA("\076\105\103\104\116")and n.Name=="\076"then(r:Create(n,O,{Brightness=b})):Play()n.Range=X elseif n:IsA("\077\101\115\104\080\097\114\116")and n.Name=="\076\078"then(r:Create(n,O,{Transparency=y})):Play()end end for l,n in pairs(T.Headlights.High:GetDescendants())do if n:IsA("\076\105\103\104\116")and n.Name=="\076"then(r:Create(n,O,{Brightness=b})):Play()n.Range=X elseif n:IsA("\077\101\115\104\080\097\114\116")and n.Name=="\076\078"then(r:Create(n,O,{Transparency=y})):Play()end end for l,n in pairs(q.Parts.Headlights:GetDescendants())do if n:IsA("\076\105\103\104\116")and n.Name=="\076"then(r:Create(n,O,{Brightness=b})):Play()n.Range=X elseif n:IsA("\077\101\115\104\080\097\114\116")and n.Name=="\076\078"then(r:Create(n,O,{Transparency=y})):Play()end end end end end b.CustomDRL=function(b,y)if y=="\072\097\108\111\103\101\110"then if b then for b,y in pairs(T.Headlights.Running:GetDescendants())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=.02})):Play()end end else for b,y in pairs(T.Headlights.Running:GetDescendants())do if y:IsA("\077\101\115\104\080\097\114\116")and y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end end else if b then for b,r in pairs(T.Headlights.Running:GetDescendants())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=.02 end end else for b,r in pairs(T.Headlights.Running:GetDescendants())do if r:IsA("\077\101\115\104\080\097\114\116")and r.Name=="\076\078"then r.Transparency=1 end end end end end b.PlateLights=function(b,y)if b then if y=="\072\097\108\111\103\101\110"then for b,y in pairs(T.Plate:GetDescendants())do if y:IsA("\076\105\103\104\116")and y.Name=="\076"then(r:Create(y,O,{Brightness=1})):Play()elseif y.Name=="\076\078"then(r:Create(y,O,{Transparency=0})):Play()end end elseif y=="\076\069\068"then for b,r in pairs(T.Plate:GetDescendants())do if r:IsA("\076\105\103\104\116")and r.Name=="\076"then r.Brightness=1 elseif r.Name=="\076\078"then r.Transparency=0 end end end else if y=="\072\097\108\111\103\101\110"then for b,y in pairs(T.Plate:GetDescendants())do if y:IsA("\076\105\103\104\116")and y.Name=="\076"then(r:Create(y,O,{Brightness=0})):Play()elseif y.Name=="\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end elseif y=="\076\069\068"then for b,r in pairs(T.Plate:GetDescendants())do if r:IsA("\076\105\103\104\116")and r.Name=="\076"then r.Brightness=0 elseif r.Name=="\076\078"then r.Transparency=1 end end end end end b.Popups=function(b,r,y)if r then local r=q.Hinge:WaitForChild("\077\111\116\111\114")r.MaxVelocity=.06 if b then r.DesiredAngle=y elseif not b then r.DesiredAngle=0 end end end b.FogLights=function(b,y,X)if X=="\072\097\108\111\103\101\110"then for X,l in pairs(T.Fog:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,D,{Brightness=b})):Play()elseif l.Name=="\076\078"then(r:Create(l,D,{Transparency=y})):Play()end end elseif X=="\076\069\068"then for r,X in pairs(T.Fog:GetDescendants())do if X:IsA("\076\105\103\104\116")and X.Name=="\076"then X.Brightness=b elseif X.Name=="\076\078"then X.Transparency=y end end end end b.BrakeLights=function(b,y,X,l)if not l then if b=="\072\097\108\111\103\101\110"then for b,l in pairs(T.Brake:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,O,{Brightness=y})):Play()elseif l.Name=="\076\078"then(r:Create(l,O,{Transparency=X})):Play()end end elseif b=="\076\069\068"then for b,r in pairs(T.Brake:GetDescendants())do if r:IsA("\076\105\103\104\116")and r.Name=="\076"then r.Brightness=y elseif r.Name=="\076\078"then r.Transparency=X end end end else if b=="\072\097\108\111\103\101\110"then for b,l in pairs(T.Brake:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,O,{Brightness=y})):Play()elseif l.Name=="\076\078"then(r:Create(l,O,{Transparency=X})):Play()end end for b,l in pairs(u.Brake:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,O,{Brightness=y})):Play()elseif l.Name=="\076\078"then(r:Create(l,O,{Transparency=X})):Play()end end elseif b=="\076\069\068"then for b,r in pairs(T.Brake:GetDescendants())do if r:IsA("\076\105\103\104\116")and r.Name=="\076"then r.Brightness=y elseif r.Name=="\076\078"then r.Transparency=X end end for b,r in pairs(u.Brake:GetDescendants())do if r:IsA("\076\105\103\104\116")and r.Name=="\076"then r.Brightness=y elseif r.Name=="\076\078"then r.Transparency=X end end end end end b.RearLights=function(b,y,X,l)if not l then if b=="\072\097\108\111\103\101\110"then for b,l in pairs(T.Rear:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,O,{Brightness=y})):Play()elseif l.Name=="\076\078"then(r:Create(l,O,{Transparency=X})):Play()end end elseif b=="\076\069\068"then for b,r in pairs(T.Rear:GetDescendants())do if r:IsA("\076\105\103\104\116")and r.Name=="\076"then r.Brightness=y elseif r.Name=="\076\078"then r.Transparency=X end end end else if b=="\072\097\108\111\103\101\110"then for b,l in pairs(T.Rear:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,O,{Brightness=y})):Play()elseif l.Name=="\076\078"then(r:Create(l,O,{Transparency=X})):Play()end end for b,l in pairs(u.Rear:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,O,{Brightness=y})):Play()elseif l.Name=="\076\078"then(r:Create(l,O,{Transparency=X})):Play()end end elseif b=="\076\069\068"then for b,r in pairs(T.Rear:GetDescendants())do if r:IsA("\076\105\103\104\116")and r.Name=="\076"then r.Brightness=y elseif r.Name=="\076\078"then r.Transparency=X end end for b,r in pairs(u.Rear:GetDescendants())do if r:IsA("\076\105\103\104\116")and r.Name=="\076"then r.Brightness=y elseif r.Name=="\076\078"then r.Transparency=X end end end end end b.DashboardIndicators=function(b,r,y) end b.Reverse=function(b,y,X,l)if not l then if b=="\072\097\108\111\103\101\110"then for b,l in pairs(T.Reverse:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,O,{Brightness=y})):Play()elseif l.Name=="\076\078"then(r:Create(l,O,{Transparency=X})):Play()end end elseif b=="\076\069\068"then for b,r in pairs(T.Reverse:GetDescendants())do if r:IsA("\076\105\103\104\116")and r.Name=="\076"then r.Brightness=y elseif r.Name=="\076\078"then r.Transparency=X end end end else if b=="\072\097\108\111\103\101\110"then for b,l in pairs(T.Reverse:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,O,{Brightness=y})):Play()elseif l.Name=="\076\078"then(r:Create(l,O,{Transparency=X})):Play()end end for b,l in pairs(u.Reverse:GetDescendants())do if l:IsA("\076\105\103\104\116")and l.Name=="\076"then(r:Create(l,O,{Brightness=y})):Play()elseif l.Name=="\076\078"then(r:Create(l,O,{Transparency=X})):Play()end end elseif b=="\076\069\068"then for b,r in pairs(T.Reverse:GetDescendants())do if r:IsA("\076\105\103\104\116")and r.Name=="\076"then r.Brightness=y elseif r.Name=="\076\078"then r.Transparency=X end end for b,r in pairs(u.Reverse:GetDescendants())do if r:IsA("\076\105\103\104\116")and r.Name=="\076"then r.Brightness=y elseif r.Name=="\076\078"then r.Transparency=X end end end end end function intLights()if B then local b=false local y=false local l=false local n=X.Body:FindFirstChild("\073\110\116\101\114\105\111\114\084\114\105\103\103\101\114\115")local N=n:FindFirstChild("\079\118\101\114\114\105\100\101\084\114\105\103\103\101\114\115")if#J>0 and i then for X,n in pairs(J)do local N=n:FindFirstChild("\069\112\105\099\076\105\103\104\116\115\068\111\111\114")N.Event:Connect(function(X)l=X if X then for X,l in pairs(T.Interior:GetDescendants())do if l.Name=="\076"and(l:IsA("\083\112\111\116\076\105\103\104\116")and not y)then(r:Create(l,O,{Brightness=.5,Range=9})):Play()elseif l.Name=="\076"and(l:IsA("\080\111\105\110\116\076\105\103\104\116")and not b)then(r:Create(l,O,{Brightness=.5,Range=9})):Play()elseif l.Name=="\070\076\078"and not y then(r:Create(l,O,{Transparency=.2})):Play()elseif l.Name=="\067\076\078"and not b then(r:Create(l,O,{Transparency=.2})):Play()end end else for X,l in pairs(T.Interior:GetDescendants())do if l.Name=="\076"and(l:IsA("\083\112\111\116\076\105\103\104\116")and not y)then(r:Create(l,O,{Brightness=0,Range=0})):Play()elseif l.Name=="\076"and(l:IsA("\080\111\105\110\116\076\105\103\104\116")and not b)then(r:Create(l,O,{Brightness=0,Range=0})):Play()elseif l.Name=="\070\076\078"and not y then(r:Create(l,O,{Transparency=1})):Play()elseif l.Name=="\067\076\078"and not b then(r:Create(l,O,{Transparency=1})):Play()end end end end)end end N.Event:Connect(function(X,n)if n=="\067\101\110\116\101\114"then b=X if not l then if X then for b,y in pairs(T.Interior:GetDescendants())do if y.Parent.Name=="\067\101\110\116\101\114\076"and y:IsA("\080\111\105\110\116\076\105\103\104\116")then(r:Create(y,O,{Brightness=.5;Range=9})):Play()elseif y.Name=="\067\076\078"then(r:Create(y,O,{Transparency=.2})):Play()end end else for b,y in pairs(T.Interior:GetDescendants())do if y.Parent.Name=="\067\101\110\116\101\114\076"and y:IsA("\080\111\105\110\116\076\105\103\104\116")then(r:Create(y,O,{Brightness=0;Range=0})):Play()elseif y.Name=="\067\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end end end elseif n=="\070\114\111\110\116"then y=X if not l then if X then for b,y in pairs(T.Interior:GetDescendants())do if y.Parent.Name=="\070\114\111\110\116\076"and y:IsA("\083\112\111\116\076\105\103\104\116")then(r:Create(y,O,{Brightness=.5;Range=9})):Play()elseif y.Name=="\070\076\078"then(r:Create(y,O,{Transparency=.2})):Play()end end else for b,y in pairs(T.Interior:GetDescendants())do if y.Parent.Name=="\070\114\111\110\116\076"and y:IsA("\083\112\111\116\076\105\103\104\116")then(r:Create(y,O,{Brightness=0;Range=0})):Play()elseif y.Name=="\070\076\078"then(r:Create(y,O,{Transparency=1})):Play()end end end end end end)end end b.IndsOnLeave=function(b,r,y,X,T,N,q)l.IndicatorsAfterLeave.Disabled=false wait()n:Fire(b,r,y,X,T,N,q)end l.OnServerEvent:Connect(function(r,y,...)b[y](...)end)
--

local F = {}
local TweenService = game:GetService("TweenService")
local DriveSeat = script.Parent.Parent:WaitForChild("DriveSeat")
local car = DriveSeat.Parent
local event = script.Parent
local leaveseatevent = script.Parent.OnLeave

local lights = car.Body.Lights
local misc = car.Misc
local PHeadlights = misc:FindFirstChild("Popups")
local trunk = misc:FindFirstChild("TK")
local isSetupCompleted = false
local doors = {}
local mirrorL
local mirrorR
local intlights
local doorFunction

for i, v in pairs(misc:GetDescendants()) do
	if v.Name == "FL" or v.Name == "FR" or v.Name == "RL" or v.Name == "RR" then
		table.insert(doors, v)
	end
end

local rl_loc
local l_tweeninfo
local ind_tweeninfo

F.Setup = function(lowbeamc, highbeamc, runninglightc, frontindc, rearindc, foglightc, popupe, platelighte, platelightc, trunklighte, mirrorinde, run_loc, ft, ind_fr, intlightse, intlightsc, doorFunctione)
	if not isSetupCompleted then
		l_tweeninfo = TweenInfo.new(ft, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 0, false, 0)
		ind_tweeninfo = TweenInfo.new(ind_fr / 2.5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 0, false, 0)
		event.IndicatorsAfterLeave.Disabled = true
		
		intlights = intlightse
		doorFunction = doorFunctione
		
		if trunklighte and trunk ~= nil then
			for i, v in pairs(trunk.Brake:GetChildren()) do
				if v.Name == "L" and v.Parent.Name == "Brake" and #v:GetChildren() < 1  then
					local spot = Instance.new("SpotLight", v)
					spot.Name = "L"
					spot.Brightness = 0
					spot.Range = 38
					spot.Face = Enum.NormalId.Front
					spot.Color = Color3.fromRGB(255, 0, 0)
					spot.Shadows = true
					spot.Angle = 180
				elseif v.Name == "LN" then
					if v:IsA("MeshPart") then
						v.TextureID = ""
					end
					v.Material = Enum.Material.Neon
					v.Color = Color3.fromRGB(248, 87, 73)
					v.Transparency = 1					
				end	 
			end
			for i, v in pairs(trunk.Rear:GetChildren()) do
				if v.Name == "L" and v.Parent.Name == "Rear" and #v:GetChildren() < 1 then
					local spot = Instance.new("SpotLight", v)
					spot.Name = "L"
					spot.Brightness = 0
					spot.Range = 25
					spot.Face = Enum.NormalId.Front
					spot.Color = Color3.fromRGB(255, 0, 0)
					spot.Shadows = true
					spot.Angle = 180
				elseif v.Name == "LN" then
					if v:IsA("MeshPart") then
						v.TextureID = ""
					end
					v.Material = Enum.Material.Neon
					v.Color = Color3.fromRGB(248, 87, 73)
					v.Transparency = 1				
				end	 
			end
			for i, v in pairs(trunk.Reverse:GetChildren()) do
				if v.Name == "L" and v.Parent.Name == "Reverse" and #v:GetChildren() < 1 then		
					local spot = Instance.new("SpotLight", v)
					spot.Name = "L"
					spot.Brightness = 0
					spot.Range = 20
					spot.Face = Enum.NormalId.Front
					spot.Color = Color3.fromRGB(255, 255, 255)
					spot.Shadows = true
					spot.Angle = 180
				elseif v.Name == "LN" then
					if v:IsA("MeshPart") then
						v.TextureID = ""
					end
					v.Material = Enum.Material.Neon
					v.Color = Color3.fromRGB(255, 255, 255)
					v.Transparency = 1				
				end	 
			end
		end
		
		for i, v in pairs(lights.Brake:GetChildren()) do
			if v.Name == "L" and v.Parent.Name == "Brake" and #v:GetChildren() < 1  then
				local spot = Instance.new("SpotLight", v)
				spot.Name = "L"
				spot.Brightness = 0
				spot.Range = 38
				spot.Face = Enum.NormalId.Front
				spot.Color = Color3.fromRGB(255, 0, 0)
				spot.Shadows = true
				spot.Angle = 180
			elseif v.Name == "LN" then
				if v:IsA("MeshPart") then
					v.TextureID = ""
				end
				v.Material = Enum.Material.Neon
				v.Color = Color3.fromRGB(248, 87, 73)
				v.Transparency = 1					
			end	 
		end
		
		for i, v in pairs(lights.Rear:GetChildren()) do
			if v.Name == "L" and v.Parent.Name == "Rear" and #v:GetChildren() < 1 then
				local spot = Instance.new("SpotLight", v)
				spot.Name = "L"
				spot.Brightness = 0
				spot.Range = 25
				spot.Face = Enum.NormalId.Front
				spot.Color = Color3.fromRGB(255, 0, 0)
				spot.Shadows = true
				spot.Angle = 180
			elseif v.Name == "LN" then
				if v:IsA("MeshPart") then
					v.TextureID = ""
				end
				v.Material = Enum.Material.Neon
				v.Color = Color3.fromRGB(248, 87, 73)
				v.Transparency = 1				
			end	 
		end
		
		for i, v in pairs(lights.Reverse:GetChildren()) do
			if v.Name == "L" and v.Parent.Name == "Reverse" and #v:GetChildren() < 1 then		
				local spot = Instance.new("SpotLight", v)
				spot.Name = "L"
				spot.Brightness = 0
				spot.Range = 20
				spot.Face = Enum.NormalId.Front
				spot.Color = Color3.fromRGB(255, 255, 255)
				spot.Shadows = true
				spot.Angle = 180
			elseif v.Name == "LN" then
				if v:IsA("MeshPart") then
					v.TextureID = ""
				end
				v.Material = Enum.Material.Neon
				v.Color = Color3.fromRGB(255, 255, 255)
				v.Transparency = 1				
			end	 
		end
		
		for i, v in pairs(lights.LeftInd:GetDescendants()) do
			if v.Name == "L"  and v.Parent.Parent.Name == "LeftInd" and #v:GetChildren() < 1 then
				local sfc = Instance.new("SurfaceLight", v)
				sfc.Name = "L"
				sfc.Brightness = 0
				sfc.Range = 16
				sfc.Face = Enum.NormalId.Front
				sfc.Angle = 180
				if v.Parent.Name == "Front" or v.Parent.Name == "Side" then
					if frontindc == "Light Orange" then
						sfc.Color = Color3.fromRGB(255, 130, 80) 
					elseif frontindc == "Yellow" then
						sfc.Color = Color3.fromRGB(181, 154, 45) 
					elseif frontindc == "Red" then
						sfc.Color = Color3.fromRGB(241, 57, 60) 
					elseif frontindc == "Dark Orange" then
						sfc.Color = Color3.fromRGB(198, 107, 54) 
					else
						sfc.Color = frontindc
					end	
				elseif v.Parent.Name == "Rear" then
					if rearindc == "Light Orange" then
						sfc.Color = Color3.fromRGB(255, 130, 80) 
					elseif rearindc == "Yellow" then
					sfc.Color = Color3.fromRGB(181, 154, 45) 
					elseif rearindc == "Red" then
						sfc.Color = Color3.fromRGB(241, 57, 60) 
					elseif rearindc == "Dark Orange" then
						sfc.Color = Color3.fromRGB(198, 107, 54) 
					else
						sfc.Color = rearindc
					end	
				end
			elseif v.Name == "LN" then
				if v:IsA("MeshPart") then
					v.TextureID = ""
				end
				v.Material = Enum.Material.Neon
				if v.Parent.Name == "Front" or v.Parent.Name == "Side" then
					if frontindc == "Light Orange" then
						v.Color = Color3.fromRGB(255, 130, 80) 
					elseif frontindc == "Yellow" then
						v.Color = Color3.fromRGB(181, 154, 45) 
					elseif frontindc == "Red" then
						v.Color = Color3.fromRGB(241, 57, 60) 
					elseif frontindc == "Dark Orange" then
						v.Color = Color3.fromRGB(198, 107, 54) 
					else
						v.Color = frontindc
					end	
				elseif v.Parent.Name == "Rear" then
					if rearindc == "Light Orange" then
						v.Color = Color3.fromRGB(255, 130, 80) 
					elseif rearindc == "Yellow" then
						v.Color = Color3.fromRGB(181, 154, 45) 
					elseif rearindc == "Red" then
						v.Color = Color3.fromRGB(241, 57, 60) 
					elseif rearindc == "Dark Orange" then
						v.Color = Color3.fromRGB(198, 107, 54) 
					else
						v.Color = rearindc
					end	
				end
				v.Transparency = 1							
			elseif string.sub(v.Name, 1, 2) == "SI" then
				if v:IsA("MeshPart") then
					v.TextureID = ""
				end
				v.Material = Enum.Material.Neon
				if v.Parent.Name == "Front" or v.Parent.Name == "Side" then
					if frontindc == "Light Orange" then
						v.Color = Color3.fromRGB(255, 130, 80) 
					elseif frontindc == "Yellow" then
						v.Color = Color3.fromRGB(181, 154, 45) 
					elseif frontindc == "Red" then
						v.Color = Color3.fromRGB(241, 57, 60) 
					elseif frontindc == "Dark Orange" then
						v.Color = Color3.fromRGB(198, 107, 54) 
					else
						v.Color = frontindc
					end	
				elseif v.Parent.Name == "Rear" then
					if rearindc == "Light Orange" then
						v.Color = Color3.fromRGB(255, 130, 80) 
					elseif rearindc == "Yellow" then
						v.Color = Color3.fromRGB(181, 154, 45) 
					elseif rearindc == "Red" then
						v.Color = Color3.fromRGB(241, 57, 60) 
					elseif rearindc == "Dark Orange" then
						v.Color = Color3.fromRGB(198, 107, 54) 
					else
						v.Color = rearindc
					end	
				end
				v.Transparency = 1	
			end	 
		end
	
		for i, v in pairs(lights.RightInd:GetDescendants()) do
			if v.Name == "L"  and v.Parent.Parent.Name == "RightInd" and #v:GetChildren() < 1 then
				local sfc = Instance.new("SurfaceLight", v)
				sfc.Name = "L"
				sfc.Brightness = 0
				sfc.Range = 16
				sfc.Face = Enum.NormalId.Front
				sfc.Angle = 180
				if v.Parent.Name == "Front" or v.Parent.Name == "Side" then
					if frontindc == "Light Orange" then
						sfc.Color = Color3.fromRGB(255, 130, 80) 
					elseif frontindc == "Yellow" then
						sfc.Color = Color3.fromRGB(181, 154, 45) 
					elseif frontindc == "Red" then
						sfc.Color = Color3.fromRGB(241, 57, 60) 
					elseif frontindc == "Dark Orange" then
						sfc.Color = Color3.fromRGB(198, 107, 54) 
					else
						sfc.Color = frontindc
					end	
				elseif v.Parent.Name == "Rear" then
					if rearindc == "Light Orange" then
						sfc.Color = Color3.fromRGB(255, 130, 80) 
					elseif rearindc == "Yellow" then
						sfc.Color = Color3.fromRGB(181, 154, 45) 
					elseif rearindc == "Red" then
						sfc.Color = Color3.fromRGB(241, 57, 60) 
					elseif rearindc == "Dark Orange" then
						sfc.Color = Color3.fromRGB(198, 107, 54) 
					else
						sfc.Color = rearindc
					end	
				end
			elseif v.Name == "LN" then
				if v:IsA("MeshPart") then
					v.TextureID = ""
				end
				v.Material = Enum.Material.Neon
				if v.Parent.Name == "Front" or v.Parent.Name == "Side" then
					if frontindc == "Light Orange" then
						v.Color = Color3.fromRGB(255, 130, 80) 
					elseif frontindc == "Yellow" then
						v.Color = Color3.fromRGB(181, 154, 45) 
					elseif frontindc == "Red" then
						v.Color = Color3.fromRGB(241, 57, 60) 
					elseif frontindc == "Dark Orange" then
						v.Color = Color3.fromRGB(198, 107, 54) 
					else
						v.Color = frontindc
					end	
				elseif v.Parent.Name == "Rear" then
					if rearindc == "Light Orange" then
						v.Color = Color3.fromRGB(255, 130, 80) 
					elseif rearindc == "Yellow" then
						v.Color = Color3.fromRGB(181, 154, 45) 
					elseif rearindc == "Red" then
						v.Color = Color3.fromRGB(241, 57, 60) 
					elseif rearindc == "Dark Orange" then
						v.Color = Color3.fromRGB(198, 107, 54) 
					else
						v.Color = rearindc
					end	
				end
				v.Transparency = 1							
			elseif string.sub(v.Name, 1, 2) == "SI" then
				if v:IsA("MeshPart") then
					v.TextureID = ""
				end
				v.Material = Enum.Material.Neon
				if v.Parent.Name == "Front" or v.Parent.Name == "Side" then
					if frontindc == "Light Orange" then
						v.Color = Color3.fromRGB(255, 130, 80) 
					elseif frontindc == "Yellow" then
						v.Color = Color3.fromRGB(181, 154, 45) 
					elseif frontindc == "Red" then
						v.Color = Color3.fromRGB(241, 57, 60) 
					elseif frontindc == "Dark Orange" then
						v.Color = Color3.fromRGB(198, 107, 54) 
					else
						v.Color = frontindc
					end	
				elseif v.Parent.Name == "Rear" then
					if rearindc == "Light Orange" then
						v.Color = Color3.fromRGB(255, 130, 80) 
					elseif rearindc == "Yellow" then
						v.Color = Color3.fromRGB(181, 154, 45) 
					elseif rearindc == "Red" then
						v.Color = Color3.fromRGB(241, 57, 60) 
					elseif rearindc == "Dark Orange" then
						v.Color = Color3.fromRGB(198, 107, 54) 
					else
						v.Color = rearindc
					end	
				end
				v.Transparency = 1	
			end	
		end	
	
		if platelighte then
			for i, v in pairs(lights.Plate:GetDescendants()) do
				if v.Name == "L" and v.Parent.Name == "Plate" and #v:GetChildren() < 1 then
					local sfc = Instance.new("SurfaceLight", v)
					sfc.Name = "L"
					sfc.Angle = 135
					sfc.Brightness = 0
					sfc.Range = 1
					sfc.Face = Enum.NormalId.Bottom
					sfc.Shadows = true
					if lowbeamc == "Pure White" then
						sfc.Color = Color3.fromRGB(255, 255, 255) 
					elseif lowbeamc == "OEM White" then
						sfc.Color = Color3.fromRGB(255, 237, 199)
					elseif lowbeamc == "Xenon" then
						sfc.Color = Color3.fromRGB(205, 227, 255) 
					elseif lowbeamc == "Brilliant Blue" then
						sfc.Color = Color3.fromRGB(74, 137, 255)
					elseif lowbeamc == "Light Green" then
						sfc.Color = Color3.fromRGB(175, 196, 196)
					elseif lowbeamc == "Golden Yellow" then
						sfc.Color = Color3.fromRGB(255, 239, 193)
					elseif lowbeamc == "Bubu's Purple" then
						sfc.Color = Color3.fromRGB(197, 197, 255)
					elseif lowbeamc == "Yellow" then
						sfc.Color = Color3.fromRGB(181, 178, 87) 
					else
						sfc.Color = lowbeamc
					end	
					sfc.Shadows = true
				elseif v.Name == "LN" then
					if v:IsA("MeshPart") then
						v.TextureID = ""
					end
					v.Material = Enum.Material.Neon
					if lowbeamc == "Pure White" then
						v.Color = Color3.fromRGB(255, 255, 255) 
					elseif lowbeamc == "OEM White" then
						v.Color = Color3.fromRGB(255, 180, 161) 
					elseif lowbeamc == "Xenon" then
						v.Color = Color3.fromRGB(226, 231, 255) 
					elseif lowbeamc == "Brilliant Blue" then
						v.Color = Color3.fromRGB(97, 126, 255)
					elseif lowbeamc == "Light Green" then
						v.Color = Color3.fromRGB(165, 195, 196)
					elseif lowbeamc == "Golden Yellow" then
						v.Color = Color3.fromRGB(255, 169, 140)
					elseif lowbeamc == "Bubu's Purple" then
						v.Color = Color3.fromRGB(150, 146, 255)
					elseif lowbeamc == "Yellow" then
						v.Color = Color3.fromRGB(181, 178, 87) 
					else
						v.Color = lowbeamc
					end
					v.Transparency = 1	
				end	 
			end
		end		
		
		if run_loc == "Low Beam / Indicators" then
			rl_loc = 1
		elseif run_loc == "Low Beam" then
			rl_loc = 2
		elseif run_loc == "Custom DRL" then	
			rl_loc = 3
			for i, v in pairs(lights.Headlights.Running:GetDescendants()) do
				if v.Name == "LN" then
					if v:IsA("MeshPart") then
						v.TextureID = ""
					end
					v.Material = Enum.Material.Neon
					if runninglightc == "Pure White" then
						v.Color = Color3.fromRGB(255, 255, 255) 
					elseif runninglightc == "OEM White" then
						v.Color = Color3.fromRGB(255, 180, 161) 
					elseif runninglightc == "Xenon" then
						v.Color = Color3.fromRGB(226, 231, 255) 
					elseif runninglightc == "Brilliant Blue" then
						v.Color = Color3.fromRGB(97, 126, 255)
					elseif runninglightc == "Light Green" then
						v.Color = Color3.fromRGB(165, 195, 196)
					elseif runninglightc == "Golden Yellow" then
						v.Color = Color3.fromRGB(255, 169, 140)
					elseif runninglightc == "Bubu's Purple" then
						v.Color = Color3.fromRGB(150, 146, 255)
					elseif runninglightc == "Yellow" then
						v.Color = Color3.fromRGB(181, 178, 87) 
					else
						v.Color = runninglightc
					end
					v.Transparency = 1				
				end	 
			end
		end	
	
		for i, v in pairs(lights.Headlights.Low:GetChildren()) do
			if v.Name == "L" and v.Parent.Name == "Low" and #v:GetChildren() < 1 then		
				local spot = Instance.new("SpotLight", v)
				spot.Angle = 180
				spot.Name = "L"
				spot.Brightness = 0
				spot.Range = 0
				spot.Face = Enum.NormalId.Front
				if lowbeamc == "Pure White" then
					spot.Color = Color3.fromRGB(255, 255, 255) 
				elseif lowbeamc == "OEM White" then
					spot.Color = Color3.fromRGB(255, 237, 199)
				elseif lowbeamc == "Xenon" then
					spot.Color = Color3.fromRGB(205, 227, 255) 
				elseif lowbeamc == "Brilliant Blue" then
					spot.Color = Color3.fromRGB(74, 137, 255)
				elseif lowbeamc == "Light Green" then
					spot.Color = Color3.fromRGB(175, 196, 196)
				elseif lowbeamc == "Golden Yellow" then
					spot.Color = Color3.fromRGB(255, 239, 193)
				elseif lowbeamc == "Bubu's Purple" then
					spot.Color = Color3.fromRGB(197, 197, 255)
				elseif lowbeamc == "Yellow" then
					spot.Color = Color3.fromRGB(181, 178, 87) 
				else
					spot.Color = lowbeamc
				end	
				spot.Shadows = true
			elseif v.Name == "LN" then
				if v:IsA("MeshPart") then
					v.TextureID = ""
				end
				v.Material = Enum.Material.Neon
				if lowbeamc == "Pure White" then
					v.Color = Color3.fromRGB(255, 255, 255) 
				elseif lowbeamc == "OEM White" then
					v.Color = Color3.fromRGB(255, 180, 161) 
				elseif lowbeamc == "Xenon" then
					v.Color = Color3.fromRGB(226, 231, 255) 
				elseif lowbeamc == "Brilliant Blue" then
					v.Color = Color3.fromRGB(97, 126, 255)
				elseif lowbeamc == "Light Green" then
					v.Color = Color3.fromRGB(165, 195, 196)
				elseif lowbeamc == "Golden Yellow" then
					v.Color = Color3.fromRGB(255, 169, 140)
				elseif lowbeamc == "Bubu's Purple" then
					v.Color = Color3.fromRGB(150, 146, 255)
				elseif lowbeamc == "Yellow" then
					v.Color = Color3.fromRGB(181, 178, 87) 
				else
					v.Color = lowbeamc
				end
				v.Transparency = 1					
			end	 
		end
		
		for i, v in pairs(lights.Headlights.High:GetChildren()) do
			if v.Name == "L" and v.Parent.Name == "High" and #v:GetChildren() < 1 then		
				local spot = Instance.new("SpotLight", v)
				spot.Name = "L"
				spot.Angle = 180
				spot.Brightness = 0
				spot.Range = 0
				spot.Face = Enum.NormalId.Front
				if highbeamc == "Pure White" then
					spot.Color = Color3.fromRGB(255, 255, 255) 
				elseif highbeamc == "OEM White" then
					spot.Color = Color3.fromRGB(255, 237, 199)
				elseif highbeamc == "Xenon" then
					spot.Color = Color3.fromRGB(205, 227, 255) 
				elseif highbeamc == "Brilliant Blue" then
					spot.Color = Color3.fromRGB(74, 137, 255)
				elseif highbeamc == "Light Green" then
					spot.Color = Color3.fromRGB(175, 196, 196)
				elseif highbeamc == "Golden Yellow" then
					spot.Color = Color3.fromRGB(255, 239, 193)
				elseif highbeamc == "Bubu's Purple" then
					spot.Color = Color3.fromRGB(197, 197, 255)
				elseif highbeamc == "Yellow" then
					spot.Color = Color3.fromRGB(181, 178, 87) 
				else
					spot.Color = highbeamc
				end	
				spot.Shadows = true
			elseif v.Name == "LN" then
				if v:IsA("MeshPart") then
					v.TextureID = ""
				end
				v.Material = Enum.Material.Neon
				if highbeamc == "Pure White" then
					v.Color = Color3.fromRGB(255, 255, 255) 
				elseif highbeamc == "OEM White" then
					v.Color = Color3.fromRGB(255, 180, 161) 
				elseif highbeamc == "Xenon" then
					v.Color = Color3.fromRGB(226, 231, 255) 
				elseif highbeamc == "Brilliant Blue" then
					v.Color = Color3.fromRGB(97, 126, 255)
				elseif highbeamc == "Light Green" then
					v.Color = Color3.fromRGB(165, 195, 196)
				elseif highbeamc == "Golden Yellow" then
					v.Color = Color3.fromRGB(255, 169, 140)
				elseif highbeamc == "Bubu's Purple" then
					v.Color = Color3.fromRGB(150, 146, 255)
				elseif highbeamc == "Yellow" then
					v.Color = Color3.fromRGB(181, 178, 87) 
				else
					v.Color = highbeamc
				end
				v.Transparency = 1					
			end	 
		end		
		
		if popupe and PHeadlights ~= nil then
			for i, v in pairs(PHeadlights.Parts.Headlights:GetChildren()) do
				if v.Name == "L" and #v:GetChildren() < 1 then		
					local spot = Instance.new("SpotLight", v)
					spot.Name = "L"
					spot.Angle = 180
					spot.Brightness = 0
					spot.Range = 0
					spot.Face = Enum.NormalId.Front
					if lowbeamc == "Pure White" then
						spot.Color = Color3.fromRGB(255, 255, 255) 
					elseif lowbeamc == "OEM White" then
						spot.Color = Color3.fromRGB(255, 237, 199)
					elseif lowbeamc == "Xenon" then
						spot.Color = Color3.fromRGB(205, 227, 255) 
					elseif lowbeamc == "Brilliant Blue" then
						spot.Color = Color3.fromRGB(74, 137, 255)
					elseif lowbeamc == "Light Green" then
						spot.Color = Color3.fromRGB(175, 196, 196)
					elseif lowbeamc == "Golden Yellow" then
						spot.Color = Color3.fromRGB(255, 239, 193)
					elseif lowbeamc == "Bubu's Purple" then
						spot.Color = Color3.fromRGB(197, 197, 255)
					elseif lowbeamc == "Yellow" then
						spot.Color = Color3.fromRGB(181, 178, 87) 
					else
						spot.Color = lowbeamc
					end	
					spot.Shadows = true
				elseif v.Name == "LN" then
					if v:IsA("MeshPart") then
						v.TextureID = ""
					end
					v.Material = Enum.Material.Neon
					if lowbeamc == "Pure White" then
						v.Color = Color3.fromRGB(255, 255, 255) 
					elseif lowbeamc == "OEM White" then
						v.Color = Color3.fromRGB(255, 180, 161) 
					elseif lowbeamc == "Xenon" then
						v.Color = Color3.fromRGB(226, 231, 255) 
					elseif lowbeamc == "Brilliant Blue" then
						v.Color = Color3.fromRGB(97, 126, 255)
					elseif lowbeamc == "Light Green" then
						v.Color = Color3.fromRGB(165, 195, 196)
					elseif lowbeamc == "Golden Yellow" then
						v.Color = Color3.fromRGB(255, 169, 140)
					elseif lowbeamc == "Bubu's Purple" then
						v.Color = Color3.fromRGB(150, 146, 255)
					elseif lowbeamc == "Yellow" then
						v.Color = Color3.fromRGB(181, 178, 87) 
					else
						v.Color = lowbeamc
					end
					v.Transparency = 1					
				end	 
			end			
		end
		for i, v in pairs(lights.Fog:GetChildren()) do
			if v.Name == "L" and v.Parent.Name == "Fog" and #v:GetChildren() < 1 then
				local spot = Instance.new("SpotLight", v)
				spot.Name = "L"
				spot.Angle = 180
				spot.Brightness = 0
				spot.Range = 48
				spot.Face = Enum.NormalId.Front
				if foglightc == "Pure White" then
					spot.Color = Color3.fromRGB(255, 255, 255) 
				elseif foglightc == "OEM White" then
					spot.Color = Color3.fromRGB(255, 237, 199)
				elseif foglightc == "Xenon" then
					spot.Color = Color3.fromRGB(205, 227, 255) 
				elseif foglightc == "Brilliant Blue" then
					spot.Color = Color3.fromRGB(74, 137, 255)
				elseif foglightc == "Light Green" then
					spot.Color = Color3.fromRGB(175, 196, 196)
				elseif foglightc == "Golden Yellow" then
					spot.Color = Color3.fromRGB(255, 239, 193)
				elseif foglightc == "Bubu's Purple" then
					spot.Color = Color3.fromRGB(197, 197, 255)
				elseif foglightc == "Yellow" then
					spot.Color = Color3.fromRGB(181, 178, 87) 
				else
					spot.Color = foglightc
				end	
				spot.Shadows = true
			elseif v.Name == "LN" then
				if v:IsA("MeshPart") then
					v.TextureID = ""
				end
				v.Material = Enum.Material.Neon
				if foglightc == "Pure White" then
					v.Color = Color3.fromRGB(255, 255, 255) 
				elseif foglightc == "OEM White" then
					v.Color = Color3.fromRGB(255, 180, 161) 
				elseif foglightc == "Xenon" then
					v.Color = Color3.fromRGB(226, 231, 255) 
				elseif foglightc == "Brilliant Blue" then
					v.Color = Color3.fromRGB(97, 126, 255)
				elseif foglightc == "Light Green" then
					v.Color = Color3.fromRGB(165, 195, 196)
				elseif foglightc == "Golden Yellow" then
					v.Color = Color3.fromRGB(255, 169, 140)
				elseif foglightc == "Bubu's Purple" then
					v.Color = Color3.fromRGB(150, 146, 255)
				elseif foglightc == "Yellow" then
					v.Color = Color3.fromRGB(181, 178, 87) 
				else
					v.Color = foglightc
				end
				v.Transparency = 1
			end	
		end
		
		if intlightse then
			for i, v in pairs(lights.Interior:GetChildren()) do
				if v.Name == "FrontL" then		
					local spot = Instance.new("SpotLight", v)
					spot.Name = "L"
					print(spot.Parent.Name)
					spot.Angle = 135
					spot.Brightness = 0
					spot.Range = 0
					spot.Face = Enum.NormalId.Bottom
					if intlightsc == "Pure White" then
						spot.Color = Color3.fromRGB(255, 255, 255) 
					elseif intlightsc == "OEM White" then
						spot.Color = Color3.fromRGB(255, 237, 199)
					elseif intlightsc == "Xenon" then
						spot.Color = Color3.fromRGB(205, 227, 255) 
					elseif intlightsc == "Brilliant Blue" then
						spot.Color = Color3.fromRGB(74, 137, 255)
					elseif intlightsc == "Light Green" then
						spot.Color = Color3.fromRGB(175, 196, 196)
					elseif intlightsc == "Golden Yellow" then
						spot.Color = Color3.fromRGB(255, 239, 193)
					elseif intlightsc == "Bubu's Purple" then
						spot.Color = Color3.fromRGB(197, 197, 255)
					elseif intlightsc == "Yellow" then
						spot.Color = Color3.fromRGB(181, 178, 87) 
					else
						spot.Color = intlightsc
					end	
					spot.Shadows = true
				elseif v.Name == "CenterL" then
					local point = Instance.new("PointLight", v)
					point.Name = "L"
					point.Brightness = 0
					point.Range = 0
					if intlightsc == "Pure White" then
						point.Color = Color3.fromRGB(255, 255, 255) 
					elseif intlightsc == "OEM White" then
						point.Color = Color3.fromRGB(255, 237, 199)
					elseif intlightsc == "Xenon" then
						point.Color = Color3.fromRGB(205, 227, 255) 
					elseif intlightsc == "Brilliant Blue" then
						point.Color = Color3.fromRGB(74, 137, 255)
					elseif intlightsc == "Light Green" then
						point.Color = Color3.fromRGB(175, 196, 196)
					elseif intlightsc == "Golden Yellow" then
						point.Color = Color3.fromRGB(255, 239, 193)
					elseif intlightsc == "Bubu's Purple" then
						point.Color = Color3.fromRGB(197, 197, 255)
					elseif intlightsc == "Yellow" then
						point.Color = Color3.fromRGB(181, 178, 87) 
					else
						point.Color = intlightsc
					end	
					point.Shadows = true
				elseif v.Name == "CLN" or v.Name == "FLN" then
					if v:IsA("MeshPart") then
						v.TextureID = ""
					end
					v.Material = Enum.Material.Neon
					if highbeamc == "Pure White" then
						v.Color = Color3.fromRGB(255, 255, 255) 
					elseif highbeamc == "OEM White" then
						v.Color = Color3.fromRGB(255, 180, 161) 
					elseif highbeamc == "Xenon" then
						v.Color = Color3.fromRGB(226, 231, 255) 
					elseif highbeamc == "Brilliant Blue" then
						v.Color = Color3.fromRGB(97, 126, 255)
					elseif highbeamc == "Light Green" then
						v.Color = Color3.fromRGB(165, 195, 196)
					elseif highbeamc == "Golden Yellow" then
						v.Color = Color3.fromRGB(255, 169, 140)
					elseif highbeamc == "Bubu's Purple" then
						v.Color = Color3.fromRGB(150, 146, 255)
					elseif highbeamc == "Yellow" then
						v.Color = Color3.fromRGB(181, 178, 87) 
					else
						v.Color = highbeamc
					end
					v.Transparency = 1					
				end	
			end
		end
		print("EpicLights Version 3 // Setup completed!")
		isSetupCompleted = true		
	end
	intLights()
end	
	
F.SignalLeft = function(b, tp, t, seq, iseg)
	if tp == 0.71 then
		if t == "Halogen" then
			for i, v in pairs(lights.LeftInd:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, ind_tweeninfo, {Brightness = b}):Play()
				elseif v.Name == "LN" and v.Parent.Name == "Rear" then
					TweenService:Create(v, ind_tweeninfo, {Transparency = 1}):Play()
				elseif v.Name == "LN" and v.Parent.Name == "Front" then
					TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
				end
			end
		elseif t == "LED" then
			for i, v in pairs(lights.LeftInd:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = b
				elseif v.Name == "LN" and v.Parent.Name == "Rear" then
					v.Transparency = 1
				elseif v.Name == "LN" and v.Parent.Name == "Front" then
					v.Transparency = tp
				end
			end
		end
	else
		if t == "Halogen" then
			if not seq then
				for i, v in pairs(lights.LeftInd:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						TweenService:Create(v, ind_tweeninfo, {Brightness = b}):Play()
					elseif v.Name == "LN" then
						TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
					end
				end
			else
				for i, v in pairs(lights.LeftInd:GetDescendants()) do
					if v:IsA("BasePart") or v:IsA("MeshPart") then
						if tp < 1 then
							if v.Name == "SI"..tostring(iseg) then
								TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
							end
						else
							if string.sub(v.Name, 1, 2) == "SI" then
								TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
							end
						end 
					end	
				end
			end
		elseif t == "LED" then
			if not seq then
				for i, v in pairs(lights.LeftInd:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						v.Brightness = b
					elseif v.Name == "LN" then
						v.Transparency = tp
					end
				end
			else
				for i, v in pairs(lights.LeftInd:GetDescendants()) do
					if v:IsA("BasePart") or v:IsA("MeshPart") then
						if tp < 1 then
							if v.Name == "SI"..tostring(iseg) then
								v.Transparency = tp	
							end
						else
							v.Transparency = tp
						end
					end	
				end
			end	
		end
	end	
end

F.SignalRight = function(b, tp, t, seq, iseg)
	if tp == 0.71 then
		if t == "Halogen" then
			for i, v in pairs(lights.RightInd:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, ind_tweeninfo, {Brightness = b}):Play()
				elseif v.Name == "LN" and v.Parent.Name == "Rear" then
					TweenService:Create(v, ind_tweeninfo, {Transparency = 1}):Play()
				elseif v.Name == "LN" and v.Parent.Name == "Front" then
					TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
				end
			end
		elseif t == "LED" then
			for i, v in pairs(lights.RightInd:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = b
				elseif v.Name == "LN" and v.Parent.Name == "Rear" then
					v.Transparency = 1
				elseif v.Name == "LN" and v.Parent.Name == "Front" then
					v.Transparency = tp
				end
			end
		end
	else
		if t == "Halogen" then
			if not seq then
				for i, v in pairs(lights.RightInd:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						TweenService:Create(v, ind_tweeninfo, {Brightness = b}):Play()
					elseif v.Name == "LN" then
						TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
					end
				end
			else
				for i, v in pairs(lights.RightInd:GetDescendants()) do
					if v:IsA("BasePart") or v:IsA("MeshPart") then
						if tp < 1 then
							if v.Name == "SI"..tostring(iseg) then
								TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
							end
						else
							if string.sub(v.Name, 1, 2) == "SI" then
								TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
							end
						end	
					end			
				end
			end
		elseif t == "LED" then
			if not seq then
				for i, v in pairs(lights.RightInd:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						v.Brightness = b
					elseif v.Name == "LN" then
						v.Transparency = tp
					end
				end
			else
				for i, v in pairs(lights.RightInd:GetDescendants()) do
					if tp < 1 then
						if v.Name == "SI"..tostring(iseg) then
							v.Transparency = tp	
						end
					else
						v.Transparency = tp
					end	
				end
			end	
		end
	end	
end

F.Hazards = function(b, tp, t, seq, iseg)
	if tp == 0.71 then
		if t == "Halogen" then
			for i, v in pairs(lights.LeftInd:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, ind_tweeninfo, {Brightness = b}):Play()
				elseif v.Name == "LN" and v.Parent.Name == "Rear" then
					TweenService:Create(v, ind_tweeninfo, {Transparency = 1}):Play()
				elseif v.Name == "LN" and v.Parent.Name == "Front" then
					TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
				end
			end
			for i, v in pairs(lights.RightInd:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, ind_tweeninfo, {Brightness = b}):Play()
				elseif v.Name == "LN" and v.Parent.Name == "Rear" then
					TweenService:Create(v, ind_tweeninfo, {Transparency = 1}):Play()
				elseif v.Name == "LN" and v.Parent.Name == "Front" then
					TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
				end
			end
		elseif t == "LED" then
			for i, v in pairs(lights.LeftInd:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = b
				elseif v.Name == "LN" and v.Parent.Name == "Rear" then
					v.Transparency = 1
				elseif v.Name == "LN" and v.Parent.Name == "Front" then
					v.Transparency = tp
				end
			end
			for i, v in pairs(lights.RightInd:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = b
				elseif v.Name == "LN" and v.Parent.Name == "Rear" then
					v.Transparency = 1
				elseif v.Name == "LN" and v.Parent.Name == "Front" then
					v.Transparency = tp
				end
			end
		end
	else
		if t == "Halogen" then
			if not seq then
				for i, v in pairs(lights.LeftInd:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						TweenService:Create(v, ind_tweeninfo, {Brightness = b}):Play()
					elseif v.Name == "LN" then
						TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
					end
				end
				for i, v in pairs(lights.RightInd:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						TweenService:Create(v, ind_tweeninfo, {Brightness = b}):Play()
					elseif v.Name == "LN" then
						TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
					end
				end
			else
				for i, v in pairs(lights.LeftInd:GetDescendants()) do
					if v:IsA("BasePart") or v:IsA("MeshPart") then
						if tp < 1 then
							if v.Name == "SI"..tostring(iseg) then
								TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
							end
						else
							if string.sub(v.Name, 1, 2) == "SI" then
								TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
							end
						end	
					end	
				end
				for i, v in pairs(lights.RightInd:GetDescendants()) do
					if v:IsA("BasePart") or v:IsA("MeshPart") then
						if tp < 1 then
							if v.Name == "SI"..tostring(iseg) then
								TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
							end
						else
							if string.sub(v.Name, 1, 2) == "SI" then
								TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
							end
						end
					end	
				end
			end
		elseif t == "LED" then
			if not seq then
				for i, v in pairs(lights.LeftInd:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						v.Brightness = b
					elseif v.Name == "LN" then
						v.Transparency = tp
					end
				end
				for i, v in pairs(lights.RightInd:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						v.Brightness = b
					elseif v.Name == "LN" then
						v.Transparency = tp
					end
				end
			else
				for i, v in pairs(lights.LeftInd:GetDescendants()) do
					if v:IsA("BasePart") or v:IsA("MeshPart") then
						if tp < 1 then
							if v.Name == "SI"..tostring(iseg) then
								v.Transparency = tp	
							end
						else
							v.Transparency = tp
						end	
					end
				end	
				for i, v in pairs(lights.RightInd:GetDescendants()) do
					if v:IsA("BasePart") or v:IsA("MeshPart") then
						if tp < 1 then
							if v.Name == "SI"..tostring(iseg) then
								v.Transparency = tp	
							end
						else
							v.Transparency = tp
						end	
					end	
				end
			end	
		end
	end	
end

F.Headlights = function(b, tp, r, rl_a, pe, t, ls)
	if not pe then
		if t == "Halogen" then	
			if rl_a and ls == 0 then
				if rl_loc == 1 then
					for i, v in pairs(lights.LeftInd.Front:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							TweenService:Create(v, l_tweeninfo, {Transparency = 0.71}):Play()
						end
					end
					for i, v in pairs(lights.RightInd.Front:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							TweenService:Create(v, l_tweeninfo, {Transparency = 0.71}):Play()
						end
					end
					for i, v in pairs(lights.Headlights.Low:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							TweenService:Create(v, l_tweeninfo, {Transparency = 0.71}):Play()
						end
					end
					for i, v in pairs(lights.Headlights.High:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
						end
					end
				elseif rl_loc == 2 then
					for i, v in pairs(lights.Headlights.Low:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							TweenService:Create(v, l_tweeninfo, {Transparency = 0.71}):Play()
						end
					end
					for i, v in pairs(lights.Headlights.High:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
						end
					end
				end
				for i, v in pairs(lights.Headlights:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
						v.Range = r
					elseif v:IsA("MeshPart") and v.Name == "LN" then
						if v.Parent.Name == "High" then
							TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
						elseif v.Parent.Name == "Low" and rl_loc ~= 2 and rl_loc ~= 1 then
							TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
						end	
					end
				end
			elseif not rl_a and ls == 0 then
				if rl_loc == 1 then
					for i, v in pairs(lights.LeftInd.Front:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
						end
					end
					for i, v in pairs(lights.RightInd.Front:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
						end
					end
					for i, v in pairs(lights.Headlights.Low:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
						end
					end
				elseif rl_loc == 2 then
					for i, v in pairs(lights.Headlights.Low:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
						end
					end
				end
				for i, v in pairs(lights.Headlights:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
						v.Range = r
					elseif v:IsA("MeshPart") and v.Name == "LN" then
						if v.Parent.Name == "High" then
							TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
						elseif v.Parent.Name == "Low" and rl_loc ~= 2 and rl_loc ~= 1 then
							TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
						end	
					end
				end
			elseif ls == 1 then
				if rl_loc == 1 then
					for i, v in pairs(lights.LeftInd.Front:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							TweenService:Create(v, l_tweeninfo, {Transparency = 0.71}):Play()
						end
					end
					for i, v in pairs(lights.RightInd.Front:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							TweenService:Create(v, l_tweeninfo, {Transparency = 0.71}):Play()
						end
					end
				end
				for i, v in pairs(lights.Headlights.Low:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
						v.Range = r
					elseif v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
					end
				end	
				for i, v in pairs(lights.Headlights.High:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
					end
				end
			elseif ls == 2 then
				for i, v in pairs(lights.Headlights.Low:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
						v.Range = r
					elseif v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
					end
				end	
				for i, v in pairs(lights.Headlights.High:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
						v.Range = r
					elseif v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
					end
				end	
			end
		elseif t == "LED" then
			if rl_a and ls == 0 then
				if rl_loc == 1 then
					for i, v in pairs(lights.LeftInd.Front:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							v.Transparency = 0.71
						end
					end
					for i, v in pairs(lights.RightInd.Front:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							v.Transparency = 0.71
						end
					end
					for i, v in pairs(lights.Headlights.Low:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							v.Transparency = 0.71
						end
					end
					for i, v in pairs(lights.Headlights.High:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							v.Transparency = 1
						end
					end
				elseif rl_loc == 2 then
					for i, v in pairs(lights.Headlights.Low:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							v.Transparency = 0.71
						end
					end
					for i, v in pairs(lights.Headlights.High:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							v.Transparency = 1
						end
					end
				end
				for i, v in pairs(lights.Headlights:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						v.Brightness = b
						v.Range = r
					elseif v:IsA("MeshPart") and v.Name == "LN" then
						if v.Parent.Name == "High" then
							v.Transparency = tp
						elseif v.Parent.Name == "Low" and rl_loc ~= 2 and rl_loc ~= 1 then
							v.Transparency = tp
						end	
					end
				end
			elseif not rl_a and ls == 0 then
				if rl_loc == 1 then
					for i, v in pairs(lights.LeftInd.Front:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							v.Transparency = 1
						end
					end
					for i, v in pairs(lights.RightInd.Front:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							v.Transparency = 1
						end
					end
					for i, v in pairs(lights.Headlights.Low:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							v.Transparency = 1
						end
					end
				elseif rl_loc == 2 then
					for i, v in pairs(lights.Headlights.Low:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							v.Transparency = 1
						end
					end
				end
				for i, v in pairs(lights.Headlights:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						v.Brightness = b
						v.Range = r
					elseif v:IsA("MeshPart") and v.Name == "LN" then
						if v.Parent.Name == "High" then
							v.Transparency = tp
						elseif v.Parent.Name == "Low" and rl_loc ~= 2 and rl_loc ~= 1 then
							v.Transparency = tp
						end	
					end
				end
			elseif ls == 1 then
				if rl_loc == 1 then
					for i, v in pairs(lights.LeftInd.Front:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							v.Transparency = 0.71
						end
					end
					for i, v in pairs(lights.RightInd.Front:GetChildren()) do
						if v:IsA("MeshPart") and v.Name == "LN" then
							v.Transparency = 0.71
						end
					end
				end
				for i, v in pairs(lights.Headlights.Low:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						v.Brightness = b
						v.Range = r
					elseif v:IsA("MeshPart") and v.Name == "LN" then
						v.Transparency = tp
					end
				end	
				for i, v in pairs(lights.Headlights.High:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						v.Transparency = 1
					end
				end
			elseif ls == 2 then
				for i, v in pairs(lights.Headlights.Low:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						v.Brightness = b
						v.Range = r
					elseif v:IsA("MeshPart") and v.Name == "LN" then
						v.Transparency = tp
					end
				end	
				for i, v in pairs(lights.Headlights.High:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						v.Brightness = b
						v.Range = r
					elseif v:IsA("MeshPart") and v.Name == "LN" then
						v.Transparency = tp
					end
				end	
			end
		elseif not rl_a and ls == 0 then
			if rl_loc == 1 then
				for i, v in pairs(lights.LeftInd.Front:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						v.Transparency = 1
					end
				end
				for i, v in pairs(lights.RightInd.Front:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						v.Transparency = 1
					end
				end
				for i, v in pairs(lights.Headlights.Low:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						v.Transparency = 1
					end
				end
			elseif rl_loc == 2 then
				for i, v in pairs(lights.Headlights.Low:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						v.Transparency = 1
					end
				end
			end
			for i, v in pairs(lights.Headlights:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = b
					v.Range = r
				elseif v:IsA("MeshPart") and v.Name == "LN" then
					if v.Parent.Name == "High" then
						v.Transparency = tp
					elseif v.Parent.Name == "Low" and rl_loc ~= 2 and rl_loc ~= 1 then
						v.Transparency = tp
					end	
				end
			end
			if ls == 1 then
				for i, v in pairs(lights.Headlights.Low:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						v.Brightness = b
						v.Range = r
					elseif v:IsA("MeshPart") and v.Name == "LN" then
						v.Transparency = tp
					end
				end
				for i, v in pairs(lights.Headlights.High:GetDescendants()) do
					if v:IsA("Light") and v.Name == "L" then
						v.Brightness = 0
						v.Range = 0
					elseif v:IsA("MeshPart") and v.Name == "LN" then
						v.Transparency = 1
					end
				end
				
			end	
		end	
	else
		if rl_a and ls == 0 then
			if rl_loc == 1 then
				for i, v in pairs(lights.LeftInd.Front:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 0.71}):Play()
					end
				end
				for i, v in pairs(lights.RightInd.Front:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 0.71}):Play()
					end
				end
				for i, v in pairs(lights.Headlights.Low:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 0.71}):Play()
					end
				end
				for i, v in pairs(PHeadlights.Parts.Headlights:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
					end
				end
			elseif rl_loc == 2 then
				for i, v in pairs(lights.Headlights.Low:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 0.71}):Play()
					end
				end
				for i, v in pairs(PHeadlights.Parts.Headlights:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
					end
				end
			else
				for i, v in pairs(lights.Headlights.Running:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 0.71}):Play()
					end
				end
				for i, v in pairs(PHeadlights.Parts.Headlights:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
					end
				end
			end
			for i, v in pairs(lights.Headlights:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
					v.Range = r
				elseif v:IsA("MeshPart") and v.Name == "LN" then
					if v.Parent.Name == "High" then
						TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
					elseif v.Parent.Name == "Low" and rl_loc ~= 2 and rl_loc ~= 1 then
						TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
					end	
				end
			end
			for i, v in pairs(PHeadlights.Parts.Headlights:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
					v.Range = r
				end
			end
		elseif not rl_a and ls == 0 then
			if rl_loc == 1 then
				for i, v in pairs(lights.LeftInd.Front:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
					end
				end
				for i, v in pairs(lights.RightInd.Front:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
					end
				end
				for i, v in pairs(lights.Headlights.Low:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
					end
				end
				for i, v in pairs(PHeadlights.Parts.Headlights:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
					end
				end
			elseif rl_loc == 2 then
				for i, v in pairs(lights.Headlights.Low:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
					end
				end
				for i, v in pairs(PHeadlights.Parts.Headlights:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
					end
				end
			else
				for i, v in pairs(lights.Headlights.Running:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
					end
				end
				for i, v in pairs(PHeadlights.Parts.Headlights:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
					end
				end
			end
			for i, v in pairs(lights.Headlights:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
					v.Range = r
				elseif v:IsA("MeshPart") and v.Name == "LN" then
					if v.Parent.Name == "High" then
						TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
					elseif v.Parent.Name == "Low" and rl_loc ~= 2 and rl_loc ~= 1 then
						TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
					end	
				end
			end
			for i, v in pairs(PHeadlights.Parts.Headlights:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
					v.Range = r
				end
			end
		elseif ls == 1 then
			if rl_loc == 1 then
				for i, v in pairs(lights.LeftInd.Front:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 0.71}):Play()
					end
				end
				for i, v in pairs(lights.RightInd.Front:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 0.71}):Play()
					end
				end
			elseif rl_loc == 3 then
				for i, v in pairs(lights.Headlights.Running:GetChildren()) do
					if v:IsA("MeshPart") and v.Name == "LN" then
						TweenService:Create(v, l_tweeninfo, {Transparency = 0.71}):Play()
					end
				end
			end
			for i, v in pairs(lights.Headlights.Low:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
					v.Range = r
				elseif v:IsA("MeshPart") and v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
				end
			end	
			for i, v in pairs(PHeadlights.Parts.Headlights:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
					v.Range = r
				elseif v:IsA("MeshPart") and v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
				end
			end
		elseif ls == 2 then
			for i, v in pairs(lights.Headlights.Low:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
					v.Range = r
				elseif v:IsA("MeshPart") and v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
				end
			end	
			for i, v in pairs(lights.Headlights.High:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
					v.Range = r
				elseif v:IsA("MeshPart") and v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
				end
			end	
			for i, v in pairs(PHeadlights.Parts.Headlights:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
					v.Range = r
				elseif v:IsA("MeshPart") and v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
				end
			end
		end
	end
end

F.CustomDRL = function(s, t)
	if t == "Halogen" then
		if s then
			for i, v in pairs(lights.Headlights.Running:GetDescendants()) do
				if v:IsA("MeshPart") and v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = 0.02}):Play()
				end
			end
		else
			for i, v in pairs(lights.Headlights.Running:GetDescendants()) do
				if v:IsA("MeshPart") and v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
				end
			end
		end
	else
		if s then
			for i, v in pairs(lights.Headlights.Running:GetDescendants()) do
				if v:IsA("MeshPart") and v.Name == "LN" then
					v.Transparency = 0.02
				end
			end
		else
			for i, v in pairs(lights.Headlights.Running:GetDescendants()) do
				if v:IsA("MeshPart") and v.Name == "LN" then
					v.Transparency = 1
				end
			end
		end
	end	
end

F.PlateLights = function(s, t)
	if s then
		if t == "Halogen" then
			for i, v in pairs(lights.Plate:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = 1}):Play()
				elseif v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = 0}):Play()
				end
			end
		elseif t == "LED" then
			for i, v in pairs(lights.Plate:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = 1
				elseif v.Name == "LN" then
					v.Transparency = 0
				end
			end
		end
	else
		if t == "Halogen" then
			for i, v in pairs(lights.Plate:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = 0}):Play()
				elseif v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
				end
			end
		elseif t == "LED" then
			for i, v in pairs(lights.Plate:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = 0
				elseif v.Name == "LN" then
					v.Transparency = 1
				end
			end
		end
	end
end

F.Popups = function(state, enabled, hinge_angle)
	if enabled then
		local motor = PHeadlights.Hinge:WaitForChild("Motor")
		motor.MaxVelocity = 0.06
		
		if state then
			motor.DesiredAngle = hinge_angle
		elseif not state then
			motor.DesiredAngle = 0
		end
	end
end

F.FogLights = function(b, tp, t)
	if t == "Halogen" then
		for i, v in pairs(lights.Fog:GetDescendants()) do
			if v:IsA("Light") and v.Name == "L" then
				TweenService:Create(v, ind_tweeninfo, {Brightness = b}):Play()
			elseif v.Name == "LN" then
				TweenService:Create(v, ind_tweeninfo, {Transparency = tp}):Play()
			end
		end
	elseif t == "LED" then
		for i, v in pairs(lights.Fog:GetDescendants()) do
			if v:IsA("Light") and v.Name == "L" then
				v.Brightness = b
			elseif v.Name == "LN" then
				v.Transparency = tp
			end
		end
	end
end

F.BrakeLights = function(t, b, tp, te)
	if not te then
		if t == "Halogen" then
			for i, v in pairs(lights.Brake:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
				elseif v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
				end
			end
		elseif t == "LED" then
			for i, v in pairs(lights.Brake:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = b
				elseif v.Name == "LN" then
					v.Transparency = tp
				end
			end
		end
	else
		if t == "Halogen" then
			for i, v in pairs(lights.Brake:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
				elseif v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
				end
			end
			for i, v in pairs(trunk.Brake:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
				elseif v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
				end
			end
		elseif t == "LED" then
			for i, v in pairs(lights.Brake:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = b
				elseif v.Name == "LN" then
					v.Transparency = tp
				end
			end
			for i, v in pairs(trunk.Brake:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = b
				elseif v.Name == "LN" then
					v.Transparency = tp
				end
			end
		end
	end	
end

F.RearLights = function(t, b, tp, te)
	if not te then
		if t == "Halogen" then
			for i, v in pairs(lights.Rear:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
				elseif v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
				end
			end
		elseif t == "LED" then
			for i, v in pairs(lights.Rear:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = b
				elseif v.Name == "LN" then
					v.Transparency = tp
				end
			end
		end
	else
		if t == "Halogen" then
			for i, v in pairs(lights.Rear:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
				elseif v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
				end
			end
			for i, v in pairs(trunk.Rear:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
				elseif v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
				end
			end
		elseif t == "LED" then
			for i, v in pairs(lights.Rear:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = b
				elseif v.Name == "LN" then
					v.Transparency = tp
				end
			end
			for i, v in pairs(trunk.Rear:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = b
				elseif v.Name == "LN" then
					v.Transparency = tp
				end
			end
		end
	end	
end	

F.DashboardIndicators = function(headlights, indicators, parklights)
	
end

F.Reverse = function(t, b, tp, te)
	if not te then
		if t == "Halogen" then
			for i, v in pairs(lights.Reverse:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
				elseif v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
				end
			end
		elseif t == "LED" then
			for i, v in pairs(lights.Reverse:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = b
				elseif v.Name == "LN" then
					v.Transparency = tp
				end
			end
		end
	else
		if t == "Halogen" then
			for i, v in pairs(lights.Reverse:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
				elseif v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
				end
			end
			for i, v in pairs(trunk.Reverse:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					TweenService:Create(v, l_tweeninfo, {Brightness = b}):Play()
				elseif v.Name == "LN" then
					TweenService:Create(v, l_tweeninfo, {Transparency = tp}):Play()
				end
			end
		elseif t == "LED" then
			for i, v in pairs(lights.Reverse:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = b
				elseif v.Name == "LN" then
					v.Transparency = tp
				end
			end
			for i, v in pairs(trunk.Reverse:GetDescendants()) do
				if v:IsA("Light") and v.Name == "L" then
					v.Brightness = b
				elseif v.Name == "LN" then
					v.Transparency = tp
				end
			end
		end
	end	
end

function intLights()
	if intlights then
		local center_override = false
		local front_override = false
		local door_open = false
		local int_triggers = car.Body:FindFirstChild("InteriorTriggers")
		local event1 = int_triggers:FindFirstChild("OverrideTriggers")
		if #doors > 0 and doorFunction then
			for i, v in pairs(doors) do
				local event2 = v:FindFirstChild("EpicLightsDoor")
				event2.Event:Connect(function(s)
					door_open = s
					if s then
						for i, v in pairs(lights.Interior:GetDescendants()) do
							if v.Name == "L" and v:IsA("SpotLight") and not front_override then
								TweenService:Create(v, l_tweeninfo, {Brightness = 0.5, Range = 9}):Play()
							elseif v.Name == "L" and v:IsA("PointLight") and not center_override then
								TweenService:Create(v, l_tweeninfo, {Brightness = 0.5, Range = 9}):Play()
							elseif v.Name == "FLN" and not front_override then
								TweenService:Create(v, l_tweeninfo, {Transparency = 0.2}):Play()
							elseif v.Name == "CLN" and not center_override then
								TweenService:Create(v, l_tweeninfo, {Transparency = 0.2}):Play()
							end
						end
					else
						for i, v in pairs(lights.Interior:GetDescendants()) do
							if v.Name == "L" and v:IsA("SpotLight") and not front_override then
								TweenService:Create(v, l_tweeninfo, {Brightness = 0, Range = 0}):Play()
							elseif v.Name == "L" and v:IsA("PointLight") and not center_override then
								TweenService:Create(v, l_tweeninfo, {Brightness = 0, Range = 0}):Play()
							elseif v.Name == "FLN" and not front_override then
								TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
							elseif v.Name == "CLN" and not center_override then
								TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
							end
						end
					end
				end)
			end
		end	
		event1.Event:Connect(function(s, t)
			if t == "Center" then
				center_override = s
				if not door_open then
					if s then
						for i, v in pairs(lights.Interior:GetDescendants()) do
							if v.Parent.Name == "CenterL" and v:IsA("PointLight") then
								TweenService:Create(v, l_tweeninfo, {Brightness = 0.5, Range = 9}):Play()
							elseif v.Name == "CLN" then
								TweenService:Create(v, l_tweeninfo, {Transparency = 0.2}):Play()
							end
						end
					else
						for i, v in pairs(lights.Interior:GetDescendants()) do
							if v.Parent.Name == "CenterL" and v:IsA("PointLight") then
								TweenService:Create(v, l_tweeninfo, {Brightness = 0, Range = 0}):Play()
							elseif v.Name == "CLN" then
								TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
							end
						end
					end
				end	
			elseif t == "Front" then
				front_override = s
				if not door_open then
					if s then
						for i, v in pairs(lights.Interior:GetDescendants()) do
							if v.Parent.Name == "FrontL" and v:IsA("SpotLight") then
								TweenService:Create(v, l_tweeninfo, {Brightness = 0.5, Range = 9}):Play()
							elseif v.Name == "FLN" then
								TweenService:Create(v, l_tweeninfo, {Transparency = 0.2}):Play()
							end
						end
					else
						for i, v in pairs(lights.Interior:GetDescendants()) do
							if v.Parent.Name == "FrontL" and v:IsA("SpotLight") then
								TweenService:Create(v, l_tweeninfo, {Brightness = 0, Range = 0}):Play()
							elseif v.Name == "FLN" then
								TweenService:Create(v, l_tweeninfo, {Transparency = 1}):Play()
							end
						end
					end
				end	
			end
		end)	
	end	
end	
	
F.IndsOnLeave = function(left, right, hazard, sequential, segs, fr, type)
	event.IndicatorsAfterLeave.Disabled = false
	wait()
	leaveseatevent:Fire(left, right, hazard, sequential, segs, fr, type)
end

event.OnServerEvent:Connect(function(pl, Fnc, ...)
	F[Fnc](...)
end) -- 1627 lines previously
