Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

It should remove Leaderboard, Chat, etc. but is this code out-dated because it doesn't work for me?

local StarterGui = game:GetService("StarterGui")

function CoreEnabled ()
	StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
end

if StarterGui ~= nil then CoreEnabled() end

2 answers

SetCoreGuiEnabled only functions properly in a LocalScript

Use a LocalScript.

3 comments

0

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.

0

...localscripts don't work in workspace..

0

LocalScripts don't work in Workspace [2]

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.