How do I make a leaderboard?

  1. What do you want to achieve? Making a leaderboard on my game.

  2. What is the issue? I don’t know how to.

  3. What solutions have you tried so far? I searched it in DevForum and all I got was Global Leaderboard which isn’t what I want.

I really want to make like, a level leaderboard for a game like Tower of Hell, like how the level shows up on the tab thing. Like that.

E

No clue what else you need since you didn’t really specify?

Depends if you want to have data-stores in it. It will require manual scripting by adding a script inside of ServerScriptService.

Roblox has a built in system for leaderboards. Highly recommend to learn and understand how to script these before asking how to script them on DevForum.

This is how I would add leaderstats:

1: Add a script in ServerScriptService

We want to get an event when players join, so
game.Players.PlayerAdded:Connect(function(plr)

Now under it, we want to create a folder, and a IntValue inside it. As its parent is a player that joins. The folder MUST be named “leaderstats”, or else it wont work.

local Folder = Instance.new(“Folder”)
Folder.Name = “leaderstats”
Folder.Parent = plr — adds it inside a player when join

Now were adding the IntValue, and give it a name so it shows up in Leaderstats. Make sure its within the PlayerAdded event and the “end)”

local cash = Instance.new(“IntValue”)
cash.Name = “Money” — name it whatever you want
cash.Parent = Folder

If you want it to save and load, please do some research. Hope this helps!

(enable API access)

make a folder inside the player named “leaderstats”