How do you make a barrier that you buy and then it goes away like in one way out?

Here’s a topic specific for one way out maps