of     1   

Taser597
#101061002Thursday, June 13, 2013 4:25 AM GMT

It would be very useful if there were a method we could call that would return a table of an object's properties, methods, and events. I think this would be useful for those scripters out there who, like me, don't want to crunch through a table of every property in ROBLOX using nasty loops with pcall, but are forced to from a lack of viable options.
Slydexia
#101061618Thursday, June 13, 2013 4:31 AM GMT

Uh No idea with this means. Explain?
yoyoman2
#101061814Thursday, June 13, 2013 4:33 AM GMT

it is a very simple thing to make you know. I dont think that they will work on something like that.
Flunken
#101061915Thursday, June 13, 2013 4:34 AM GMT

[ Content Deleted ]
Taser597
#101062032Thursday, June 13, 2013 4:35 AM GMT

For example, if I'm encoding a model as a string of text, I have to save and set the property of each object. (Name, Position, Size, Color, etc.) So if I'm doing this for numerous different parts which each have a dozen different properties, I'd like a way to read the properties so I don't try and set properties that don't exist, causing errors. At the moment I have to take a huge table with dozens of different names of properties and test each one on the unknown object to see if it exists. Such methods are inherently laggy and could be mitigated through the implementation of a simple method to return each property of an object, sort of like the :GetChildren() method.
Slydexia
#101062195Thursday, June 13, 2013 4:37 AM GMT

I don`t understand what exactly are you trying to do...
Taser597
#101062863Thursday, June 13, 2013 4:45 AM GMT

Not sure if trolling, or just not a scripter, but... Example: function ReadProperties(Object) for key, value in ipairs(Object:GetProperties()) do print("The Property: " ..key.. " had value: " ..value) end end ReadProperties(Instance.new("Decal")) Would Print: The Property: Archivable had value: true The Property: ClassName had value: Decal The Property: Face had value: Front The Property: Name had value: Decal The Property: Parent had value: nil The Property: Shiny had value: 20 The Property: Specular had value: 0 The Property: Texture had value: http://www.roblox.com/asset/?id=23373710 The Property: Transparency had value: 0
Slydexia
#101063127Thursday, June 13, 2013 4:48 AM GMT

Err I`m not used to that kind of scripting lol.

    of     1