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

How would I get how many of something is in workspace?

I am making a plugin and for it to be decent I need to be able to check if there is more then one of a certain item in workspace.

Any help?

2 comments

0

I have some tips, use GetChildren and the "#" operator together. You can also add a generic for loop to that to count the decedents. We are not a request site so you MUST research these and make your own code and post it when it doesn't work.

0

I wasnt asking for exact coding, I did however want an example I didnt even know where to start.

1 answer

✓ Accepted answer

not a request site but here is the code:

location=(the path)
children=path:GetChildren()
numberofchildren=#children

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