How to make a barrier buying thing

Here’s a guide about it - How to make buyable barriers - Credit to @Max-Grass