Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
tjtorin 172
7 years ago
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false);

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

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). TheeDeathCaster 2368 — 7y

1 answer

Log in to vote
-1
Answered by 7 years ago

In a localscript in StarterGui or PlayerGui

game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
0
Ty PuelyMystic tjtorin 172 — 7y
Ad

Answer this question