More of a general question than to do with scripting. But if I declare a local variable in a script, and lets say this script goes in a part that has 20 duplicates (i.e, there are 20 scripts with this local variable) would this count as 20 local variables or one?
I know that I could use CollectionService instead of this and as far as I know it would count as only 1 variable in that case; but this question is just for curiousity.

1 comment
Thank you, I'm worried about reaching the 200 local variable limit even though I'm trying to cut down on declaring too many useless variables.