of     1   

Shotokin
#140485374Wednesday, July 16, 2014 3:52 AM GMT

I'm wondering what i's and #'s do. If you could tell me what they mean, that will be great.
Shotokin
#140485584Wednesday, July 16, 2014 3:54 AM GMT

Bump.
systematicaddict
#140485671Wednesday, July 16, 2014 3:55 AM GMT

i is a variable. # is used to get the number of elements in a table. tab = {1,2,3,4,5} print(#tab) >> 5
Scriptos
#140485776Wednesday, July 16, 2014 3:56 AM GMT

i's? If you're talking about "for i = 1,10 do" or "for i,v in pairs() do" then it doesn't really have to be an i. You can use anything. i just stands for integer or iterator. #'s? You'll have to be more specific. If you did print(#workspace:GetChildren()); it'll print the number of child objects inside of workspace.
Shotokin
#140485800Wednesday, July 16, 2014 3:56 AM GMT

What does the i variable do? I've seen it in a few scripts.
128GB
#140487884Wednesday, July 16, 2014 4:17 AM GMT

A variable can be anything local i = "hello" print(i) -->hello local i = "good bye" print(i) -->good bye You can replace i with anything local this_is_a_really_long_variable_for_no_reason = "hello" print(this_is_a_really_long_variable_for_no_reason) -->hello But if you give it a really long variable name it'll be a pain to type out and remember, so people tend to use short ones.
AnonyAnonymous
#140487984Wednesday, July 16, 2014 4:19 AM GMT

As an example, if I used something such as, for Num = 5,100,5 do print(Num) end "Num" would be the current number the loop has reached as a result, if it was at the beginning, "Num" would be equal to 5 because the loop's starting point is 5 and the point it's trying to reach is 100. In the example, "5,100,5", the last "5" would just add five continuously until it reached 100. To help you understand this better, "5,100" would just add 1 to the 5 until it reached 100. "print(Num)" would just print the value of Num the amount of times it takes to reach the ending point. Hopefully this helps you understand this more clearly.

    of     1