Level 3

Stop the Script

Level 3 · Chapter 8

What this lesson follows

CSTA K–12 Computer Science Standards (2017)

Algorithms & Programming · Grades 3–5

Split a big problem into smaller parts.

Code 1B-AP-11Read the official text

Also practised: 1B-AP-15

Common Core State Standards for Mathematics

Operations & Algebraic Thinking · Grade 4

Use the four operations to solve stories.

Code 4.OA.A.3Read the official text

The short lines are our own words. We matched this lesson to these standards ourselves; the standards' owners have not reviewed or endorsed this course.

Common Core State Standards © 2010 National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.

Today you will stop scripts at the right time.

1👋 Warm-Up

For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 1B
✦ CSTA 1B-AP-11 · CSTA 1B-AP-15 · ISTE 1.5.a · Standards
🎯 I canstop scripts at the right time
🧩 New blocks1 block
📝 New words5 words
⏱ Lesson time~40 min
Teacher Guide

📋 Before class

⚠️ Common misconceptions

  • Students use stop [this script ▾] when they want a game over — only stops one script, others keep running.
  • Students may not know stop [all ▾] ends ALL sprites' scripts, not just the cat's.

🎯 Differentiation

🐢 Struggling: Draw three colored strips of paper (three scripts). Fold them to show stop. stop [all ▾] = fold all three. stop [this script ▾] = fold only the one you are holding.

🚀 Advanced: Before stop [all ▾], add broadcast [game over ▾] and wait (1) seconds. Create a second sprite that listens for this broadcast and shows a trophy. The wait gives it time to react. True event-driven game over.

💡 During the lesson

  • Warm-UpAsk: "Have you ever pressed STOP on a video or music player?" (Yes.) "What happens when you press it?" (Everything ends.) Hold up a red stop sign or button if available. Tell students: today we find the block that does this in Scratch.
    Point to frame 4. Ask: "What two things happen at the same time in the last frame?" (Cat says "Game Over!" AND everything stops.) Tell students: that is two blocks working together — one say and one stop [all ▾].
  • Try ItHold up stop [all ▾] and stop [this script ▾] side by side. "All" ends every script in the project — true game over. "This script" ends only the one script it sits in; other scripts keep running.
    The first experiment shows why stop [all ▾] matters — with if on edge, bounce instead, the cat turns and keeps walking. The 🟢 announcer in Extend previews broadcasts: send a message, then stop only this script, so a when I receive script can still react.
  • PlanAsk: "What is inside the if block? What is outside?" Students list: inside = say + stop. Outside = move. Reinforce that stop [all ▾] is always the LAST block inside the condition — nothing can run after it.
  • BuildAfter step 5, ask: "Is the cat still moving after the say block?" (No — stop [all ▾] runs immediately after the say finishes.) After step 7, students see the difference: stop [this script ▾] ends only the walk script, so the costume script keeps running.