Use when "timer>0" block and forever reset the timer instead of "when flag pressed"
@andersonadair's comment on the project:https://scratch.mit.edu/projects/316521820/