# Maintaining score between levels

**URL:** <https://forums.unrealengine.com/t/maintaining-score-between-levels/384952>\
**Category:** Blueprint\
**Tags:** unreal-engine, Levels, score, UE4, Blueprint, question\
**Created:** [February 14, 2017, 10:35pm UTC](https://forums.unrealengine.com/t/maintaining-score-between-levels/384952 "2017-02-14T22:35:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4ef98152](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4ef98152](https://forums.unrealengine.com/u/anonymous_user_4ef98152)\
**Post date:** [February 14, 2017, 10:35pm UTC](https://forums.unrealengine.com/t/maintaining-score-between-levels/384952/1 "2017-02-14T22:35:54Z")

</div>

I’ve implemented a score system to my game, which for now is working really well. However, this is a game where you go from level to level, so I’m having this problem with keeping the score; of course, each time I load a level, all the variables reset, so if you had 100 points, once you go to another level it’s back at 0.

If any of you have a good solution, I’d be more than happy to hear it.  
Thank you!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d9aa7bc0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d9aa7bc0](https://forums.unrealengine.com/u/anonymous_user_d9aa7bc0)\
**Post date:** [February 14, 2017, 11:11pm UTC](https://forums.unrealengine.com/t/maintaining-score-between-levels/384952/2 "2017-02-14T23:11:48Z")

</div>

A good way to pass information between levels is to use the GameInstance class. You need to create your own GameInstance blueprint and then change the project settings to use it. The GameInstance is an object that exists as long as your game is running so you can set some variables there and retrieve them at any point in your code using the Get Game Instance node and casting it to your own game instance class.

My explanation is probably missing some stuff so here is link with a good example on this topic.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

Hope this helps
