click the flag then click the stop sign
Thanks to @Infinite_Code for the tutorial: https://scratch.mit.edu/projects/212963952