Skip to main content

LeaderBoard

LeaderBoard Manager

The LeaderBoard Manager is a tool, which provides information about the players that are currently on the leaderboard. This includes details such as their session ID (sid), name, and position.

To access the Leaderboard, you can write the following code:

let LeaderboardManager = MooMoo.LeaderboardManager;

// get all players on the leaderboard
let leaderboard = LeaderboardManager.leaderboard;

Now, the leaderboard variable would be returning a map, where item 1 is the first place, 2 is the second place, and so on. Each item in the map is a Player object, which contains information about the player, such as name, sid, and position.

It is possible that the leaderboard returns information about a player (including position), but it is not guaranteed that the position is correct.