Can I Create Attribute from script?

Hello all, just wondering is there a way to create a attribute using a script without adding it manually? I can’t seem to find anything on the Dev forum, Youtube and Wiki. If I missed anything about Attributes please let me know

1 Like

SetAttribute will create one if one doesn’t already exist.

Setting an attribute to nil will also remove it.

22 Likes

To add on to the previous reply use :GetAttribute to get the value associated with any set attribute.

I already know this I just diddn’t know how to create one from a script that’s all.