Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Where could be the 'Leader Board' located?

(EDIT:Really still didn't find it!BTW If I get a 'Leader Board' script,nothing changes at all!I change the money amount in the script its still on the same amount!E.G I have normally 20 money and when I get a 'Leader Board' script and set it to 10,000,000 , I still have 20 money please help!)

(EDIT:SOLVED!!!Found it in 'ServerScriptService' !!! Thank You everyone who replied!)

Where can the 'Leader Board' be located?

Thanks!

3 comments

0

There are 2 types or leaderboard. 1 is the leaderboard which shows you the player inside the game, this is a automatic leaderboard, which you can not delete. 2nd is a Leaderboard Script, which you can create to show how much money, or level, or kills a player have. Either way, the normal leaderbaord (not the script) is game.StarterGui:SetCoreGuiEnabled(3, true)

0

Part 2, and the other Leaderboard which is a script, is game.Players.PlayerAdded:connect(function(player) local stats = Instance.new("IntValue", player) stats.Name = "leaderstats"

local Money = Instance.new("IntValue", stats)
Money.Name = "Money"
Money.Value = 10
0

@Khornos,Where can I find the (not the script) one?

2 answers

Leaderboards are models named leaderboard that are located inside each player instance, and they contain values which are individual to each player. These values are displayed on the leaderboard for everyone, and you can alter their names to the appropriate titles. You can see this leaderboard structure here.

This wiki page also contains information on how to create leaderboards. For example, if you wanted to create a leaderboard valued called Money, a script like this could help:

game.Players.PlayerAdded:Connect(function(plr) --detect when player joins
	local leaderboard = Instance.new("Model") --create leaderboard
	leaderboard.Name = "leaderboard" --name leaderboard
	local money = Instance.new("NumberValue") --add money stat
	money.Name = "Money" --name money stat
	money.Parent = leaderboard --put money stat inside leaderboard model
	leaderboard.Parent = plr --put leaderboard model inside player
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.