After hitting the green flag, press any key.
I made it. Hope you like it, this is literally the most code i've ever used in a scratch project.