local ods = game:GetService("DataStoreService"):GetOrderedDataStore("Coins_Stats") function updateBoard(board, data) for k,v in pairs(data) do local pos = k local name = game.Players.LocalPlayer local score = game.Players.LocalPlayer.leaderstats.Coins.Value local nametextbox = game.Workspace.Leaderboard.SurfaceGui:FindFirstChild("Name" .. pos) nametextbox.Text = name local scoretextbox = game.Workspace.Leaderboard.SurfaceGui:FindFirstChild("Score" .. pos) scoretextbox.Text = score end end while true do local pages = ods:GetSortedAsync(false, 5) local data = pages:GetCurrentPage() updateBoard(game.Workspace.Leaderboard, data) wait(.1) end
DOES NOT WORK D:
Why did you copy the code from my post...?
Closed as Not Constructive by Articulating
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?