Experimental

An early preview: docs, the API and the dashboard may change or break.

Report a problem

types.Leaderboard

A leaderboard that keeps each player's best score, shared by every instance of the experience.

Methods

leaderboard:rank(player: types.Player) -> types.Entry?
#

Returns the player's entry, or nil when they have no score.

leaderboard:submit(player: types.Player, score: number)
#

Records a score for the player, kept only if it beats their best.

leaderboard:top(count: number) -> { types.Entry }
#

Returns the best count entries, best first.

Range: count: 1..100