Hi, I'm having a ton of trouble with this script. I want to make a GUI like those GUIs in survival games where it pops up an has all of the names of the players who survived the round. I need my GUI to show the names of all of the players in a team called "Survivors". I have a script (below) but it doesn't work and I'm fairly sure that it is REALLY REALLY wrong so I could really use some help. This script is a regular script inside a text label that is inside of a frame inside the GUI. Thanks in advance, I really appreciate the help, if you have any questions please comment them below and I'll try to answer them ASAP.
local player = game.Teams.Survivors:GetPlayers()
while script.Parent.Parent.Parent.Parent.Enabled == true do
script.Parent.Text = print.player.Name
end
Again, I know this script sucks but I can't figure out how to fix it.

11 comments
Ok, I'll try it, thanks for your help, I'll let you know how it works :)
HANGON. Local script? Bad and not fitering practical.
Looking nowI think it can be a normal script
I tested, can be a normal script
Could you add a part at the beginning that makes it regenerate the names every second? Because right now it only works if the player starts out on the blue team but i need it to work if the player joined that team after spawning on another without respawning in between if that makes sense
The second one now will aways be updated
(Every 3 seconds)
ok thanks i'll test it
This script works PERFECTLY, I can't even tell you what a HUGE help this has been, thank you so much
I know how you can say I helped, approve my answer
Oh dang, you're right totally forgot to do that my bad