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

Why does the guis only work on reset? (Very easy?)

game.StarterGui.Catalog.Enabled = true
game.Lighting.SpectatorGUI.Enabled = true

2 comments

0

Is there an ouptut error?

0

No

2 answers

The StarterGui service clones the children inside it into the LocalPlayer's PlayerGui. So if we have a GUI with text inside there that says "Hello World!", it shows up on the screen as "Hello World!". If we change it inside the StarterGui, it doesn't get changed immediately. But if we reset after changing the text inside StarterGui, the children inside gets cloned again to the PlayerGui, making changes visible. If we change it inside the PlayerGui, you see the changes instantly. So rewrite it as this:

game.Players.LocalPlayer.PlayerGui.Catalog.Enabled = true

Hope I helped! If this was too hard for you to understand, just comment my answer.

Change your code: game.Players.LocalPlayer.PlayerGui.Catalog.Enabled = true

2 comments

0

Please explain your answer. Just giving them the correct code does nothing to help them learn.

0

I've been talking to him in chat. Remove the downvote.

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