# Help : Clicker Game - Lives keep dropping to negative & score not update

**URL:** <https://forum.code.org/t/help-clicker-game-lives-keep-dropping-to-negative-score-not-update/12046>\
**Category:** Unit and Lesson Discussion\
**Tags:** csp-unit-5, csp-unit-5-lesson-5\
**Created:** [November 17, 2017, 4:58am UTC](https://forum.code.org/t/help-clicker-game-lives-keep-dropping-to-negative-score-not-update/12046 "2017-11-17T04:58:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![awei](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@awei](https://forum.code.org/u/awei)\
**Post date:** [November 17, 2017, 4:58am UTC](https://forum.code.org/t/help-clicker-game-lives-keep-dropping-to-negative-score-not-update/12046/1 "2017-11-17T04:58:37Z")

</div>

> **[Check out what I made](https://studio.code.org/projects/applab/P2BuRy9FKceKpK4VaINeuw)**
>
> I wrote the code myself with Code.org

We all encounter the same problem since the numbers for lives and scores don’t get reset after we restart the game. Can anyone help my students? Thanks a lot!!

---

<div class="post-metadata">

**Author:** ![kaitie\_o\_bryan](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/kaitie_o_bryan/32/2278_2.png) [@kaitie\_o\_bryan](https://forum.code.org/u/kaitie_o_bryan)\
**Post date:** [November 20, 2017, 12:52am UTC](https://forum.code.org/t/help-clicker-game-lives-keep-dropping-to-negative-score-not-update/12046/2 "2017-11-20T00:52:24Z")

</div>

Hi @awei - it looks like students are having fun with their clicker games!

It looks like the issue is that the variables of “score” and “lives” are never being re-set. At some point (either when you click the “play again” or “start” button, you should re-set the score and life variables by writing the following code:  
score=0;  
lives=3;

That will update the variable values. You will also want to re-set the text on the screen by calling the “setText” command when you press the “start” button but AFTER you re-set your variable values.

Hope that helps!  
KT

---

<div class="post-metadata">

**Author:** ![awei](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@awei](https://forum.code.org/u/awei)\
**Post date:** [November 20, 2017, 1:32am UTC](https://forum.code.org/t/help-clicker-game-lives-keep-dropping-to-negative-score-not-update/12046/3 "2017-11-20T01:32:11Z")

</div>

Katie,  
Thanks for your help!! They indeed love the project!!

Audrey
