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

Why does my GUI only show after I reset?

I have a GUI in StarterGui that is already set at visible = false from the properties tab. I have a line of code that makes it visible and changes the Text. However, the GUI does not show up on my screen until AFTER I reset. How can I fix this?

1 comment

0

Please provide script, we are not mind readers.

2 answers

✓ Accepted answer

See, The problem is, is that you're changing the StarterGui, NOT, the playergui. The StarterGui just replicates itself to the player, not changing/updating it.

instead try this:

    for _, Player in pairs(game.Players:GetChildren()) do
        if Player:IsA("Player") then
            Player.PlayerGui.ScreenGui.Frame.TextLabel.Visible = true
        end
    end

1 comment

0

Thanks!

Whats the script? And where is it located?

1 comment

0

Its in the workspace. The code is: game.StarterGui.ScreenGui.Frame.TextLabel.Visible = true

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