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: How can I see how many bricks I have in my place?

Previous Thread :: Next Thread 
Tonitoni is not online. Tonitoni
Joined: 14 Mar 2009
Total Posts: 6429
03 Oct 2012 06:45 AM
While in ROBLOX studio? I thought some of you might know.
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
03 Oct 2012 06:48 AM
result = 0

for i,v ipairs (game.Workspace:GetChildren())
result = result + 1
print(result)
end
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
03 Oct 2012 06:49 AM
result = 0

for i,v ipairs (game.Workspace:GetChildren()) do
result = result + 1
print(result)
end

--Forgot a 'do' last post.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Oct 2012 06:56 AM
WONG!

result = 0

function Check(loc)
for i,v in pairs (loc:GetChildren()) do
if v:IsA("Part") then
result = result + 1
elseif v:IsA("Model") then
Check(v)
end
end
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
03 Oct 2012 07:01 AM
WRONG!

He said parts not models. Don't go down this road with me kid.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Oct 2012 07:02 AM
You don't get my script
It checks for all parts including parts in models -.-
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
03 Oct 2012 07:03 AM
You also misspelled "WRONG", unless you were making a racist remark.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Oct 2012 07:03 AM
No, i fail at typing with lights off, i can't really see
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
03 Oct 2012 07:06 AM
This is off-topic so I shall no longer respond.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Oct 2012 07:08 AM
k.
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