Remove (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
Don't need category
>Blocco
No edit summary
Line 1: Line 1:
<onlyinclude>{{Method|name = Remove
<onlyinclude>{{Method|name = Remove
|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]]

Revision as of 15:40, 30 August 2010

Remove( )
Returns nil
Description: Sets the Parent property to nil and calls Remove() on all children.
Member of: [[RBX.lua.Instance (Object)|Instance]]
Example
function onTouched(hit)
  hit:Remove()
end

script.Parent.Touched:connect(onTouched)