function GuiController.getOtherScreenGuis(l)local O=Cryo.List.filter(l.player.PlayerGui:GetDescendants(),function(O)local h=false for l,A in ipairs(l.whitelist)do if A:getValue()==O then h=true break end end return O:IsA("\083\099\114\101\101\110\071\117\105")and(O.Enabled and not h)end)return O end function GuiController.getShownCoreGuis(l)local O=Cryo.List.filter(Enum.CoreGuiType:GetEnumItems(),function(O)return l.StarterGui:GetCoreGuiEnabled(O)end)return O end return GuiController
-- Returns all screen GUI objects
function GuiController:getOtherScreenGuis()
	local instances = Cryo.List.filter(self.player.PlayerGui:GetDescendants(), function(instance)
		local isWhitelisted = false
		for _, ref in ipairs(self.whitelist) do
			if ref:getValue() == instance then
				isWhitelisted = true
				break
			end
		end

		return instance:IsA("ScreenGui") and instance.Enabled and not isWhitelisted
	end)

	return instances
end

function GuiController:getShownCoreGuis()
	local shownCoreGuis = Cryo.List.filter(Enum.CoreGuiType:GetEnumItems(), function(coreGuiType)
		return self.StarterGui:GetCoreGuiEnabled(coreGuiType)
	end)

	return shownCoreGuis
end

return GuiController
