Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

Am i wrong or right? STORE [closed]

Asked by 10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
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:

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?

2 answers

Log in to vote
-1
Answered by
TofuBytes 500 Moderation Voter
10 years ago

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

0
People do that... HexC3D 830 — 10y
0
Changed it into a gui Loriese 0 — 10y
Ad
Log in to vote
-1
Answered by 10 years ago
-Loriese Will Like If You Give Him +100 points
True
false
and
$l