# when green flag clicked — Scratch Block Guide > Main entry-point hat block that starts scripts whenever the player clicks the green flag. How to use the "when green flag clicked" block in Scratch 3.0 (Events Blocks): clear explanation, working block example, and debugging tips. ## What this block does Main entry-point hat block that starts scripts whenever the player clicks the green flag. Initialize positions, costumes, variables, and start main game loops. - Category: Events Blocks - Key tip: Keep initialization in one clear green-flag script to avoid race conditions. ## 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 when green flag clicked** - When green flag clicked - Go to x: (0) y: (0) - Show Try it: Resets the sprite cleanly every time the project starts. ## Related block guides Explore other blocks in the same category or return to the full English Block Dictionary. - [Back to Events Blocks](/en/dictionary/events/): See the overview and patterns for Events Blocks. - [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/events/green-flag/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)