I’m making a custom leaderboard where it only shows player names, it’s working fine but all the players name are in one spot, like not each player name is upp - down.
Here’s the script:
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