Alright, so the idea is that there's a set of two doors. One leading into an area and the other leaving. If both doors are closed, the player can successfully open the first door and enter the area. If the player attempts to open the second door they'll be denied access because the first door is open. When they close the first door, they'll be able to open the second door and vice versa.
I have no idea how I would begin scripting this so any help on this would be appreciated.

1 comment
Should've mentioned this. Both of these doors are opened/closed by keycards. So the door opens/closes when the proper card level is swiped into the keycard reader.