Remove (Function)

From Legacy Roblox Wiki
Revision as of 02:26, 27 December 2010 by >ArceusInator (There's a box at the end and I don't know how to get rid of it. Help appreciated.)
Jump to navigationJump to search
Remove( )
Returns nil
Description: Sets the Parent property to nil and calls Remove() on all children







Example

Template:CodeExample

function onTouched(hit) script.Parent:Remove() end

script.Parent.Touched:connect(onTouched)