Changed (Event)/property

From Legacy Roblox Wiki
Revision as of 06:15, 27 April 2023 by Realjame (talk | contribs) (Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Changed ( Property property )
Description Fired whenever a property of the object changes.
Member of: Instance


Example

This code would print the value of each property of the Workspace, as well as its name, whenever it is changed:

Workspace.Changed:connect(function(property)
	print(property .. ": ", Workspace[property])
end)