Remove (Function)
From Legacy Roblox Wiki
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)