Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Where could be the 'Leader Board' located?

Asked by 7 years ago
Edited 7 years ago

(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!

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) Khornos 0 — 7y
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 Khornos 0 — 7y
0
@Khornos,Where can I find the (not the script) one? GruDru888 0 — 7y

2 answers

Log in to vote
0
Answered by
0msh 333 Moderation Voter
7 years ago

quick answer: inside the player.

Ad
Log in to vote
0
Answered by
mattscy 3725 Moderation Voter Community Moderator
7 years ago

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)

Answer this question