# go to (random position / mouse-pointer) — Scratch Block Guide > Instantly teleports the sprite to a random stage location, the mouse pointer, or another sprite. How to use the "go to (random position / mouse-pointer)" block in Scratch 3.0 (Motion Blocks): clear explanation, working block example, and debugging tips. ## What this block does Instantly teleports the sprite to a random stage location, the mouse pointer, or another sprite. Use for spawning collectible coins, cursor followers, or attaching hitboxes and shields to a player. - Category: Motion Blocks - Key tip: To follow with a slight delay instead of snapping instantly, use glide or change x/y toward the target. ## 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 go to (random position / mouse-pointer)** - When green flag clicked - Forever - Go to (mouse-pointer) Try it: The sprite follows the mouse cursor immediately across the stage. ## 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-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/dictionary/motion/go-to/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)