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 » Scripters
Home Search
 

can i get a for loop to go through a folder

Previous Thread :: Next Thread 
CeilingEater is not online. CeilingEater
Joined: 08 Aug 2015
Total Posts: 162
17 Aug 2015 11:31 AM
i need a for loop to check through a folder or model or something, but I don't know how
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
17 Aug 2015 11:31 AM
local model =

for Index, Content in pairs(model:GetChildren()) do

end
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
17 Aug 2015 11:32 AM
model:GetChildren()
there's ur table
Report Abuse
teamkilled is not online. teamkilled
Joined: 14 Apr 2013
Total Posts: 1748
17 Aug 2015 11:32 AM
for _,obj in ipairs(FOLDER:GetChildren()) do
-- obj is every descendant
end
Report Abuse
Drakles is not online. Drakles
Joined: 19 Oct 2014
Total Posts: 1066
17 Aug 2015 11:32 AM
local model = game.Workspace.Model:GetChildren();

for i,v in next, model do
print(v.Name);
end

This'll look through the given model and print each object's name.

Life is short, so grip it and rip it.
Report Abuse
CeilingEater is not online. CeilingEater
Joined: 08 Aug 2015
Total Posts: 162
17 Aug 2015 11:34 AM
thanks
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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