Remove (Method)

From Legacy Roblox Wiki
Revision as of 15:40, 30 August 2010 by >Blocco
Jump to navigationJump to search
Remove( )
Returns nil
Description: Sets the Parent property to nil and calls Remove() on all children.
Member of: [[RBX.lua.Instance (Object)|Instance]]
Example
function onTouched(hit)
  hit:Remove()
end

script.Parent.Touched:connect(onTouched)