How to make a wall only projectiles can pass through

why would you do this

You can just have a very skinny barrier, then put it inside a skinny zonne, then configure the zone to broadcast when you get in and out, for the player, then the barrier deactivates on start and activates on getting in, deactivates on getting out. set this to the player.