This isn't a CanCollide Properties setting, this is where if a npc/model (like a zombie) collides with a wall, that they can walk through it, but a player can't. I couldn't think of anything and does someone have a solution?
wallpart.Touched:connect(function(h) isnpc = h.Parent:FindFirstChild('Humanoid') if isncp ~= nil and h.Parent.Name = "npc name" wallpart.CanCollide = false wait(2) wallpart.CanCollide = true end end)