How would I avoid players going through a invisible wall except for NPCs?

How would I avoid players from going through a invisible wall except for NPCs? If it’s possible does it include scripting or can it be found from the Properties tab of the part?

Try developer.roblox.com for items and tutorials:
Restricted/Team Doors
Collision Filtering
NPC Kit

1 Like

I might have to figure this out, I’m not yet good at scripting but I’ll try figuring out. Thanks!

Another example is from a game name Those Who Remain. It avoids players from going through a invisible barrier except for the NPCs.

You can use PhysicsService. Have a look at the article