Observe
Provides utility functions for observing instance properties, attributes, and children, immediately invoking callbacks with the current value and then again on every subsequent change.
Functions
Property
Observe.Property(property: string,--
The name of the property to observe
callback: function--
Called with the current value immediately and on every change
) → RBXScriptConnection
Observes the given property on an instance, immediately calling callback
with the current value and again whenever the property changes.
Attribute
Observe.Attribute(attribute: string,--
The name of the attribute to observe
callback: function--
Called with the current value immediately and on every change
) → RBXScriptConnection
Observes the given attribute on an instance, immediately calling callback
with the current value and again whenever the attribute changes.
Children
Observe.Children(callback: function--
Called with the full children list immediately and on every change
) → RBXScriptConnection
Observes the children of an instance, immediately calling callback with
the current children and again whenever a child is added or removed.
Returns a connection-like table with Disconnect() and Connected members,
compatible with standard connection cleanup patterns.