Disabling CoreGui elements seem to not always do its thing

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

These two lines seem to disable Backpack and the Leaderboard. However, it does it sometimes; sometimes, it will disable it and sometimes it’ll leave it unchanged.

Example with both lines active:
image

How do I make sure they get disabled 100% at all times?

Try putting the script into ReplicatedFirst, see if that makes any difference.

1 Like

I can’t replicate this error, but you should put it in a localscript in starterPlayerScripts if you haven’t already.

1 Like

Unfortunately, it didn’t do the trick; thanks tho!

Thanks! This seems to work more efficiently than where I originally put it at.