Need Forge Scripting Help.

I have this door and two switches, one on each side of the door, the switches are set to open the door and only open it. I don’t want it to be closable. The issue I’m having is that I only want the switches to work once, I don’t want it to be able to be pressed any more than once. I have the switches set to despawn after each individual use, but I don’t want them to despawn I want them to serve their purpose once then remain there and simply be unusable. Anybody know how to render both switches void after using either one?

I realize this post may be in the wrong section, but the Forge Support section seems like it’s more for technical issues.

Message me

Figure it out?

Please don’t revive old topics thanks