for g,n in pairs(lights:GetChildren())do if n:IsA("\073\109\097\103\101\066\117\116\116\111\110")and n.Name~="\104\101\097\100\101\114"then if string.match(n.Name,"\037\108\043")=="\116\100"then n.MouseButton1Click:connect(function()script.Parent.lighty.Value=tonumber(string.match(n.Name,"\037\100"))if script.Parent.lighty.Value==0 then seat.Parent.SSC.Beep:Play()elseif script.Parent.lighty.Value==1 then seat.Parent.SSC.Beep:Play()elseif script.Parent.lighty.Value==2 then seat.Parent.SSC.Beep:Play()elseif script.Parent.lighty.Value==3 then seat.Parent.SSC.Beep:Play()elseif script.Parent.lighty.Value==4 then seat.Parent.SSC.Beep:Play()end end)elseif string.match(n.Name,"\037\108\043")=="\102\108"then n.MouseButton1Click:connect(function()script.Parent.flasher.Value=tonumber(string.match(n.Name,"\037\100"))if script.Parent.flasher.Value==0 then seat.Parent.SSC.Beep:Play()elseif script.Parent.flasher.Value==1 then seat.Parent.SSC.Beep:Play()elseif script.Parent.flasher.Value==2 then seat.Parent.SSC.Beep:Play()elseif script.Parent.flasher.Value==3 then seat.Parent.SSC.Beep:Play()elseif script.Parent.flasher.Value==4 then seat.Parent.SSC.Beep:Play()end end)end end end

for _,i in pairs(lights:GetChildren()) do
	if i:IsA("ImageButton") and i.Name ~= "header" then
		if string.match(i.Name,"%l+") == "td" then
			i.MouseButton1Click:connect(function()
				script.Parent.lighty.Value = tonumber(string.match(i.Name,"%d"))
				if script.Parent.lighty.Value == 0 then
					seat.Parent.SSC.Beep:Play()
				elseif script.Parent.lighty.Value == 1 then
					seat.Parent.SSC.Beep:Play()
				elseif script.Parent.lighty.Value == 2 then
					seat.Parent.SSC.Beep:Play()
				elseif script.Parent.lighty.Value == 3 then
					seat.Parent.SSC.Beep:Play()
				elseif script.Parent.lighty.Value == 4 then
					seat.Parent.SSC.Beep:Play()						
				end
			end)
		elseif string.match(i.Name,"%l+") == "fl" then
			i.MouseButton1Click:connect(function()
				script.Parent.flasher.Value = tonumber(string.match(i.Name,"%d"))
				if script.Parent.flasher.Value == 0 then
					seat.Parent.SSC.Beep:Play()
				elseif script.Parent.flasher.Value == 1 then
					seat.Parent.SSC.Beep:Play()
				elseif script.Parent.flasher.Value == 2 then
					seat.Parent.SSC.Beep:Play()
				elseif script.Parent.flasher.Value == 3 then
					seat.Parent.SSC.Beep:Play()
				elseif script.Parent.flasher.Value == 4 then
					seat.Parent.SSC.Beep:Play()			
				end
			end)
		end
	end
end