Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Am i wrong or right? STORE

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:

2 answers

✓ Accepted answer

Why did you copy the code from my post...?

2 comments

0

People do that...

0

Changed it into a gui

-Loriese Will Like If You Give Him +100 points
True
false
and
$l

This discussion is preserved as it was. New answers, comments, and votes are closed.