I updated it, This code should be working but it's not, I watched it on youtube, And it work, But this won't work at all.
Here is my code:
local main = script.Parent.Main
local pl = main.PlayerList
pos = 0
function update()
local getall = pl:GetChildren()
for i = 1, #getall do
getall[i].Position = UDim2.new(0,0,0,pos)
pos = pos + 30
end
pos = 0
end
game.Workspace.Players.ChildAdded:connect(function(plr)
wait(0.1)
local frm = Instance.new("Frame", pl)
frm.Name = plr.name
frm.BackgroundColor3 = Color3.fromRGB()
frm.BackgroundTransparency = 0.5
frm.BorderPixelSize = 0
frm.Size = UDim2.new(0,180,0,25)
frm.Position = UDim2.new(0,0,0,0)
local img = Instance.new("ImageLabel", frm)
img.Size = UDim2.new(0,20,0,20)
img.Position = UDim2.new(0,5,0,3)
img.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username="..plr.Name
local tl = Instance.new("TextLabel", frm)
tl.Size = UDim2.new(0,190,0,20)
tl.BackgroundColor3 = Color3.fromRGB(51, 176, 214)
tl.BorderSizePixel = 0
tl.BackgroundTransparency = 0.5
tl.TextColor3 = Color3.fromRGB(255, 255, 255)
tl.TextStrokeTransparency = 0
tl.TextStrokeColor3 = Color3.fromRGB(113, 113, 113)
tl.TextXAlignment = "Left"
tl.Text = ""..plr.Name
tl.Name = plr.Name
update()
end)
game.Workspace.Players.ChildRemoving:connect(function(plr)
wait(0.1)
if pl:FindFirstChild(plr.Name) then
pl[plr.Name]:remove()
update()
end
end)

3 comments
"Why won't my script add the players name to my custom player list?" Because your code it wrong. Np for answering that question...
Any errors? Is it in a local script? Where is the script located?
on line 18, change "game.Workspace.Players" to "game.Players". and the same on line 45