AncestryChanged (Event)
From Legacy Roblox Wiki
AncestryChanged ( Instance child, Instance parent ) | |
Description | Fired after the child changes. |
---|---|
Member of: | Instance |
Example
local p = Instance.new("Part") p.Parent = game.Workspace local function ancestChange() print("Ancestry changed") end p.AncestryChanged:connect(ancestChange) p.Parent = game.Lighting --fires event