# How do you reset the score to zero?

**URL:** <https://forum.kirupa.com/t/how-do-you-reset-the-score-to-zero/82960>\
**Category:** programming\
**Created:** [March 14, 2005, 11:52pm UTC](https://forum.kirupa.com/t/how-do-you-reset-the-score-to-zero/82960 "2005-03-14T23:52:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rudester](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@rudester](https://forum.kirupa.com/u/rudester)\
**Post date:** [March 14, 2005, 11:52pm UTC](https://forum.kirupa.com/t/how-do-you-reset-the-score-to-zero/82960/1 "2005-03-14T23:52:24Z")

</div>

I’m making a game. At the end of the game there is a “Play Again” button. How do you reset the score back to zero?

on (release) {  
gotoAndPlay(6);  
//this where I need the score to reset  
\_root.score = \_root.score+reset;  
}
