Remove (Function)

From Goodblox Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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)