Disabling specific inputs

Hello, I made some scripts to disable all inputs for a split second, when a button is pressed, to prevent button mashing.

However, it’s getting in the way of other things now, and it’s really just two buttons or so that I need temporarily disabled when a button is pressed.

Is there a way to make my script only disable those two inputs alone instead of all inputs?

My script is attached below.

  1. Create a new Boolean, call it “Blocked Input”
  2. Set the Boolean correctly (similar to how you are blocking all input now) and Clear it when it’s ready to be used again.
  3. Check the value of this Boolean as the first step on Input. If Boolean is True, do not go any further. If it is False, then you can enter the rest of the logic.

In this manner, you are not truly “blocking input” but rather filtering it based on a secondary value (in this case, readiness to perform action).

Thank you for your time. Could you let me have a visual depiction, I’m not so proficient in applying written instructions.

I’m quite the noob and only got this far by trying stuff out and hoping it works.

Great, could you please mark the answer as accepted? This will save time for other people who are looking for un-answered questions. Thanks !

Hello, did a little studying and got what you meant.
Thank you so much.