How to block something from going somewhere

From Valve Developer Community

Ever make a map, and you dont want a team or a player to go to a certain area, but you want them to see the area? Or make it seem like no wall is there? It's very easy to do that. Make an invisible wall.

Steps

  1. Create a brush. Any size at all.
  2. Place it at the site where you dont want a character to move.
  3. Add the texture: vgui/screens/transparent to it.

Congrats, you're done. Now if a player tries to go through that area, he will be blocked. But he can still see it. It's justa n invisible wall.