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!

1 Like

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()

1 Like

interesting but what would this return a table?

1 Like

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