Hi, I'm working on a game and I made a GUI but I am having a hard time with making a script that will make the names of all of the players on a certain team appear on the GUI. Basically, I want to make a GUI like in survival games where a GUI pops up after each round and says "Survivors" and then all of the survivor's names are listed. I need the GUI to show the names of only the players on the team called "Tourists". If anyone could help me with this I would REALLY appreciate it. Anyway, here are some important details:
The name of the GUI is SurvivorsGui Within the SurvivorsGui there is a Frame called SurvivorsPage and within that is another Frame just called Frame. Inside of that is one last Frame called WinnersList THAT IS THE FRAME WHERE THE NAMES OF THE PLAYERS SHOULD BE. Repeat THE PLAYER'S NAMES SHOULD APPEAR IN THE FRAME CALLED WinnersList Any help would be HUGELY appreciated, if you have any questions please feel free to ask in the comments below and I will answer as soon as I can. Thanks :) Skyraider5
This is script helper not a request site, this question sounds more of a request.
First you should get the Teams Service and your teams. Play with this code.
local Teams = game:GetService("Teams") local MyTourists = Teams:WaitForChild("MyTourists") for _,player in pairs(MyTourists:GetPlayers()) do print(player) end
Everything else is self explanatory.
Closed as Not Constructive by theCJarmy7, Programical, and Shawnyg
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?