local complete,err = pcall(function()
local Data = GlobalData:GetSortedAsync(false, 7)
local Page = Data:GetCurrentPage()
for Rank, PlrData in ipairs(Page) do
local UserId = PlrData.key
local Coins = PlrData.value
local New = Clone:Clone()
New.Coins.Text = Coins
New.Name.Text = Players:GetPlayerByUserId(UserId).Name
New.LayoutOrder = Rank
New.Parent = Board.SurfaceGui.Background
end
end)
An error has always been in the output that has the following error title:
ServerScriptService.Leaderboard:24: attempt to index field 'Name' (a string value)

2 comments
Im not really sure try using a while loop when changing the value of the coins.
I'm already doing that in another part of the script