# Cast to game instance not working

**URL:** <https://forums.unrealengine.com/t/cast-to-game-instance-not-working/431471>\
**Category:** C++\
**Tags:** cast-to, game-instance, unreal-engine, score, question\
**Created:** [August 12, 2018, 12:09am UTC](https://forums.unrealengine.com/t/cast-to-game-instance-not-working/431471 "2018-08-12T00:09:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_451ef1c5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_451ef1c5](https://forums.unrealengine.com/u/anonymous_user_451ef1c5)\
**Post date:** [August 12, 2018, 12:09am UTC](https://forums.unrealengine.com/t/cast-to-game-instance-not-working/431471/1 "2018-08-12T00:09:39Z")

</div>

![250230-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/c/ffc86dbdb8b952705b3a7c80e0bc9e217515b640.jpeg)

 ![250229-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/8/5e8c765e14ca75c83c8e6be3e680d99179e663cc.png)

Trying to increase score which works good on trigger box overlap how ever when I cast that good working score to game instance it’s keep showing what ever score you set inside the game instance. So basically it’s not updating the score inside of game instance. I tried to put cast to game instance first and then integer + integer stuff and score didn’t working properly. Can some one shed some light on these noob. Thank you!!

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 12, 2018, 8:08am UTC](https://forums.unrealengine.com/t/cast-to-game-instance-not-working/431471/2 "2018-08-12T08:08:46Z")

</div>

Answered here, same thing, right? 🙂

> **[Cast to game mode](https://forums.unrealengine.com/questions/817389/cast-to-game-mode.html)**
>
> I’m trying to cast to MY game mode right after SET but no score is being collected inside the Score master integer in my MY game mode. Why is the score not adding and keeps showing 0 if I attache the print string.? All though print string score is...

Consider closing this one unless it’s a different issue.
