AncestryChanged (Event)

From Legacy Roblox Wiki
Revision as of 14:19, 27 January 2011 by >Camoy (fixed)
Jump to navigationJump to search
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