How can I make a Part not collidable to NPCs, but collidable to players

So I’m trying to make a barrier that allows NPCs to pass through, but not players.
I tried setting the part’s CanCollide to true locally via a LocalScript, but that didn’t seem to work.

The npcs are zombies that use the Pathfinding service.

Any help is appreciated, thanks

i suggest you using Collision Group Editor

sorry for late reply, but it works. thanks

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.