Press the space key to toggle modes, green flag to start drawing the bar.
You can modify this in any way you want, or use it in your project, you don't have to give credit if you use it in your project. There is a glitch but it's with scratch itself, I've just started having the issue where a variable would change but not update the variable reporter on screen, if this happens, it's no big deal but if you want to fix it, refresh the page.