function GuiController.getOtherScreenGuis(i)local l=Cryo.List.filter(i.player.PlayerGui:GetDescendants(),function(l)local T=false for i,S in ipairs(i.whitelist)do if S:getValue()==l then T=true break end end return l:IsA("\083\099\114\101\101\110\071\117\105")and(l.Enabled and not T)end)return l end function GuiController.getShownCoreGuis(i)local l=Cryo.List.filter(Enum.CoreGuiType:GetEnumItems(),function(l)return i.StarterGui:GetCoreGuiEnabled(l)end)return l end return GuiController

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
