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: What is that one code...

Previous Thread :: Next Thread 
UnAdmin is not online. UnAdmin
Joined: 10 Jul 2012
Total Posts: 4706
12 Aug 2012 05:52 PM
[ Content Deleted ]
Report Abuse
UnAdmin is not online. UnAdmin
Joined: 10 Jul 2012
Total Posts: 4706
12 Aug 2012 05:53 PM
[ Content Deleted ]
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
12 Aug 2012 05:54 PM
model = Workspace.model
stuff = model:GetChildren()
for i = 1, #stuff do
if stuff[i]IsA("Part") then
--code
end end

† KMXD †
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
12 Aug 2012 05:55 PM
model = Workspace.model
stuff = model:GetChildren()
for i = 1, #stuff do
if stuff[i]:IsA("Part") then
--code
end end
 
† KMXD †
Report Abuse
X2F9LRT is not online. X2F9LRT
Joined: 18 Jan 2012
Total Posts: 293
12 Aug 2012 05:55 PM
for _, v in pairs(game.Workspace.Model:GetChildren()) do
     if v:IsA("Part") then
          --Do Stuff
     end
end
Report Abuse
luke111000 is not online. luke111000
Joined: 26 Apr 2009
Total Posts: 1853
12 Aug 2012 05:55 PM
stuff = game.Workspace["Model"]:GetChildren()

for i,k in pairs(stuff) do
if k.className == "Part" then
-- Code here!
end
end
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