function RoomManager._flashAlerts()(coroutine.wrap(function()local B=Color3.fromRGB(255,0,0)local I=Color3.fromRGB(0,0,0)while true do local f={}for B,I in pairs(RoomManager.getRooms())do if not I:isPressurized()then local B=(I:getModel()).AlertLights:GetChildren()for B,I in pairs(B)do table.insert(f,I)end end end for I,f in pairs(f)do local Z=f:FindFirstChild("\076\097\109\112")local c=(Z:FindFirstChild("\066\117\108\098")):FindFirstChild("\076\105\103\104\116")c.Enabled=true Z.Part.Color=B end wait(1)for B,f in pairs(f)do local Z=f:FindFirstChild("\076\097\109\112")local c=(Z:FindFirstChild("\066\117\108\098")):FindFirstChild("\076\105\103\104\116")c.Enabled=false Z.Part.Color=I end wait(1)end end))()end function RoomManager.resetRooms()for B,I in pairs(rooms:getAll())do I:reset()end end

function RoomManager._flashAlerts()
	coroutine.wrap(
		function()
			local onColor = Color3.fromRGB(255, 0, 0)
			local offColor = Color3.fromRGB(0, 0, 0)
			while true do
				local allAlerts = {}

				for _, room in pairs(RoomManager.getRooms()) do
					if not room:isPressurized() then
						local alerts = room:getModel().AlertLights:GetChildren()
						for _, alert in pairs(alerts) do
							table.insert(allAlerts, alert)
						end
					end
				end

				for _, alert in pairs(allAlerts) do
					local lamp = alert:FindFirstChild("Lamp")
					local light = lamp:FindFirstChild("Bulb"):FindFirstChild("Light")

					light.Enabled = true
					lamp.Part.Color = onColor
				end

				wait(1)

				for _, alert in pairs(allAlerts) do
					local lamp = alert:FindFirstChild("Lamp")
					local light = lamp:FindFirstChild("Bulb"):FindFirstChild("Light")

					light.Enabled = false
					lamp.Part.Color = offColor
				end

				wait(1)
			end
		end
	)()
end

function RoomManager.resetRooms()
	for _, room in pairs(rooms:getAll()) do
		room:reset()
	end
end
