Hello developers ,
I was trying to get all of the properties of a part (without HTTPService).
I don’t need it for something specific, just testing.
I thought to myself if ModuleScripts are just tables, and I can loop through them and see what’s in them. Can I do the same with Instances (Since module scripts are just tables)?
Basically, if an Instance (like part) was just a table (Like module scripts), I would be able to loop through the table.
But I got the Exception: (table expected, got Instance) as I expected, but isn’t Instance a table?
If not, what is it then? Lua doesn’t have a keyword like classes, OOP is done by tables and metatables.
So, Instance is something else, not a table, so I thought of Java (another language I know a bit of).
You can’t loop through a Java class, only through an Array (or Vector, ArrayList, etc).
All of the private variables remain hidden. Is it the same case here? The Instance is programmed by another language that contains classes (or something similar) and everything (like private variables) remains private?
Are Roblox and the Instance programmed by another language? Is there a way to get the properties of an Instance without a Service or something external?
One thing I am sure about, Instance doesn’t exist in pure Lua (outside of Roblox).
Thanks for answering, I might have reached the wrong conclusions , just let me know