function RoomManager.init()local Q=CollectionService:GetTagged(Constants.Tag.Room)for Q,Y in pairs(Q)do local G=rooms:add(Y)G.stateChanged:Connect(RoomManager._updateStatusValues)end RoomManager._flashAlerts()RoomManager._updateStatusValues();(workspace:GetPropertyChangedSignal("\071\114\097\118\105\116\121")):Connect(function()if workspace.Gravity==0 then for Q,Y in pairs(rooms:getAll())do Y:applyMicroVelocityToParts()end end end)end
--[[
	Init function that creates all the rooms
]]
function RoomManager.init()
	local roomModels = CollectionService:GetTagged(Constants.Tag.Room)

	for _, model in pairs(roomModels) do
		local room = rooms:add(model)

		room.stateChanged:Connect(RoomManager._updateStatusValues)
	end

	RoomManager._flashAlerts()
	RoomManager._updateStatusValues()

	workspace:GetPropertyChangedSignal("Gravity"):Connect(function()
		if workspace.Gravity == 0 then
			for _, room in pairs(rooms:getAll()) do
				room:applyMicroVelocityToParts()
			end
		end
	end)
end
