Click when Green flag clicked to start. To reset it click a key.
It is not very hard I have make this project in Scratch 2.0.