Remove (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy added/changed/formatted |
>NXTBoy Float clear, category |
||
Line 1: | Line 1: | ||
<onlyinclude>{{Method | |||
|name = Remove | |||
|arguments = | |arguments = | ||
|description = Sets the Parent property to [[nil]] and calls Remove() on all children. | |description = Sets the Parent property to [[nil]] and calls Remove() on all children. | ||
|object = [[Instance]] | |object = [[Instance]] | ||
}}</onlyinclude> | |||
{{clear floats}} | |||
{{Example|<pre> | {{Example|<pre> | ||
function onTouched(hit) | function onTouched(hit) | ||
Line 15: | Line 13: | ||
script.Parent.Touched:connect(onTouched) | script.Parent.Touched:connect(onTouched) | ||
</pre>}} | </pre>}} | ||
[[Category:Methods]] |