Remove (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer
No edit summary
>Mr Doom Bringer
No edit summary
Line 6: Line 6:
|object              = Global
|object              = Global
|}}
|}}
==Example==
<pre>
function onTouched(hit)
script.Parent:Remove()
end
script.Parent.Touched:connect(onTouched)
</pre>

Revision as of 05:43, 22 August 2007

Remove( )
Returns n/a
Description: Sets the Parent property to nil and calls Remove() on all children


Example


function onTouched(hit)
 script.Parent:Remove()
end

script.Parent.Touched:connect(onTouched)