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

My backpack does not hide with the code I am using?

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

I am trying to hide my backpack and it works in studio but not in game?

1 comment

2

Are you using a LocalScript? If not, and you're using a server-side instead, "SetCoreGuiEnabled" can not be used in/ with a server-side (regular Script).

1 answer

✓ Accepted answer

In a localscript in StarterGui or PlayerGui

game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

1 comment

0

Ty PuelyMystic

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