Fatal

Does anyone know how to disable buttons after a certain action is performed? like if a button is clicked or is triggered by a key it is instantly disabled for further use after it performs the action that is intended to be done? thx in advance.

on(release) {
this.enabled = false
}

that does it i think… this question’s been asked here before… a couple of time actually :slight_smile:

the code only works if u click on a button, im trying to get it disabled when i press a button say like the left arrow key, is there a way to do that?

actually the button itself is disabled it can no longer be clicked on once i press the trigger key, however it still performs the action the trigger key makes it perform, is there a way to disable key pressing along with button disabling at the same time once the trigger key is pressed for the first time?