Remove (Method)

From Legacy Roblox Wiki
Revision as of 14:34, 21 December 2011 by >Sncplay42 (that was silly)
Jump to navigationJump to search
Deprecated:This item is deprecated. Do not use it for new work. Use Destroy to completely destroy an object and Parent to store it somewhere else.
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()