Gui will not appear or disappear

I made a GUI that is supposed to appear when this script runs:

game.StarterGui.Rebuild.Enabled = true

However, this doesn’t work. When I try to check the ‘enabled’ box while playing, it still does not appear. If I enable it in the creating part of studio, it appears, and appears in the game, but when I try to make it disappear or appear in game, either by enabling it or setting the background transparency, it doesn’t change. It is centered correctly, but will not appear. Since when I enable it before playing, it appears, I know it is there. Thanks

If you need a Gui to appear, you need to toggle the Enabled property in a player’s PlayerGui. The only purpose of StarterGui is holding initial Gui elements which are cloned to the player’s PlayerGui when they respawn. If you change anything in StarterGui, then those changes will only ever be seen when the player respawns (provided the Gui doesn’t have ResetOnSpawn set to false).

See here: StarterGui

4 Likes