Remove (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer
No edit summary
>Outofspace
No edit summary
Line 3: Line 3:
|arguments            =  
|arguments            =  
|returns              = n/a
|returns              = n/a
|description          = Sets the Parent property to nil and calls Remove() on all children
|description          = Sets the Parent property to [[nil]] and calls Remove() on all children
|object              = Global
|object              = Global
|}}
|}}

Revision as of 18:01, 3 August 2008

Remove( )
Returns n/a
Description: Sets the Parent property to nil and calls Remove() on all children


Example


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

script.Parent.Touched:connect(onTouched)