People have been asking how to do this so here is a tutorial teaching how to do it! Thats litterally it. Its super easy and only uses 5 blocks! Please tell me if the scripts do not work! Also if you need help feel free to comment and Ill try to help you out!
This tutorial shows how to use a broadcast block as a 'When Stop Button Pressed' block! One of my games that uses this code: https://scratch.mit.edu/projects/695861157/ Updates? May 31 - Shared