Remove (Function)

From Goodblox Wiki
Revision as of 02:47, 22 September 2021 by Xyrafrost (talk | contribs) (→‎Example)
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

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

script.Parent.Touched:connect(onTouched)