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

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

Asked by 7 years ago
Edited by OldPalHappy 7 years ago

This question has been solved by the original poster.

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!

0
Check the wiki for the PlayerAdded event. GoldenPhysics 474 — 7y
0
I'm not a scripter, so I don't understand it, sorry. Darkalibur 0 — 7y

2 answers

Log in to vote
3
Answered by 7 years ago

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)
0
And then instead of printing, you would clone a GUI from ServerStorage to the player.PlayerGui. RubenKan 3615 — 7y
0
:connect() is now :Connect() User#15029 30 — 7y
Ad
Log in to vote
0
Answered by 4 years ago

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

Answer this question