I want to make a gui that tweens up on the players screen after a round ends displaying all the players that survived and haven’t died once, and then after a few amount of seconds it tweens back down. Here is a photo of the list that should display the players username and profile picture:
I also want to make it so they gain 1 Survival point on the leaderboard (I know how to make the leaderboard statistics).
I was wondering if I had to place the character model of the player inside a folder that the game uses to somehow count the amount of players that are inside and then display their name on the list after the round ends.
I am new to coding and I am still learning on what I could do.
To get players survivors use a team, get all players in the survivor team, and get their picture with Player Service and their username with Player.Name
Next Clone the frame for all remaining players
So what do I do when one of the players die once, how do I remove them from a team? When Players die, they spawn back in the map just to keep playing but I don’t want them to count as surviving
Maybe you could make a kick system if you use TeleportService to reserve a server.
If you don’t want to kick them, make two teams.
Name one of the both “Survivors” and the other one “Neutral” or whatever.
Make a ServerScript and put it in ServerScriptService.
When the round begins, put everyone in the Survivors team.
Then, get everyone’s humanoid.
Once you did that, make that when someone dies, he is now in the Neutral team.
After this, make a function that activates when only one player is still in the Survivor team.
Get the survivor’s name and picture like @Saturna19_fr told you to do.
I can make the code for you but surely not today.
Don’t forget to have fun developing!
Don’t hesitate to ask me any question about your issue.
It’s not a last man standing, sorry for not being very clear. When the round ends the list will display the players that haven’t died a single time during the round, and will not display the players that have died once or whatever amount of times they did, if every player died once or more then there would be text in the middle saying nobobdy survived.