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 » Game Design
Home Search
 

Re: A way to get all properties

Previous Thread :: Next Thread 
thepizz is not online. thepizz
Joined: 05 Mar 2011
Total Posts: 2612
09 May 2015 11:28 AM
Is there anyway someone can get the properties of an object without needing an an exception for every single child?

For example, :GetChildren() would return all the children of an object in a table.
Is there anything like that which would return a table or something with all an objects properties?

I understand that I can just go to object types and make a million tables all the objects, but I was wondering if I had a way around this.
Report Abuse
Qorm is not online. Qorm
Joined: 25 Jul 2010
Total Posts: 1650
09 May 2015 12:35 PM
for o,p in pairs(game.Workspace:GetChildren()) do
print(p.Name)
end

is that what u meant
Report Abuse
thepizz is not online. thepizz
Joined: 05 Mar 2011
Total Posts: 2612
10 May 2015 05:49 PM
No, I mean an objects properties

Like a way to get all the different properties of different objects without having to add a giant list of "if v:IsA("Part") then print(v.Name) print(v.Size) end"
ect
Report Abuse
notfruit is not online. notfruit
Joined: 21 Sep 2012
Total Posts: 1386
10 May 2015 07:48 PM
I'm guessing roblox objects are just tables, so do a generic for loop (for key, value in ipairs(foo))
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
10 May 2015 07:52 PM
Generic for loops don't work.
Report Abuse
notfruit is not online. notfruit
Joined: 21 Sep 2012
Total Posts: 1386
10 May 2015 07:57 PM
Well, they should >:(
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
10 May 2015 07:57 PM
Roblox objects are userdatas not tables.


I script -~ chimmihc
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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