How to make a multi-value leaderboard

I have a leaderboard that is too advanced so I’d like a leaderboard that is a little easier to understand.

Feature:

Can have more than one value (IntValue, StringValue)

Example: Level, Coins, Rank

You can just add values to the leaderstats folder, i don’t know if there is a limit on how much you can write but you certainly can have 3 values
edit: tested it and the max is 4 image

Yes, you can have more than one value.
Here is a code example:

game.Players.PlayerAdded:Connect(function(plr)
	local leaderstats = Instance.new("Folder") -- creates leaderstats folder
	leaderstats.Name = "leaderstats"
	leaderstats.Parent = plr
	
	local Level = Instance.new("IntValue") -- creates Level Value
	Level.Name = "Level"
	Level.Value = 0
	Level.Parent = leaderstats -- parents the value to te leaderstats folder
	
	local Coins = Instance.new("IntValue") -- Another IntValue
	Coins.Name = "Coins"
	Coins.Value = 0
	Coins.Parent = leaderstats
	
	local Rank = Instance.new("StringValue") -- Creates StringValue
	Rank.Name = "Rank"
	Rank.Value = "Rookie" -- example name at start
	Rank.Parent = leaderstats
end)

ik but the saving part is the hardest

1 Like

Yes I agree. You would need to use DataStoreService for the values to save.