> For the complete documentation index, see [llms.txt](https://gley.gitbook.io/easy-achievements/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gley.gitbook.io/easy-achievements/complete-api/getplayerscore.md).

# GetPlayerScore

## Description

Get the highest score from leaderboard for the current user.

## Declaration

```csharp
public static void GetPlayerScore(LeaderboardNames leaderboardName, UnityAction<long> completeMethod)
```

## Parameters

<table><thead><tr><th width="206">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>leaderboardName</strong></td><td>The name from Settings Window of the Leaderboard.</td></tr><tr><td><strong>completeMethod</strong></td><td>Method to call after score is read.</td></tr></tbody></table>

## Example

```csharp
public class Test : MonoBehaviour
{
    public void GetPlayerScore()
    {
        Gley.GameServices.API.GetPlayerScore(LeaderboardNames.HighestJumpers, ScoreLoaded);)
    }

    private void ScoreLoaded(long score)
    {
        //read the score from here
        Debug.Log("Score: " + score);
    }
}
```
