game.StarterGui.Catalog.Enabled = true game.Lighting.SpectatorGUI.Enabled = true
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