I tried to make a Custom leaderboard UI for my game by seeing a YouTube video. But I failed. The person told that you should set the offset of the textlabel to some offset. I could not find any offset value in the textlabel properties. If anyone knows what to do please do help me out.
This is the localscript incase you need it:
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
Please do help me as this is for my game
The textlabel location:
Thanks in advance for helping me out