getpropertychangedsignal
Returns instance:GetPropertyChangedSignal(property).
Syntax
getpropertychangedsignal(instance: Instance, property: string) -> RBXScriptSignal
Parameters
| Parameter | Type | Description |
|---|---|---|
instance | Instance | The Instance to read from or modify. |
property | string | The property name to access. |
Returns
| Type | Description |
|---|---|
RBXScriptSignal | Instance:GetPropertyChangedSignal(property) |
Description
getpropertychangedsignal is part of the Signals library. Signal helpers resolve live RBXScriptSignal objects and their connection lists. Firing and replication use the client's real signal paths.
The call is read-only: it resolves the current value when invoked and does not change the underlying state.
Example
local part = Instance.new("Part")
getpropertychangedsignal(part, "Position"):Connect(function()
print("position changed")
end)
part.Position = Vector3.new(0, 10, 0)
Notes
- Signal helpers operate on the live RBXScriptSignal and its connection list.