Remove (Function)

From Goodblox Wiki
Revision as of 11:38, 23 June 2020 by Pizzaboxer (talk | contribs) (Created page with "<onlyinclude>{{Function| name = Remove |arguments = |returns = n/a |description = Sets the Parent property to nil and ca...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Function
Syntax Remove( )
Returns n/a
Description: Sets the Parent property to nil and calls Remove() on all children
In Object: Global


Example


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

script.Parent.Touched:connect(onTouched)