# How to Add a Mute / Unmute Audio Button in Scratch > Toggle volume between 0% and 100% when clicked. Learn how to add a mute / unmute audio button in Scratch with clean block recipes, testing tips, and related guides. ## Minimal Working Block Recipe Toggle volume between 0% and 100% when clicked. Test this minimal version first, then tune numbers like speed, gravity, or timing to match your game feel. **Add a Mute / Unmute Audio Button script** - when this sprite clicked -> if <(volume) > (0)> then set volume to (0)% else set volume to (100)% Try it: Essential for classrooms and quiet spaces. ## Debugging Checklist & Next Steps If it behaves unexpectedly, verify initial variable resets on the green flag and check that continuous checks sit inside a forever loop. - [Related Deep-Dive Guide](/en/dictionary/sound/set-volume/): Explore full mechanics and variations. - [All 120 Scratch How-To Recipes](/en/howto/): Return to the reverse lookup index. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/howto/mute-button/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)