GetPropertyChangedSignal
Engine signal for one Instance property. Listen with ~> or ::Connect.
Syntax
Section titled “Syntax”obj.GetPropertyChangedSignal("Name")~>Connect(fn);Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
name | string | Property name, e.g. "Transparency". |
Return value
Section titled “Return value”An RBXScriptSignal.
Luau emit
Section titled “Luau emit”obj:GetPropertyChangedSignal("Name")
Description
Section titled “Description”The callback receives no property value on some engine signals — read obj.Property inside the listener.
Example
Section titled “Example”part.GetPropertyChangedSignal("Transparency")~>Connect(func () { post(part.Transparency);});Emits:
part:GetPropertyChangedSignal("Transparency"):Connect(function() print(part.Transparency)end)