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

What does the # do?

I'm fairly new to advanced scripting, and started to see a lot of #'s in scripts. What are they and how do I use them? ROBLOX Wiki never explains to me in full detail..

1 answer

I believe it was explained in the wiki.

What the length operator does is return how many items in a table there are using an ipair like function or get the length of a string.

1 comment

0

Yes, especially helpful for using 'GetChildren' so you don't have to manually count how many objects in a model the script should cycle through-- # tells the for loop to repeat as many times as there are objects.

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