How would I make it so that once someone opens a barrier it is not open for other people

Here is a list of guides you can use.

https://forum.creative.gimkit.com/t/how-to-make-an-escape-room-doorway-difficulty-or-2-10/5586\https://forum.creative.gimkit.com/t/how-to-make-a-bomb-for-your-escape-room-map-difficulty/314