local StarterGui = game:GetService("StarterGui")
function CoreEnabled ()
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
end
if StarterGui ~= nil then CoreEnabled() end
COMMUNITY QUESTION
It should remove Leaderboard, Chat, etc. but is this code out-dated because it doesn't work for me?
2 answers
SetCoreGuiEnabled only functions properly in a LocalScript
Use a LocalScript.
It's an easy, 1 line code.
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
1 comment
0
Doesn't work for me sorry, idk what's wrong with it.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
I alredy did, i found that on the wiki but it doesn't work, i copy'd the exact same code as it from the Local Script that's located in the Workspace.
...localscripts don't work in workspace..
LocalScripts don't work in Workspace [2]