How whould i create a Global Leaderboard GUI System

Hello so im LegendsStudio and im wondering how i whould create a global leaderboard gui like this game: Test 2 : Leaderboard global - Roblox

It whould help if you can give me a simple step by step im still learning a bit ik functions and variables and player added and removing printing and loops while do and modules and events ik quite a bit i just know know where to start

edited: I did some research on how i can do this and how to start so heres what ive done so far.
but theres an issue in output it says DataStore can not be access by Client then says theres error on line 2 but idk whats wrong with it

local DataStoreService = game:GetService("DataStoreService")
local TimeODS = DataStoreService:GetOrderedDataStore("lbSaved_1")


local timeUntilReset = 10


while wait(10) do


    timeUntilReset = timeUntilReset - 1

    script.Parent.Parent.Countdown.Text = timeUntilReset


    if timeUntilReset == 0 then

        timeUntilReset = 10


        for i, plr in pairs(game.Players:GetPlayers()) do

            TimeODS:SetAsync(plr.UserId, plr.leaderstats.Fish.Value)
        end

        for i, leaderboardRank in pairs(script.Parent:GetChildren()) do

            if leaderboardRank.ClassName == "Frame" then
                leaderboardRank:Destroy()
            end
        end


        local success, errorMsg = pcall(function()

            local data = TimeODS:GetSortedAsync(false, 5)
            local coinsPage = data:GetCurrentPage()

            for rankInLB, dataStored in ipairs(coinsPage) do


                local name = game.Players:GetNameFromUserIdAsync(tonumber(dataStored.key))
                local coins = dataStored.Value


                local template = script.Template:Clone()

                template.Name = name .. "Leaderboard"

                template.PlrName.Text = name

                template.Rank.Text = "#" .. rankInLB

                template.Minutes.Text = coins

                template.Parent = script.Parent             
            end         
        end)
    end
end
1 Like

That’s a bad place to start learning scripting. There’s series on YouTube (like AlvinBlox and TheDevKing have a series of beginning programming). You could also use Education Roblox since they have a beginners tutorial series too. I would just not recommend learning something like a global leaderboard to start off, that seems way too advanced imo. And I’m not sure if you exactly meant you were a beginner? So my apologies for misunderstanding if that’s the case.

yeah ive learnt from TheDevKing i finished all hes videos on coding ik a fair bit and this is not my first game its just a project i want to do ive made bee harvesting simulator ive made the first ever 2d button simulator i was one of the first people to start making button sims but yeah i quite that awhile ago cause i felt bad for the og creator so yeah i was making a pretty advanced game not long ago but then i got scammed on my alt where i stored all my income and yeah long story with that

Oh that’s great! TheDevKing has made a video on how to make a global leaderboard but not a UI version. And I’m not advanced enough in scripting to even know how to do that. So I’m sorry I can’t really help! :frowning: I looked on YouTube and the dev forum and I can’t find anything sadly. Good luck though.

all good but keep helping people like that it whould help very new people

2 Likes