List all Attributes

from this topic how would I get a list of all attributes, cause I want to switch to tool properties being listed!

Hi FerbZides!

Is this what you’re talking about? Or do you mean a list of all attributes in your game?

local myAttributes = instance:GetAttributes()

interesting but what would this return a table?

It returns a dictionary of strings where the key is the attribute name, and the value is the attribute’s value. Here is the wiki page.

This function returns a dictionary of string → variant pairs for each attribute where the string is the name of the attribute and the variant is a non-nil value.

2 Likes