No collision dummy

Some error again line 32 to 46 with child and object

for _, v in pairs(workspace:GetDescendants()) do
if child ~= npc and not child:IsDescendantOf(npc) then
onChildAdded(v)
else
PhysicsService:SetPartCollisionGroup(object, npcCollisionGroupName)
end
end

workspace.DescendantAdded:Connect(function(child)
if child ~= npc and not child:IsDescendantOf(npc) then
onChildAdded(child)
else
PhysicsService:SetPartCollisionGroup(object, npcCollisionGroupName)
end
end)

I wrote it on phone, I’ll open pc and write it there, give me a second please.