I’m making a model resizing that grow models. I wan’t to know how to detect number of all specific type objects in table to stop a loop (for example number of all scripts) sorry for my english
Can you give an example of what you mean?
If you’re storing instances in a table, then you can use this:
local count = 0
for i, v in pairs(table) do
if v:IsA("classname") then
count += 1
end
end
The count
value would be the number of objects in the tabel with the class you specified.
I think this is what you’re asking for. Sorry if I misunderstand.
Ok , sorry for long time, but i repair my pc, after research i found , you can use #getChildren() == index to get the last object
anyway thanks for help
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.