| |
|
|
| 06 Jun 2014 04:08 PM |
Well you can use brackets to index thinks and tables and instances.
Example: local t = {"Hi"} print(t[1])
game.Workspace could also be game["Workspace"]
i isn't defined so it really doesn't mean anything. |
|
|
| Report Abuse |
|
|
BaconSoap
|
  |
| Joined: 12 Sep 2010 |
| Total Posts: 1882 |
|
|
| 06 Jun 2014 04:08 PM |
That doesn't mean anything in particular. It's referring to a variable, i.
The i could mean anything.
e.g
local i = Workspace.example.Transparency |
|
|
| Report Abuse |
|
|
|
| 06 Jun 2014 04:09 PM |
It is supposed to mean something?
Read about tables honestly. 'i' is just the variable they used in the 'for loop'. Also, just wanted to make sure you aren't into table manipulation for the beginning, there are way more things to see before getting into that.. |
|
|
| Report Abuse |
|
|
Quasar99
|
  |
| Joined: 21 Nov 2009 |
| Total Posts: 9328 |
|
|
| 06 Jun 2014 04:10 PM |
the most common use of i is in for loops
example:
lolMyTable = {"Roblox", "is", "pretty", "cool"}
Roblox is in the first index of the table lolMyTable
print(lolMyTable[1]) would print "Roblox" to the output
also:
for i = 0, #lolmyTable, 1 do print(lolMyTable[i])` end |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 06 Jun 2014 04:12 PM |
^ errors
table[0] doesnt exist |
|
|
| Report Abuse |
|
|
Quasar99
|
  |
| Joined: 21 Nov 2009 |
| Total Posts: 9328 |
|
|
| 06 Jun 2014 04:12 PM |
| my bad, should be for i = 1, #lolMyTable, 1 do |
|
|
| Report Abuse |
|
|