# Score or Lives Not Resetting on Replay > Stop leftover values from the previous game by initializing every variable under the green flag. Score or Lives Not Resetting on Replay — Stop leftover values from the previous game by initializing every variable under the green flag. ## Core approach Scratch remembers variable values between runs until your code explicitly resets them. Always add a dedicated initialization block at startup. - Set score = 0, lives = 3, level = 1 right under "When green flag clicked". - Use "broadcast [Reset] and wait" before starting gameplay loops. - Test clicking the green flag twice in a row after finishing a game. ## Pro tip & next steps Double-green-flag testing catches almost every initialization bug before sharing. - [All Troubleshooting Guides](/en/troubles/): Browse more English guides in this section. - [Scratch Block Dictionary](/en/dictionary/): Look up any Scratch 3.0 block with examples. Updated: 2026-11-24 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/troubles/variable-reset/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)