API Method to easily get the properties of an object

this method would be useful specifically for plugins
I was making a plugin, and I thought that such method exists until I found that it doesn’t exist,
yet the instance data type is a bit weird, it seems like a table, but it isn’t
and making a table with the instances and their properties is time consuming and not future proof
I tried to get the meta table of the instances but its locked

local part = Instance.new("Part")

local mt = getmetatable(part)

print(mt) -- The metatable is locked

even after 11 years this is useful

1 Like