Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Whenever I try to use the function "GetDescendents()" I get an error. How do I fix this?

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.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.