Remove (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy
Undo revision 45366 by Trappingnoobs (Talk) Actually less correct
>Legend26
No edit summary
Line 1: Line 1:
{{deprecated|Use [[Destroy (Method)|Destroy]] instead.}}
<onlyinclude>{{Method
<onlyinclude>{{Method
|name        = Remove
|name        = Remove

Revision as of 00:26, 21 December 2011

Deprecated:This item is deprecated. Do not use it for new work. Use Destroy instead.
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()