Remove (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>MrNicNac
Added an example that fits the method better.
>Camoy
No edit summary
Line 9: Line 9:
{{Example|This is an example of removing a part in the Workspace. Make sure there is one there before trying this.
{{Example|This is an example of removing a part in the Workspace. Make sure there is one there before trying this.
<pre>
<pre>
Game.Workspace.Part:Remove()
game.Workspace.Part:Remove()
</pre>
</pre>
}}
}}


[[Category:Methods]]
[[Category:Methods]]

Revision as of 00:58, 31 January 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()