I have an existing menu, and tried StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
in a localscript in the startergui, and a line just like it but with true instead inside of the button. However, the coregui does not go away.
There’s not enough information in your post. The same way you wrote it for false will work for true, so what’s the actual problem you’re facing? You need to supply far more details than “it works one way but not the other” because that’s definitely an implementation problem.
Two things I can think of off the top of my head while assuming the circumstances you’re working with are that you aren’t using a LocalScript for a Gui which isn’t correct to be doing (you should always interacting with Guis from the client and never the server), or you have an error in your console that’s blocking SetCoreGuiEnabled from getting reached and you never checked what it is.
If it’s the top bar you’re talking about, that cannot be disabled with StarterGui:SetCoreGuiEnabled()
. Try using StarterGui:SetCore("TopbarEnabled", false)
.
It turns out I forgot to call a service.
local StarterGui = game:GetService("StarterGui") StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
works