Add a Metadata property to the Instance class

I believe it would be beneficial to add a String property to the Instance class that does nothing at all, but can be used within scripts to store information. For example, if the part has ownership, the metadata property could hold the player’s username or userid. This can also be used to quickly differentiate different types of parts and their functions, similar to tags in Unity.

This, in combination with JSON encoding would be even more powerful for storing tables of data for more complex uses.

I believe this would be more suitable than using Value objects (IntValue, StringValue, etc.), because in many cases you will have to check if those values exist within the instance, and if they are the correct corresponding values before using them. It would be more efficient to simply read directly from a string than having to use FindFirstChildOfClass.

I hope you consider my proposal and give me any feedback you may have, thank you!

1 Like

This topic was automatically closed after 1 minute. New replies are no longer allowed.