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

How do I make this GUI popup ONLY when a player enters the game? [Solved]

I want to make this GUI appear only when the player enters the game. I don't want it to show up every time to die and respawn.

(I need the WELCOME Frame to appear when a player enters)

Image: https://gyazo.com/da31c185d424e72740cefc76df300618

EDIT: So I was able to make it pop up when the player enters the game, but I can't make it so it doesn't show up after death respawn.

EDIT 2: So I figured it out now, but thanks anyways for the help!

2 comments

0

Check the wiki for the PlayerAdded event.

0

I'm not a scripter, so I don't understand it, sorry.

2 answers

Try using PlayerAdded which fires when a player enters the game.

Example

game.Players.PlayerAdded:connect(function(player)
	print("A player has entered: " .. player.Name)
end)

2 comments

0

And then instead of printing, you would clone a GUI from ServerStorage to the player.PlayerGui.

0

:connect() is now :Connect()

Try making the screen gui visible then having a close screen gui script which will hide the gui.

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