generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Table stuff?

Previous Thread :: Next Thread 
RawrBot is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image