Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I made a GUI, and I don't want it to come up when I reset?!?

Asked by 9 years ago

Any answers?

thanks

1 answer

Log in to vote
0
Answered by 9 years ago

Have the GUI put into the PlayerGui once the player has been added to the game, but don't add it whenever the character respawns. You can do this by utilizing the PlayerAdded event, like so:

game.Players.PlayerAdded:connect(function(Player)
    local GUI = script.GUI:Clone()
    GUI.Parent = Player.PlayerGui
end)

This event only fires once a player has been added to the game, so it will only fire once for each player. Meaning that the GUI will only show up once. Hope this helped!

Ad

Answer this question