local S={{255;255,255};{255,180;161},{226,231;255}}local b={{255;255,255},{255;237,199};{205,227,255}}local l={255;130,80}local B=false local J F.Setup=function(B,J,t,d)event.IndicatorsAfterLeave.Disabled=true for S,b in pairs(lights.Brake:GetChildren())do if b.Name=="\076"and#b:GetChildren()<1 then local S=Instance.new("\083\112\111\116\076\105\103\104\116",b)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Back S.Color=Color3.fromRGB(255,0,0)S.Shadows=true elseif b.Name=="\076\078"then if b:IsA("\077\101\115\104\080\097\114\116")then b.TextureID=""end b.Material=Enum.Material.Neon b.Color=Color3.fromRGB(255,96,96)b.Transparency=1 end end for S,b in pairs(lights.Rear:GetChildren())do if b.Name=="\076"and#b:GetChildren()<1 then local S=Instance.new("\083\112\111\116\076\105\103\104\116",b)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Back S.Color=Color3.fromRGB(255,0,0)S.Shadows=true elseif b.Name=="\076\078"then if b:IsA("\077\101\115\104\080\097\114\116")then b.TextureID=""end b.Material=Enum.Material.Neon b.Color=Color3.fromRGB(255,96,96)b.Transparency=1 end end for S,b in pairs(lights.Reverse:GetChildren())do if b.Name=="\076"and#b:GetChildren()<1 then local S=Instance.new("\083\112\111\116\076\105\103\104\116",b)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Back S.Color=Color3.fromRGB(255,255,255)S.Shadows=true elseif b.Name=="\076\078"then if b:IsA("\077\101\115\104\080\097\114\116")then b.TextureID=""end b.Material=Enum.Material.Neon b.Color=Color3.fromRGB(255,255,255)b.Transparency=1 end end for S,b in pairs(lights.LeftInd:GetDescendants())do if b.Name=="\076"and(b.Parent.Name=="\070\114\111\110\116"and#b:GetChildren()<1)then local S=Instance.new("\083\112\111\116\076\105\103\104\116",b)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Front S.Color=Color3.fromRGB(l[1],l[2],l[3])S.Shadows=true elseif b.Name=="\076"and(b.Parent.Name=="\082\101\097\114"and#b:GetChildren()<1)then local S=Instance.new("\083\112\111\116\076\105\103\104\116",b)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Back S.Color=Color3.fromRGB(l[1],l[2],l[3])S.Shadows=true elseif b.Name=="\076"and(b.Parent.Name=="\083\105\100\101"and#b:GetChildren()<1)then local S=Instance.new("\083\112\111\116\076\105\103\104\116",b)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Left S.Color=Color3.fromRGB(l[1],l[2],l[3])S.Shadows=true elseif b.Name=="\076\078"then if b:IsA("\077\101\115\104\080\097\114\116")then b.TextureID=""end b.Material=Enum.Material.Neon b.Color=Color3.fromRGB(l[1],l[2],l[3])b.Transparency=1 elseif string.sub(b.Name,1,2)=="\083\073"then if b:IsA("\077\101\115\104\080\097\114\116")then b.TextureID=""end b.Material=Enum.Material.Neon b.Color=Color3.fromRGB(l[1],l[2],l[3])b.Transparency=1 end end for S,b in pairs(lights.RightInd:GetDescendants())do if b.Name=="\076"and(b.Parent.Name=="\070\114\111\110\116"and#b:GetChildren()<1)then local S=Instance.new("\083\112\111\116\076\105\103\104\116",b)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Front S.Color=Color3.fromRGB(l[1],l[2],l[3])S.Shadows=true elseif b.Name=="\076"and(b.Parent.Name=="\082\101\097\114"and#b:GetChildren()<1)then local S=Instance.new("\083\112\111\116\076\105\103\104\116",b)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Back S.Color=Color3.fromRGB(l[1],l[2],l[3])S.Shadows=true elseif b.Name=="\076"and(b.Parent.Name=="\083\105\100\101"and#b:GetChildren()<1)then local S=Instance.new("\083\112\111\116\076\105\103\104\116",b)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Right S.Color=Color3.fromRGB(l[1],l[2],l[3])S.Shadows=true elseif b.Name=="\076\078"then if b:IsA("\077\101\115\104\080\097\114\116")then b.TextureID=""end b.Material=Enum.Material.Neon b.Color=Color3.fromRGB(l[1],l[2],l[3])b.Transparency=1 elseif string.sub(b.Name,1,2)=="\083\073"then if b:IsA("\077\101\115\104\080\097\114\116")then b.TextureID=""end b.Material=Enum.Material.Neon b.Color=Color3.fromRGB(l[1],l[2],l[3])b.Transparency=1 end end for S,b in pairs(t)do b.ImageTransparency=1 end if not J then if B=="\080\117\114\101 \087\104\105\116\101"then for l,B in pairs(lights.Headlights:GetDescendants())do if B.Name=="\076"and#B:GetChildren()<1 then local S=Instance.new("\083\112\111\116\076\105\103\104\116",B)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Front S.Color=Color3.fromRGB(b[1][1],b[1][2],b[1][3])S.Shadows=true elseif B.Name=="\076\078"then if B:IsA("\077\101\115\104\080\097\114\116")then B.TextureID=""end B.Material=Enum.Material.Neon B.Color=Color3.fromRGB(S[1][1],S[1][2],S[1][3])B.Transparency=1 end end elseif B=="\079\069\077 \087\104\105\116\101"then for l,B in pairs(lights.Headlights:GetDescendants())do if B.Name=="\076"and#B:GetChildren()<1 then local S=Instance.new("\083\112\111\116\076\105\103\104\116",B)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Front S.Color=Color3.fromRGB(b[2][1],b[2][2],b[2][3])S.Shadows=true elseif B.Name=="\076\078"then if B:IsA("\077\101\115\104\080\097\114\116")then B.TextureID=""end B.Material=Enum.Material.Neon B.Color=Color3.fromRGB(S[2][1],S[2][2],S[2][3])B.Transparency=1 end end elseif B=="\088\101\110\111\110"then for l,B in pairs(lights.Headlights:GetDescendants())do if B.Name=="\076"and#B:GetChildren()<1 then local S=Instance.new("\083\112\111\116\076\105\103\104\116",B)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Front S.Color=Color3.fromRGB(b[3][1],b[3][2],b[3][3])S.Shadows=true elseif B.Name=="\076\078"then if B:IsA("\077\101\115\104\080\097\114\116")then B.TextureID=""end B.Material=Enum.Material.Neon B.Color=Color3.fromRGB(S[3][1],S[3][2],S[3][3])B.Transparency=1 end end end else if B=="\080\117\114\101 \087\104\105\116\101"then for l,B in pairs(PHeadlights.Parts.Headlights:GetChildren())do if B.Name=="\076"and#B:GetChildren()<1 then local S=Instance.new("\083\112\111\116\076\105\103\104\116",B)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Front S.Color=Color3.fromRGB(b[1][1],b[1][2],b[1][3])S.Shadows=true elseif B.Name=="\076\078"then if B:IsA("\077\101\115\104\080\097\114\116")then B.TextureID=""end B.Material=Enum.Material.Neon B.Color=Color3.fromRGB(S[1][1],S[1][2],S[1][3])B.Transparency=1 end end elseif B=="\079\069\077 \087\104\105\116\101"then for l,B in pairs(PHeadlights.Parts.Headlights:GetChildren())do if B.Name=="\076"and#B:GetChildren()<1 then local S=Instance.new("\083\112\111\116\076\105\103\104\116",B)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Front S.Color=Color3.fromRGB(b[2][1],b[2][2],b[2][3])S.Shadows=true elseif B.Name=="\076\078"then if B:IsA("\077\101\115\104\080\097\114\116")then B.TextureID=""end B.Material=Enum.Material.Neon B.Color=Color3.fromRGB(S[2][1],S[2][2],S[2][3])B.Transparency=1 end end elseif B=="\088\101\110\111\110"then for l,B in pairs(PHeadlights.Parts.Headlights:GetChildren())do if B.Name=="\076"and#B:GetChildren()<1 then local S=Instance.new("\083\112\111\116\076\105\103\104\116",B)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Front S.Color=Color3.fromRGB(b[3][1],b[3][2],b[3][3])S.Shadows=true elseif B.Name=="\076\078"then if B:IsA("\077\101\115\104\080\097\114\116")then B.TextureID=""end B.Material=Enum.Material.Neon B.Color=Color3.fromRGB(S[3][1],S[3][2],S[3][3])B.Transparency=1 end end end end for S,b in pairs(lights.Fog:GetChildren())do if b.Name=="\076"then local S=Instance.new("\083\112\111\116\076\105\103\104\116",b)S.Name="\076"S.Brightness=0 S.Range=0 S.Face=Enum.NormalId.Front S.Color=d S.Shadows=true elseif b.Name=="\076\078"then if b:IsA("\077\101\115\104\080\097\114\116")then b.TextureID=""end b.Material=Enum.Material.Neon b.Color=d b.Transparency=1 end end print("\069\112\105\099\076\105\103\104\116\115 \086\101\114\115\105\111\110 \050 \047\047 \083\101\116\117\112 \099\111\109\112\108\101\116\101\100\033")end


local Pcolors = {{255, 255, 255}, {255, 180, 161}, {226, 231, 255}}
local Lcolors = {{255, 255, 255}, {255, 237, 199}, {205, 227, 255}}

local INDcolor = {255, 130, 80}
local plactive = false
local prevChild

F.Setup = function(light_type, popups, tb, fog_color)
	event.IndicatorsAfterLeave.Disabled = true
	for idx, child in pairs(lights.Brake:GetChildren()) do
		if child.Name == "L" and #child:GetChildren() < 1  then
			local spot = Instance.new("SpotLight", child)
			spot.Name = "L"
			spot.Brightness = 0
			spot.Range = 0
			spot.Face = Enum.NormalId.Back
			spot.Color = Color3.fromRGB(255, 0, 0)
			spot.Shadows = true
		elseif child.Name == "LN" then
			if child:IsA("MeshPart") then
				child.TextureID = ""
			end
			child.Material = Enum.Material.Neon
			child.Color = Color3.fromRGB(255, 96, 96)
			child.Transparency = 1					
		end	 
	end
	
	for idx, child in pairs(lights.Rear:GetChildren()) do
		if child.Name == "L" and #child:GetChildren() < 1 then
			local spot = Instance.new("SpotLight", child)
			spot.Name = "L"
			spot.Brightness = 0
			spot.Range = 0
			spot.Face = Enum.NormalId.Back
			spot.Color = Color3.fromRGB(255, 0, 0)
			spot.Shadows = true
		elseif child.Name == "LN" then
			if child:IsA("MeshPart") then
				child.TextureID = ""
			end
			child.Material = Enum.Material.Neon
			child.Color = Color3.fromRGB(255, 96, 96)
			child.Transparency = 1				
		end	 
	end
	
	for idx, child in pairs(lights.Reverse:GetChildren()) do
		if child.Name == "L" and #child:GetChildren() < 1 then		
			local spot = Instance.new("SpotLight", child)
			spot.Name = "L"
			spot.Brightness = 0
			spot.Range = 0
			spot.Face = Enum.NormalId.Back
			spot.Color = Color3.fromRGB(255, 255, 255)
			spot.Shadows = true
		elseif child.Name == "LN" then
			if child:IsA("MeshPart") then
				child.TextureID = ""
			end
			child.Material = Enum.Material.Neon
			child.Color = Color3.fromRGB(255, 255, 255)
			child.Transparency = 1				
		end	 
	end
	
	for idx, child in pairs(lights.LeftInd:GetDescendants()) do
		if child.Name == "L" and child.Parent.Name == "Front" and #child:GetChildren() < 1 then
			local spot = Instance.new("SpotLight", child)
			spot.Name = "L"
			spot.Brightness = 0
			spot.Range = 0
			spot.Face = Enum.NormalId.Front
			spot.Color = Color3.fromRGB(INDcolor[1], INDcolor[2], INDcolor[3])
			spot.Shadows = true
		elseif child.Name == "L" and child.Parent.Name == "Rear" and #child:GetChildren() < 1 then			
			local spot = Instance.new("SpotLight", child)
			spot.Name = "L"
			spot.Brightness = 0
			spot.Range = 0
			spot.Face = Enum.NormalId.Back
			spot.Color = Color3.fromRGB(INDcolor[1], INDcolor[2], INDcolor[3])	
			spot.Shadows = true
		elseif child.Name == "L" and child.Parent.Name == "Side" and #child:GetChildren() < 1 then
			local spot = Instance.new("SpotLight", child)
			spot.Name = "L"
			spot.Brightness = 0
			spot.Range = 0
			spot.Face = Enum.NormalId.Left
			spot.Color = Color3.fromRGB(INDcolor[1], INDcolor[2], INDcolor[3])
			spot.Shadows = true
		elseif child.Name == "LN" then
			if child:IsA("MeshPart") then
				child.TextureID = ""
			end
			child.Material = Enum.Material.Neon
			child.Color = Color3.fromRGB(INDcolor[1], INDcolor[2], INDcolor[3])
			child.Transparency = 1							
		elseif string.sub(child.Name, 1, 2) == "SI" then
			if child:IsA("MeshPart") then
				child.TextureID = ""
			end
			child.Material = Enum.Material.Neon
			child.Color = Color3.fromRGB(INDcolor[1], INDcolor[2], INDcolor[3])
			child.Transparency = 1	
		end	 
	end
	
	for idx, child in pairs(lights.RightInd:GetDescendants()) do
		if child.Name == "L" and child.Parent.Name == "Front" and #child:GetChildren() < 1 then
			local spot = Instance.new("SpotLight", child)
			spot.Name = "L"
			spot.Brightness = 0
			spot.Range = 0
			spot.Face = Enum.NormalId.Front
			spot.Color = Color3.fromRGB(INDcolor[1], INDcolor[2], INDcolor[3])
			spot.Shadows = true
		elseif child.Name == "L" and child.Parent.Name == "Rear" and #child:GetChildren() < 1 then			
			local spot = Instance.new("SpotLight", child)
			spot.Name = "L"
			spot.Brightness = 0
			spot.Range = 0
			spot.Face = Enum.NormalId.Back
			spot.Color = Color3.fromRGB(INDcolor[1], INDcolor[2], INDcolor[3])
			spot.Shadows = true
		elseif child.Name == "L" and child.Parent.Name == "Side" and #child:GetChildren() < 1 then
			local spot = Instance.new("SpotLight", child)
			spot.Name = "L"
			spot.Brightness = 0
			spot.Range = 0
			spot.Face = Enum.NormalId.Right
			spot.Color = Color3.fromRGB(INDcolor[1], INDcolor[2], INDcolor[3])
			spot.Shadows = true
		elseif child.Name == "LN" then
			if child:IsA("MeshPart") then
				child.TextureID = ""
			end
			child.Material = Enum.Material.Neon
			child.Color = Color3.fromRGB(INDcolor[1], INDcolor[2], INDcolor[3])
			child.Transparency = 1	
		elseif string.sub(child.Name, 1, 2) == "SI" then
			if child:IsA("MeshPart") then
				child.TextureID = ""
			end
			child.Material = Enum.Material.Neon
			child.Color = Color3.fromRGB(INDcolor[1], INDcolor[2], INDcolor[3])
			child.Transparency = 1		
		end	
	end	
	
	for idx, child in pairs(tb) do
		child.ImageTransparency = 1
	end
	
	if not popups then
		if light_type == "Pure White" then
			for idx, child in pairs(lights.Headlights:GetDescendants()) do
				if child.Name == "L" and #child:GetChildren() < 1 then		
					local spot = Instance.new("SpotLight", child)
					spot.Name = "L"
					spot.Brightness = 0
					spot.Range = 0
					spot.Face = Enum.NormalId.Front
					spot.Color = Color3.fromRGB(Lcolors[1][1], Lcolors[1][2], Lcolors[1][3])
					spot.Shadows = true
				elseif child.Name == "LN" then
					if child:IsA("MeshPart") then
						child.TextureID = ""
					end
					child.Material = Enum.Material.Neon
					child.Color = Color3.fromRGB(Pcolors[1][1], Pcolors[1][2], Pcolors[1][3])
					child.Transparency = 1					
				end	 
			end
		elseif light_type == "OEM White" then
			for idx, child in pairs(lights.Headlights:GetDescendants()) do
				if child.Name == "L" and #child:GetChildren() < 1 then
					local spot = Instance.new("SpotLight", child)
					spot.Name = "L"
					spot.Brightness = 0
					spot.Range = 0
					spot.Face = Enum.NormalId.Front
					spot.Color = Color3.fromRGB(Lcolors[2][1], Lcolors[2][2], Lcolors[2][3])
					spot.Shadows = true
				elseif child.Name == "LN" then
					if child:IsA("MeshPart") then
						child.TextureID = ""
					end
					child.Material = Enum.Material.Neon
					child.Color = Color3.fromRGB(Pcolors[2][1], Pcolors[2][2], Pcolors[2][3])
					child.Transparency = 1					
				end	 
			end		
		elseif light_type == "Xenon" then
			for idx, child in pairs(lights.Headlights:GetDescendants()) do
				if child.Name == "L" and #child:GetChildren() < 1 then
					local spot = Instance.new("SpotLight", child)
					spot.Name = "L"
					spot.Brightness = 0
					spot.Range = 0
					spot.Face = Enum.NormalId.Front
					spot.Color = Color3.fromRGB(Lcolors[3][1], Lcolors[3][2], Lcolors[3][3])
					spot.Shadows = true
				elseif child.Name == "LN" then
					if child:IsA("MeshPart") then
						child.TextureID = ""
					end
					child.Material = Enum.Material.Neon
					child.Color = Color3.fromRGB(Pcolors[3][1], Pcolors[3][2], Pcolors[3][3])
					child.Transparency = 1					
				end	 
			end		
		end
	else
		if light_type == "Pure White" then
			for idx, child in pairs(PHeadlights.Parts.Headlights:GetChildren()) do
				if child.Name == "L" and #child:GetChildren() < 1 then		
					local spot = Instance.new("SpotLight", child)
					spot.Name = "L"
					spot.Brightness = 0
					spot.Range = 0
					spot.Face = Enum.NormalId.Front
					spot.Color = Color3.fromRGB(Lcolors[1][1], Lcolors[1][2], Lcolors[1][3])
					spot.Shadows = true
				elseif child.Name == "LN" then
					if child:IsA("MeshPart") then
						child.TextureID = ""
					end
					child.Material = Enum.Material.Neon
					child.Color = Color3.fromRGB(Pcolors[1][1], Pcolors[1][2], Pcolors[1][3])
					child.Transparency = 1					
				end	 
			end
		elseif light_type == "OEM White" then
			for idx, child in pairs(PHeadlights.Parts.Headlights:GetChildren()) do
				if child.Name == "L" and #child:GetChildren() < 1 then
					local spot = Instance.new("SpotLight", child)
					spot.Name = "L"
					spot.Brightness = 0
					spot.Range = 0
					spot.Face = Enum.NormalId.Front
					spot.Color = Color3.fromRGB(Lcolors[2][1], Lcolors[2][2], Lcolors[2][3])
					spot.Shadows = true
				elseif child.Name == "LN" then
					if child:IsA("MeshPart") then
						child.TextureID = ""
					end
					child.Material = Enum.Material.Neon
					child.Color = Color3.fromRGB(Pcolors[2][1], Pcolors[2][2], Pcolors[2][3])
					child.Transparency = 1					
				end	 
			end		
		elseif light_type == "Xenon" then
			for idx, child in pairs(PHeadlights.Parts.Headlights:GetChildren()) do
				if child.Name == "L" and #child:GetChildren() < 1 then
					local spot = Instance.new("SpotLight", child)
					spot.Name = "L"
					spot.Brightness = 0
					spot.Range = 0
					spot.Face = Enum.NormalId.Front
					spot.Color = Color3.fromRGB(Lcolors[3][1], Lcolors[3][2], Lcolors[3][3])
					spot.Shadows = true
				elseif child.Name == "LN" then
					if child:IsA("MeshPart") then
						child.TextureID = ""
					end
					child.Material = Enum.Material.Neon
					child.Color = Color3.fromRGB(Pcolors[3][1], Pcolors[3][2], Pcolors[3][3])
					child.Transparency = 1					
				end	 
			end		
		end		
	end
	for idx, child in pairs(lights.Fog:GetChildren()) do
		if child.Name == "L" then
			local spot = Instance.new("SpotLight", child)
			spot.Name = "L"
			spot.Brightness = 0
			spot.Range = 0
			spot.Face = Enum.NormalId.Front
			spot.Color = fog_color
			spot.Shadows = true
		elseif child.Name == "LN" then
			if child:IsA("MeshPart") then
				child.TextureID = ""
			end
			child.Material = Enum.Material.Neon
			child.Color = fog_color
			child.Transparency = 1	
		end	
	end
	print("EpicLights Version 2 // Setup completed!")
end 

