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)
I just noticed myself, that I confused the script by thinking that I am trying to rename the TextLabel.
Thank you for everyone who replied though.