Updating list of players

Hello, I made a list of players. every time player joins I’m cloning a button from replicated storage
and naming it as the player name. but the player button is not showing up.

Thanks :slight_smile:

Here is the script:

	for i, plr in pairs(game.Players:GetChildren()) do
		local template = game.ReplicatedStorage.Button
		local tempClone = template:Clone()
		tempClone.Parent = script.Parent.ScrollingFrame
		tempClone.TextLabel = plr.Name
		tempClone.Visible = true

Are you trying to set the textlabels text to plr.Name?

Oh, thanks,

Fixed that but still nothing is showing up on the list.

What exactly are you stying to do. Make a list of characters show up on your screen? Also this won’t work because every time one player joins, you loop through everyone, not just that one player.