How to increase a number the longer you stand in a box?

hey so this works great… until you walk off the spot, it keeps taking hits :frowning:

edit: turns out i needed pause timer not invalidate, thanks again!