How do you make a passage where you can only enter

Or you can make it to were only team 1 can purchase the barrier so it will not be there for you but for the others. Here is a guide on that; How to add purchasable walls/barriers. (Difficulty: 🟩)