How come my collision groups aren't working?

hello! i want to create a boundary to confine players to a single space, but I want to let my NPC be able to pass through the border, which is a union. i have two collision groups for the two: PlrBoundary and Player. I have a script in ServerScriptService that changes the player’s character descendants’ collision group to player and ive unchecked player to plrboundary in the collision groups view because im pretty sure that means that they wont collide ?? (im very new to ColGroups)

my players collide with the wall but the zombie NPC im using as a representer of my npc also collides with it, i believe it has something to do with my collision groups settings?? if someone can please find the error id be very grateful, thank you!
image
image

Looking at your code, you are never actually calling the function. Make sure you hook it up to an event!

2 Likes

ohh! how could i not see that lol?
thank you!