Remove (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Trappingnoobs
Added 'Recursively'. Can somone verify my edits if they see this? :)
>NXTBoy
Undo revision 45366 by Trappingnoobs (Talk) Actually less correct
Line 1: Line 1:
<onlyinclude>{{Method
<onlyinclude>{{Method
|name        = Remove
|name        = Remove
|description = Sets the Parent property to [[nil]] and recursively calls Remove() on all children.
|description = Sets the Parent property to [[nil]] and calls Remove() on all children.
|object      = Instance
|object      = Instance
}}</onlyinclude>
}}</onlyinclude>

Revision as of 21:23, 21 July 2011

Remove( )
Returns nil
Description: Sets the Parent property to nil and calls Remove() on all children.
Member of: Instance


Example
This is an example of removing a part in the Workspace. Make sure there is one there before trying this.
game.Workspace.Part:Remove()