# How to I create a scoring system that when the player destroys an enemy a text box on the hud goes from 0 to 100 points

**URL:** <https://forums.unrealengine.com/t/how-to-i-create-a-scoring-system-that-when-the-player-destroys-an-enemy-a-text-box-on-the-hud-goes-from-0-to-100-points/348254>\
**Category:** UI\
**Tags:** hud, text-box, unreal-engine, score, Blueprint, question\
**Created:** [February 22, 2016, 11:49am UTC](https://forums.unrealengine.com/t/how-to-i-create-a-scoring-system-that-when-the-player-destroys-an-enemy-a-text-box-on-the-hud-goes-from-0-to-100-points/348254 "2016-02-22T11:49:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_5e11a7ce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5e11a7ce](https://forums.unrealengine.com/u/anonymous_user_5e11a7ce)\
**Post date:** [February 22, 2016, 11:49am UTC](https://forums.unrealengine.com/t/how-to-i-create-a-scoring-system-that-when-the-player-destroys-an-enemy-a-text-box-on-the-hud-goes-from-0-to-100-points/348254/1 "2016-02-22T11:49:42Z")

</div>

How to I create a scoring system that when the player destroys an enemy (via projectile) a text box on the HUD goes from 0 to 100 points, just adding the integer 100 to the current score.

---

<div class="post-metadata">

**Author:** ![StormTruppen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StormTruppen](https://forums.unrealengine.com/u/StormTruppen)\
**Post date:** [February 22, 2016, 12:26pm UTC](https://forums.unrealengine.com/t/how-to-i-create-a-scoring-system-that-when-the-player-destroys-an-enemy-a-text-box-on-the-hud-goes-from-0-to-100-points/348254/2 "2016-02-22T12:26:31Z")

</div>

I can provide you some hints, not in front of my PC right now, so can’t send you any screenshots.

1. Make a Variable to store the Score (Player Score)
2. Once the Enemy is Dead (Destroy Actor), Set the Player score to 100
3. You can Get the Player Score to Increment it as well, if there are multiple Enemies to be killed.
4. Then update the score via a Widget

It’s a very simple setup, I will send a screenshot of it later when I get back to my workstation. 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5e11a7ce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5e11a7ce](https://forums.unrealengine.com/u/anonymous_user_5e11a7ce)\
**Post date:** [February 22, 2016, 3:40pm UTC](https://forums.unrealengine.com/t/how-to-i-create-a-scoring-system-that-when-the-player-destroys-an-enemy-a-text-box-on-the-hud-goes-from-0-to-100-points/348254/3 "2016-02-22T15:40:16Z")

</div>

I which blueprints

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5e11a7ce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5e11a7ce](https://forums.unrealengine.com/u/anonymous_user_5e11a7ce)\
**Post date:** [February 22, 2016, 3:40pm UTC](https://forums.unrealengine.com/t/how-to-i-create-a-scoring-system-that-when-the-player-destroys-an-enemy-a-text-box-on-the-hud-goes-from-0-to-100-points/348254/4 "2016-02-22T15:40:54Z")

</div>

In which blueprints

---

<div class="post-metadata">

**Author:** ![StormTruppen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StormTruppen](https://forums.unrealengine.com/u/StormTruppen)\
**Post date:** [February 26, 2016, 4:36am UTC](https://forums.unrealengine.com/t/how-to-i-create-a-scoring-system-that-when-the-player-destroys-an-enemy-a-text-box-on-the-hud-goes-from-0-to-100-points/348254/5 "2016-02-26T04:36:51Z")

</div>

Refer to this…

[http://i.imgur.com/G3UnFxa.png](http://i.imgur.com/G3UnFxa.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5e11a7ce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5e11a7ce](https://forums.unrealengine.com/u/anonymous_user_5e11a7ce)\
**Post date:** [February 29, 2016, 11:21am UTC](https://forums.unrealengine.com/t/how-to-i-create-a-scoring-system-that-when-the-player-destroys-an-enemy-a-text-box-on-the-hud-goes-from-0-to-100-points/348254/6 "2016-02-29T11:21:40Z")

</div>

I tried entering the code into the blueprints where might have I gone wrong.

 ![80416-gamemode+blue+print.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/9/c99dfe3913455f13599cbfd2be44a11ac92bb488.png)

---

<div class="post-metadata">

**Author:** ![StormTruppen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StormTruppen](https://forums.unrealengine.com/u/StormTruppen)\
**Post date:** [February 29, 2016, 2:02pm UTC](https://forums.unrealengine.com/t/how-to-i-create-a-scoring-system-that-when-the-player-destroys-an-enemy-a-text-box-on-the-hud-goes-from-0-to-100-points/348254/7 "2016-02-29T14:02:12Z")

</div>

If you have Skype… I can try to help you over there… that will be easy… i think 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5e11a7ce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5e11a7ce](https://forums.unrealengine.com/u/anonymous_user_5e11a7ce)\
**Post date:** [March 1, 2016, 2:05pm UTC](https://forums.unrealengine.com/t/how-to-i-create-a-scoring-system-that-when-the-player-destroys-an-enemy-a-text-box-on-the-hud-goes-from-0-to-100-points/348254/8 "2016-03-01T14:05:34Z")

</div>

ok thank will be in touch if i really need that (back at college thursday)
