Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I get the properties of any Instance? [Resolved]

Asked by 9 years ago

I was wondering, is there a way to print out all the properties of any given Instance? For example; you run a certain line of code(what i'm trying to figure out) and it prints out all the properties of the target object. Lets say this object is a part. This function prints out whether CanCollide is true or false, what BrickColor the part is, the size, and the position, etc.

Is this possible without naming all the properties prior to use? What I've tried...

for i, v in pairs(part:GetChildren()) do
print(part[v])
end
-- assume that part is defined

This doesn't even work, just more to show that I really, really, really, can not understand this myself.

-- Resolved Somebody referenced me to the API_Dump and I got myself an interpreter. (http://wiki.roblox.com/index.php/Class_reference/API_dump)

1 answer

Log in to vote
0
Answered by 9 years ago

I don't think you can. The Only way is to tell the code each properties of the instance.

Ad

Answer this question