Collapse Sidebar


This event fires whenever an attribute is changed on the instance. This includes when an attribute is set to nil. The name of the attribute that has been changed is passed to the connected function.

For example, the following code snippet will connect the AttributeChanged function to fire whenever one of Instance’s attributes changes. Note that this code sample does not define Instance:

local function attributeChanged(attributeName)
    print(attributeName, “changed”)


See also

  • Instance/SetAttribute, sets the attribute with the given name to the given value
  • Instance/GetAttribute, returns the attribute which has been assigned to the given name
  • Instance/GetAttributes, returns a dictionary of string → variant pairs for each of the instance’s attributes
  • Instance/GetAttributeChangedSignal, returns an event that fires when the given attribute changes


Name Type Default Description

The name of the attribute that has been changed