RawrBot
|
  |
| Joined: 22 Aug 2008 |
| Total Posts: 832 |
|
|
| 22 Jun 2012 05:00 PM |
for i, v in next, object:GetChildren() do print(v) end
for i,v in pairs(object:GetChildren()) do print(v) end
I noticed both scripts above work. What's the difference between them? |
|
|
| Report Abuse |
|
|
gamehero
|
  |
| Joined: 12 Jun 2007 |
| Total Posts: 1455 |
|
|
| 22 Jun 2012 05:09 PM |
| The one on top is much faster. That's all I know. I tested it. |
|
|
| Report Abuse |
|
|
RawrBot
|
  |
| Joined: 22 Aug 2008 |
| Total Posts: 832 |
|
|
| 22 Jun 2012 05:14 PM |
| Really? Good thing I found out about this. Thanks you're a hero lol. |
|
|
| Report Abuse |
|
|
gamehero
|
  |
| Joined: 12 Jun 2007 |
| Total Posts: 1455 |
|
|
| 22 Jun 2012 05:42 PM |
| Well now when I do it, there's hardly a difference. It might just be an alternative way at saying the bottom. Sorry about that. |
|
|
| Report Abuse |
|
|
RawrBot
|
  |
| Joined: 22 Aug 2008 |
| Total Posts: 832 |
|
|
| 22 Jun 2012 05:53 PM |
| Oh I see. But I'm using the top one anyway because it's easier for me to type. |
|
|
| Report Abuse |
|
|