How do we make doors that work with keycard

how do i make door to use with key card

(Vending Machine) Item Purchased --> (Barrier/Prop) Deactivate Barrier/Hide Prop

Make the Vending Machine require a keycard.

make sure to mark a solution

Just wire a button to a checker (button press=run check) then in the cheker put the keycard then wire it to a door(barrier or prop) (check passes=show prop or desactivate barrier)