API:Class/Instance/GetPropertyChangedSignal


GetPropertyChangedSignal

Function of Object Icon.pngInstance
RBXScriptSignal GetPropertyChangedSignal (
    string property
)
Parameters:
  1. property

Returns: RBXScriptSignal
Description: Returns a signal that is fired when the specified property is changed on this object.

Example

local SomeGui = script.Parent
local connection = SomeGui:GetPropertyChangedSignal("AbsoluteSize"):Connect(function()
    -- SomeGui.AbsoluteSize has changed
end)
 
-- later:
connection:Disconnect()