Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by
IcyEvil 260 Moderation Voter
9 years ago

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?

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. EzraNehemiah_TF2 3552 — 9y
0
I wasnt asking for exact coding, I did however want an example I didnt even know where to start. IcyEvil 260 — 9y

1 answer

Log in to vote
0
Answered by
lukeb50 631 Moderation Voter
9 years ago

not a request site but here is the code:

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

Answer this question