The code I am using is the following:
for i, object in ipairs(newMob:GetDescendents()) do if object:IsA("BasePart") then PhysicsService:SetPartCollisionGroup(object, "Mob") end end
GetDescendents() always gives me this error " GetDescendents is not a valid member of Model "Workspace.Mobs.Mech"" no matter how many times I tried to fix this I never get close. Thanks.
It's a typo, you need to type "GetDescendants" not "GetDescendents".
https://developer.roblox.com/en-us/api-reference/function/Instance/GetDescendants