Help to clear a void

Hi I just wanted to know if you can clear a void after a certain amount of time or after you press a key

What do you mean by clear? If you just don‘t want the code to be executed, just add an if Statement that encapsulates the whole method and set the if Statement to false after a certain Time.

1 Like

ty that was what i needed