Hi, So how would I go about printing all players names in a team.
I.E. - Printing all the players names that are in the team 'TestTeam' Thanks,
Hi, So how would I go about printing all players names in a team.
I.E. - Printing all the players names that are in the team 'TestTeam' Thanks,
ROBLOX Provides an API method, GetPlayers, to get all the Players in a Team. From there, just loop and print:
local Team = game:GetService("Teams"):GetChildren()[1] --change this to whatever
for _, player in ipairs(Team:GetPlayers()) do
print(player.Name)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.