I searched all over internet but can't find why my script doesn't work. I want to create a wall wich only Players can walk through and nothing else. so i created in starterplayerscripts a localscript with:
game.Workspace.noPassZombiewall.CanCollide = false
but if i try this out when i press run game in robloxstudio, npc's walk right through. if i try it in a server in roblox studio they dont walk through, but at some point still do. what am i doing wrong?

1 comment
i tried & it works for me. did u misspell the wall name? make sure to anchor the wall & make sure to set CanCollide to true from the workspace itself