ChildAdded (Event): Difference between revisions
From Goodblox Wiki
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{CatUp|Events}} | {{CatUp|Events}} | ||
<onlyinclude>{{Event| | <onlyinclude>{{Event| | ||
name = ChildAdded | name = ChildAdded | ||
Line 7: | Line 6: | ||
|object = Global | |object = Global | ||
}}</onlyinclude> | }}</onlyinclude> | ||
<pre> | <pre> | ||
function onChildAdded(child) | local function onChildAdded(child) | ||
print (child.Name) | print(child.Name) | ||
end | end | ||
workspace.ChildAdded:connect(onChildAdded) | |||
</pre> | </pre> | ||
[[Category:Events]] | [[Category:Events]] |
Latest revision as of 21:03, 23 September 2021
Event | |
---|---|
Syntax | ChildAdded( Instance Child ) |
Description: | Fired after a child is added. |
In Object: | Global |
local function onChildAdded(child) print(child.Name) end workspace.ChildAdded:connect(onChildAdded)