--LIGHTS BUTTONS

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