# set y to (0) — Scratch Block Guide > Places the sprite at an exact vertical coordinate while preserving its x coordinate. How to use the "set y to (0)" block in Scratch 3.0 (Motion Blocks): clear explanation, working block example, and debugging tips. ## What this block does Places the sprite at an exact vertical coordinate while preserving its x coordinate. Reset falling objects back to the top of the screen (y = 180) cleanly. - Category: Motion Blocks - Key tip: Combine with "set x to (pick random -200 to 200)" for varied falling rain or stars. ## 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 y to (0)** - When green flag clicked - Set y to (170) - Forever - Change y by (-5) - If <(y position) < (-170)> then - Set y to (170) Try it: The sprite falls repeatedly from the top edge to the bottom edge. ## Related block guides Explore other blocks in the same category or return to the full English Block Dictionary. - [Back to Motion Blocks](/en/dictionary/motion/): See the overview and patterns for Motion Blocks. - [Scratch Block Dictionary (All Categories)](/en/dictionary/): Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Updated: 2026-11-24 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/dictionary/motion/set-y/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)