# How to get Highest score from Epic Leaderboard?

**URL:** <https://forums.unrealengine.com/t/how-to-get-highest-score-from-epic-leaderboard/453805>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [August 13, 2019, 4:26pm UTC](https://forums.unrealengine.com/t/how-to-get-highest-score-from-epic-leaderboard/453805 "2019-08-13T16:26:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SpaceCat86](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spacecat86/32/634357_2.png) [@SpaceCat86](https://forums.unrealengine.com/u/SpaceCat86)\
**Post date:** [August 13, 2019, 4:26pm UTC](https://forums.unrealengine.com/t/how-to-get-highest-score-from-epic-leaderboard/453805/1 "2019-08-13T16:26:47Z")

</div>

I am working on an endless running where any player can post their best time to an online leaderboard call Epic leaderboard ([http://epicleaderboard.com/](http://epicleaderboard.com/)) At the beginning of the game, I want to get the username and score of the player with the highest score from Epic leaderboard and display it to Player HUD during gameplay.

In the demo widget (provided by Epic Leaderboard) I get the leaderboard entries and break them. from there I cast to game instance and set the player rank, username, and score.

 ![284930-getplayer1username-and-score.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/f/b6fb97179a1e890b22cc90b4f4187b5c8cac45de.png)

In the game instance, I delay for 1 and print these variables but nothing is happening. I am not sure what i am doing wrong. Can anyone help?

 ![284961-2019-08-13-09-20-18-runningcat-unreal-editor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/5/895e611e4990fd639658e06361bbcd43dee722bc.png)

---

<div class="post-metadata">

**Author:** ![SpynderMK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SpynderMK](https://forums.unrealengine.com/u/SpynderMK)\
**Post date:** [August 13, 2019, 4:54pm UTC](https://forums.unrealengine.com/t/how-to-get-highest-score-from-epic-leaderboard/453805/2 "2019-08-13T16:54:22Z")

</div>

There two possibilities - or your Event Init doesn’t fire, or your variables are empty. First you can check by putting breakpoint or print string with random text inside. Maybe 1 second delay isn’t enough.  
Also - do you really want to get Index 1 from array? First element of array located on zero index.

---

<div class="post-metadata">

**Author:** ![SpaceCat86](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spacecat86/32/634357_2.png) [@SpaceCat86](https://forums.unrealengine.com/u/SpaceCat86)\
**Post date:** [August 14, 2019, 3:14pm UTC](https://forums.unrealengine.com/t/how-to-get-highest-score-from-epic-leaderboard/453805/3 "2019-08-14T15:14:09Z")

</div>

I changed the index to 0 and added a print string, however, I am getting the following errors.

 ![285022-2019-08-14-07-53-47-window.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/4/d046099fc904b2407353e884593465dc15064267.png)

 ![285023-2019-08-14-07-51-53-window.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/3/213dea76ac75fcb5260f8b757c3f9b8c30922517.png)

---

<div class="post-metadata">

**Author:** ![SpaceCat86](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spacecat86/32/634357_2.png) [@SpaceCat86](https://forums.unrealengine.com/u/SpaceCat86)\
**Post date:** [August 16, 2019, 4:32am UTC](https://forums.unrealengine.com/t/how-to-get-highest-score-from-epic-leaderboard/453805/4 "2019-08-16T04:32:12Z")

</div>

The info from this post helped me find a solution for this problem

> **[Blueprint Runtime Error: "Attempted to access index 0 from array GameDate of...](https://forums.unrealengine.com/questions/854970/blueprint-runtime-error-attempted-to-access-index.html)**
>
> Hello I keep getting this error within my script and I have no clue what it wants from me. I am attaching a screenshot from the engine . I am following the 3 Prong Gaming RTS tutorial! I appreciate all your help ...
