How do i check if all guis are hidden?


hello! i’m making a windows-like ui and i want to check if all coreguis are hidden. by hidden guis i mean all coreguis that can be hidden using ctrl+shift+g.

i tried searching but didn’t find anything, so help would be appreciated :3

CoreGui as in the Roblox Core GUIs?

yes, exactly that.

30 goddamn chars

game.StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.All) -- will print out true or false if all the UI is enabled or not

i already tried that, it’s like it just doesn’t work with ctrl+shift+g

I mean if you wanna hide them doing ctrl+shift+g, then just do this:

local function toggleCoreGui()
	local enabled = game.StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.All)
	game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, not enabled)

The script gets the current state of the core gui (if its enabled or not), then just enables/disables it based off the current state. So if it’s enabled, it’ll disable it. If it’s disabled, it’ll enable it.

okay, i guess this is a better approach than checking for the guis

it’s just that ctrl+shift+g hides the roblox menu icon too.

thanks for the help!

Pretty sure it doesn’t do that. It can hide all the core gui except for the actual menu icon.