I'm making a gui and I want it to show all the players in the game
I made a table for all the players in the game:
local plrs = {} --Players in the game
game.Players.PlayerAdded:Connect(function(player)
table.insert(plrs, player.Name)
end)
I already designed a gui for the player name, but I want it to duplicate for how many players there in the game. For example: If there are 4 players in the game, there will be 4 guis that show the player names from the game.
Also would this be a script or a local script?

3 comments
It is a User-interface, which makes it Local as it pertains to the Client. You also do not necessarily require a recorded array of the Players, as you can simply just instantiate a TextLabel—fitted within a UIListLayout-controlled Frame—that reads the Player's information derived from the Callback's parameter. You need to manage the Player's leaving as well through the 'PlayerRemoving' Event.
FYI: You can also get a collection of the Players in-game through the 'GetPlayers' method of the Players Service.
This is just my opinion here, but for readability purposes, I recommend you give more precise and meaningful identifiers. 'Players' > 'plrs'.