• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • Globals

    LeaderboardEntry

    LeaderboardEntry contains data for a single leaderboard entry. Returned from Leaderboard API methods with player information, score, and ranking.

    Properties

    id

    string
    ServerOnly
    ReadOnly

    The unique identifier for this leaderboard entry (usually player.user.id).

    print("Entry ID: " .. entry.id)
    

    name

    string
    ServerOnly
    ReadOnly

    The display name for this entry (usually player.name).

    print("Player: " .. entry.name)
    

    rank

    number
    ServerOnly
    ReadOnly

    The current rank position of this entry (1 = first place).

    print("Rank: #" .. entry.rank)
    if entry.rank <= 3 then
        print("Top 3 player!")
    end
    

    score

    number
    ServerOnly
    ReadOnly

    The score value for this entry.

    print("Score: " .. entry.score)
    

    Updated 13 days ago

    PocketWorlds Icon

    © 2025 Pocket Worlds. All rights reserved.