Remove (Method)

From Legacy Roblox Wiki
Revision as of 13:39, 27 December 2010 by >Camoy
Jump to navigationJump to search
Remove( )
Returns nil
Description: Sets the Parent property to nil and calls Remove() on all children.
Member of: Instance


Example
function onTouched(hit)
  hit:Remove()
end

script.Parent.Touched:connect(onTouched)