This is what I have so far. When I start A Network server with three players it counts the third player has #4 why?
local incrementsize = 20
local p_boxs = 1
game.Players.PlayerAdded:connect(function(p)
p:WaitForChild('PlayerGui')
wait(1)
for i, v in pairs(game.Players:GetPlayers()) do
coroutine.resume(coroutine.create(function()
local p_num = p_boxs
p_boxs = p_boxs + 1
local box = Instance.new('TextLabel', v.PlayerGui.UI.LIst)
local name = p.Name
box.BackgroundTransparency = 1
box.Position = UDim2.new(0, 0, 0, (p_num*incrementsize))
box.Size = UDim2.new(1, 0, 0, 20)
box.TextColor3 = Color3.new(255, 255, 255)
box.TextStrokeTransparency = 0
box.TextXAlignment = "Left"
box.Name = "p_"..tostring(p_num)
box.Text = p.Name
box.FontSize = "Size12"
end))
end
end)
siggys r stupid |