DescendantAdded (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Flurite No edit summary |
>Flurite No edit summary |
||
Line 7: | Line 7: | ||
{{clear floats}} | {{clear floats}} | ||
{{Example|<code lua> | {{Example| This code will print the name of any object that is parented under [[Workspace]]<code lua> | ||
local function onDescendantAdded(ins) | local function onDescendantAdded(ins) | ||
print(ins) | print(ins) |
Revision as of 01:58, 25 March 2012
DescendantAdded ( Instance descendant ) | |
Description | Fired after a descendant is added. |
---|---|
Member of: | Instance |
Example
This code will print the name of any object that is parented under Workspace
local function onDescendantAdded(ins)
print(ins)
end
game.Workspace.DescendantAdded:connect(onDescendantAdded)