I'm trying to create a button that can open and close doors, but you can't press a button if it is locked (on used locked).