Blocking off an area from being accessed?

How would one block off an area from being used from a small prop to hide under/behind?

For example:
block off props from going under the bed in ph_restaurant
block off props from going behind the Washers in ph_office

I’ve seen some servers block off some areas that can normally be accessed.

Hey i try to help you i have no ideas from scripting but when its a area on the map you can just spawn a wall there or something and make it invisible and then use maybe a permanent prop thing like in workshop there is a addon for permantprops thats what i would do :o

Wouldn’t that only work for Sandbox tho?

i dont think so i think its for every gamemode just try it out thats only how i would do sorry just try to help :o