Create leaderboards

And so that’s it, hello, I want to create leaderboards on the coin, but I don’t know how, exactly, I know, but the trouble with scripts is that I don’t want to show the coin in the leaderstats, I want to show them in the leaderboards, help me do it

2 Likes

that is, here is the script

local leaderstats = instaance. new(“Folder”)
leaderstats. Name = leaderstats

local coins = instaance. new(“Number Value”)
coins. Name = “Coins”
local. Value = 0
local.Parent = leaderstats

I don’t want to show coins in leaderstats, but I want to make them in leaderboards, help me make

4 Likes

For example, I threw off this script, my creak looks like this:

local Player = game. Player:Playeradded(function()

This is also for example

Hello! I have edited and tested your script for you. This should work.

game.Players.PlayerAdded:Connect(function(plr)
	local leaderstats = Instance.new("Folder", plr)
    leaderstats.Name = "leaderstats"

local coins = Instance.new("IntValue")
coins.Name = "Coins"
coins.Value = 0
coins.Parent = leaderstats
end)

You misunderstood me I want to create leaderboards, not Leaderstats, I threw off for example

1 Like

show us the explorer for your ‘leaderboard’

Like a Leaderboard on a Part? Could you elaborate on what a “Leaderboard” is?

I want to create this

But I don’t want to show it in Leaderstats

can you show the explorer, we cant help if we dont know what part to script on

Do you mean my LeaderStats script which is located in ServerScriptService

no. the explorer, yk the thing where it shows all the services and parts, scripts etc

Do you mean not showing the coins in server leaderstats? You can just place the coins Instance inside a folder with a different name than “leaderstats”

he wants to make a physical leaderboard that shows OrderedDataStore


That’s enough, right? or not, I just didn’t see anything

show the leaderboard, not the scripts

For a Global Leaderboard, you would require the use of OrderedDataStores.
If you have worked with datastores before, then amazing. It’s nearly identical.

One of the only differences with OrderedDataStores is that they can only store numbers. Using the method GetSortedAsync(), you will be able to retrieve ‘pages’, through which you can loop through.

Roblox even has a free donation leaderboard as one of their resources. (This is an official Roblox Asset and is completely safe to use) https://create.roblox.com/marketplace/asset/14045064871/Donation-Leaderboard
You can look at their code and see how they did it.

Hope this helped!

1 Like

Everything is difficult to understand and I don’t know how to use the data warehouse