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

Why does this only work in studio?

This only works in studio...

It's a regular script.

game:GetService("StarterGui"):SetCoreGuiEnabled("PlayerList", false)
game:GetService("StarterGui"):SetCoreGuiEnabled("Health", false)
game:GetService("StarterGui"):SetCoreGuiEnabled("Backpack", false)

2 comments

0

Is this a LocalScript or a Script?

0

Regular Script.

2 answers

Put the script inside of a LocalScript.

2 comments

0

It won't work in studio. I think it might work.

0

Did you put it into StarterGui or StarterPack?

I guess you have to use a enum to get through security?

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList,false)
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health,false)
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,false)

3 comments

0

Doesn't work for me...

0

and game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)? What about while not game.StarterGui do wait() end game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)

0

game:GetService("StarterGui") is the same thing as game.StarterGui. I tried to do Enum but didn't work in both studio or in game.

This discussion is preserved as it was. New answers, comments, and votes are closed.