How to make a button that can't be interrupted

Hello again. May I know some of way from you, on how to make a button that when you tap it, the function that it will perform can never be interrupted by another button with assigned function, “key” listener or another function? Please help me, Thank you.

Heya!

You can just pause the listeners when your press the button, and resume/start them when the function called by the button completes.

If for some reason this doesn’t work for you, then you can just have a variable that’s set to true when you press the button, and then set to false once all the instructions triggered by button completes.
You’ll need to check on your event listeners whether said variable is true, and it if it is then just call return which will effectively prevent any instructions in the listener from running.