Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
- local plrs = game.Players
- local serverMax = plrs.MaxPlayers
- local template = game.ReplicatedStorage.Template
- local list = script.Parent.List
- for i = 0, serverMax do
- local label = template:Clone()
- label.Name = i
- label.Position = UDim2.new(0.027, 0, i * template.Size.Y.Scale, 0)
- label.Parent = list
- end
- while wait() do
- for i, label in pairs(list:GetChildren()) do
- if plrs:GetChildren()[i] then
- label.Text = plrs:GetChildren()[i].Name
- else
- label.Text = ""
- end
- end
- end
Add Comment
Please, Sign In to add comment