We’re excited to announce that Attributes are now available to use in your games!
What are Attributes?
Attributes allow you to customize instances with your own data. They are similar to built-in object properties, but you can create and modify your own attributes for any instance. Key features include:
Create, edit, and delete Attributes directly within Studio’s Properties window.
Attributes and their values are saved with your place and assets.
Attributes and their value changes are replicated so clients can access them immediately.
Attribute changes can be viewed in real time.
Documentation
For additional details on how to use Attributes with your project, check out this article on the Dev Hub: How to use Instance Attributes
How do you use them?
New attributes can be created and modified in Studio in the attributes section of the properties widget!
APIs
Attributes can also be created and controlled from scripts with the following APIs:
This is amazing! Gone are the days of having messy values all over your models!
I’m honestly super excited for this feature! Thank you so much! With this, our studios are going to be so much cleaner and nicer to work with, I really like this update!
It feels truly like a lifetime since I’ve been waiting for this feature to come out. Looks like it’s time to slowly say goodbye to all the ValueObjects in my projects and (ab)use these as much as I can.
I’ve always had a load of use cases I want to apply attributes to, all in the realm of configurations and systems…
Armour health, seperated from regular health and supporting damage padding
Attack types (elemental-based stuff)
NPC type configuration (rendering on client, behaviour initialised from server)
A whole lot more
Their release now comes in clutch for me as my team is preparing for another update to our game and I’ve been writing a model transparency system (includes hiding particles, beams and so on). Tags have provided me a bit of trouble when creating this system especially because of server overwrites of tags (have to wait a frame), but now I can combine tags and attributes to get my system done much better.
Can’t wait to start using them right away.
Instance references or custom classes next please?
This is revolutionary!
Without a doubt so many developers will benifit from this, and it will make developing so much more customizable! The days of using module scripts to hold all data will probably get streamlined by this!
I am so ready to start putting these in my games!
I am excited for this! There is no more needing to store a list of variables for cars, guns, etc. All you need to do is add an attribute and you can turn it into a property!
I’ve been using Attributes a ton, and it has probably been my favorite Roblox Studio update ever!
However, there are two more types that aren’t included yet that would be useful: CFrame and Object (like in ObjectValues). If those two types are added, I could say goodbye to Values forever!
Definitely easier than telling people to manually change values for every single value within a model. It saves more time! Hope this is released, I would
love to learn more of how it works.
Yesss I have been waiting for this, no more need to have clutterous values all over the place, you can really tailor your instances to your needs which is very useful. Good job Roblox.