What I would do, is use the PlayerAdded and PlayerRemoving events. Here's an example:
This code will print [Player's Name] Has joined the server
when a new player is added and [Player Name] Has left the server
When the player leaves:
1 | game.Players.PlayerAdded:connect( function (player) |
2 | print (player.Name.. " Has Joined the Game" ) |
5 | game.Players.PlayerRemoving:connect( function (player) |
6 | print (player.Name.. " Has left the game." ) |
So by using these events, you can easily:
Clone the GUI (When the player enters)
Edit the GUI (You're choice how)
Remove the GUI (by using :Destroy()
)
Hope I helped :D Feel free to PM me if you have any more trouble with this.