Remove (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy Don't need category |
>Camoy Don't need category |
(No difference)
|
>Camoy Don't need category |
>Camoy Don't need category |
(No difference)
|
Remove( ) | |
Returns | nil |
Description: | Sets the Parent property to nil and calls Remove() on all children. |
Member of: | [[RBX.lua.Instance (Object)|Instance]] |
function onTouched(hit) hit:Remove() end script.Parent.Touched:connect(onTouched)