Remove (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy
Fixed
>NXTBoy
Fixed
(No difference)

Revision as of 09:01, 26 December 2010

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)