I made a script yesterday and today I fixed up so it should work but its still doesn't. I want to have the player's name show up in a textlabel. I have 16 players (max) in the game so that would mean 16 textlabels. Would I have to put this script inside each one (of course the name of the txtlabel would be different)?
To sum up : How do I get the player's name to show and Would I put this into 16 different txt labels?
script :
game.Players.PlayerAdded:connect(function(player)
for _, player in pairs(game.Players:GetPlayers()) do
game.StarterGui.MainGui.MenuButton.Lobby["Player1" .. game.Players.NumPlayers].Text = player.Name
end
end)

2 comments
What is this script supposed to do, and what's wrong with it? We need this information to help you get a relevant answer.
I fixed it just in case people didnt understand.