I am writing a script and I'm trying to figure out how to tell the script to return to me the number of parts in a model named "Pack" with a certain name. Basically it would search through the children of pack and tell me how many of the children have the name that I provide. Is there a function for this or a way to do this? Let me know if i need to clarify anything. Thanks!
COMMUNITY QUESTION
Is there a function that will count the number of parts in a model with a certain name?
1 answer
Yes,
local count = #obj:GetChildren()
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
What's you attempt? This is pretty simple if you know anything about for loops.