Part cancollidable for NPC but not for players

I have NPC that attacks players and I don’t want the NPC go into a area so I have parts to prevent the NPC to get in the area but if it’s cancollidable then the player wouldn’t be able to go thought it so how would I make it cancollidable for the NPC but uncancollidable for the player(I haven’t done any script yet btw).

Collision groups is the answer.

1 Like

Check this out.

Edit: the man beat me to it

1 Like

oh thx guys I didn’t know about this, I was searching for other things.