<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[The &quot;Stop ( )&quot; Block]]></title><description><![CDATA[<p dir="auto"> </p>
<h2><a class="anchor-offset" name="prerequisite"></a>Prerequisite</h2>
<ul>
<li><a href="/topic/73/working-with-blocks">Working with Blocks</a></li>
</ul>
<p dir="auto"> </p>
<h2><a class="anchor-offset" name="what-is-a-script"></a>What is a Script?</h2>
<p dir="auto"><strong>A script is simply a stack of blocks</strong>. There can be <strong>one or multiple scripts</strong> in a sprite’s code.</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/4c2cd2ab-63db-4bec-904f-b94ff82e62b2.PNG" width="650" /><br />
 </p>
<h2><a class="anchor-offset" name="description"></a>Description</h2>
<p dir="auto">The “stop ( )” block is in the <strong>Control</strong> group. Depending on the option selected from the drop-down menu, <strong>this block can change its shape</strong>:<br />
<img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/893be72c-0d9c-4b78-bf37-b65cff9009dc.PNG" width="250" /></p>
<p dir="auto">“stop (all)” and “stop (this script)” are <strong>cap blocks</strong> while “stop (other scripts in sprite)” is a <strong>stack block.</strong></p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/6f93f8ed-0eb3-40da-a702-44897eb462a8.PNG" width="650" /><br />
 </p>
<h2><a class="anchor-offset" name="how-does-this-block-work"></a>How does this block work?</h2>
<p dir="auto">The “stop ( )” block is <strong>used to stop some or all scripts in a project</strong>. Let’s look at each option below:</p>
<p dir="auto"> </p>
<h3><a class="anchor-offset" name="stop-all"></a>Stop (all)</h3>
<p dir="auto">The “stop (all)” option is <strong>used to stop all the scripts in the project</strong>. It has the same function as the red stop button. <img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/e5eea585-4a41-4da4-9b07-4d74bf92c720.PNG" width="150" /> For example, you can use “stop ” when a game is over.</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/7b9d4081-005c-4235-9610-8ecc3a3958d4.gif" width="800" style="border-radius:5px;border:1px solid #29622d" /><br />
 </p>
<h3><a class="anchor-offset" name="stop-this-script"></a>Stop (this script)</h3>
<p dir="auto">The “stop (this script)” option is <strong>used to only stop the script in which the stop block is used.</strong></p>
<p dir="auto">For Example: In the screencast below, when the timer value reaches 10, only the timer script stops, and the other script still keeps running.</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/94fdfb07-c7e4-453e-a249-4b7a03fcc2e9.gif" width="800" style="border-radius:5px;border:1px solid #29622d" /><br />
 </p>
<h3><a class="anchor-offset" name="stop-other-scripts-in-sprite"></a>Stop (other scripts in sprite)</h3>
<p dir="auto">This option is used to stop all the other scripts in the current sprite, <strong>except the script in which the stop block is used.</strong></p>
<p dir="auto">In the example below, as soon as the timer value reaches 10, the other script in the sprite stops running.</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/af490152-0f8f-4d7d-a4c5-a188f214dd6b.gif" width="800" style="border-radius:5px;border:1px solid #29622d" /><br />
 </p>
]]></description><link>https://forum.creaticode.com/topic/227/the-stop-block</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 15:56:49 GMT</lastBuildDate><atom:link href="https://forum.creaticode.com/topic/227.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Jun 2022 23:59:37 GMT</pubDate><ttl>60</ttl></channel></rss>