How to make parts uncollided for npcs but not for players?

So im trying to make an npc system, where they can walk threw doors, but other players can’t, how would I go about scripting this?

1 Like

You can Orignally Set the Brick’s / Door’s CanCollide to false. Now Everyone can Go Through It.
Now To Only Make the NPC Go through It…

You can Make A Local Script and Place it In Starter Player -> Starter Character Scripts.
Now in The Script u can Basically Set the CanCollide to true So The Local Player can Collide.

local Door = game.Workspace.Door -- Define The Door
Door.CanCollide = true

Try this:

4 Likes