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
 

how can i make this script better?

Previous Thread :: Next Thread 
GodOfGreed is not online. GodOfGreed
Joined: 23 Oct 2013
Total Posts: 3442
05 Jan 2014 11:57 PM
for _,x in pairs(game.Workspace:GetChildren()) do
for _,y in pairs(x:GetChildren()) do
for _,z in pairs(y:GetChildren()) do
for _,v in pairs(v:GetChildren()) do
end
end
end
end



i'd like to clean it up some
Report Abuse
Nagrath99 is not online. Nagrath99
Joined: 26 Mar 2011
Total Posts: 1537
06 Jan 2014 12:14 AM
That script does nothing.
Report Abuse
ElectricBlazeAlt is not online. ElectricBlazeAlt
Joined: 17 Aug 2012
Total Posts: 3535
06 Jan 2014 01:01 AM
Em.

function doStuff(obj)
for k,v in pairs(obj:GetChildren()) do
--Code here
if #v:GetChildren() > 0 then doStuff(v) end
end
end

doStuff(workspace)

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
Basswobble is not online. Basswobble
Joined: 18 Jul 2011
Total Posts: 3249
06 Jan 2014 02:51 AM
ElectricBlaze banned again? :c

Keyboard not found. Press F1 to continue.
Report Abuse
ElectricBlazeAlt is not online. ElectricBlazeAlt
Joined: 17 Aug 2012
Total Posts: 3535
06 Jan 2014 02:54 AM
@Basewobble - If ROBLOX was bound by the 5th Amendment, I wouldn't be. :(

They committed double jeopardy. I got banned for the same exact forum post that I was banned for 2 weeks ago. Another twist: THE POST WAS MADE 2 YEARS AGO. It's like the moderators are digging up my post history deliberately to get me terminated. Unfortunately, they have a lot of ammunition. :(

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
ElectricBlazeAlt is not online. ElectricBlazeAlt
Joined: 17 Aug 2012
Total Posts: 3535
06 Jan 2014 02:54 AM
*Basswobble

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
Basswobble is not online. Basswobble
Joined: 18 Jul 2011
Total Posts: 3249
06 Jan 2014 01:10 PM
That's pretty stupid...

Keyboard not found. Press F1 to continue.
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