# set (score) to (0) — Scratch Block Guide > Replaces the variable’s current value with a new number or string. How to use the "set (score) to (0)" block in Scratch 3.0 (Variables & Lists): clear explanation, working block example, and debugging tips. ## What this block does Replaces the variable’s current value with a new number or string. Reset score, lives, and game state at startup. - Category: Variables & Lists - Key tip: Never put "set score to 0" inside a forever loop, or your score will stay stuck at 0. ## Working Scratch example Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it. **Example using set (score) to (0)** - When green flag clicked - Set (score) to (0) - Set (lives) to (3) Try it: Guarantees every new game starts fresh with 0 score and 3 lives. ## Related block guides Explore other blocks in the same category or return to the full English Block Dictionary. - [Back to Variables & Lists](/en/dictionary/variables/): See the overview and patterns for Variables & Lists. - [Scratch Block Dictionary (All Categories)](/en/dictionary/): Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/dictionary/variables/set-variable/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)