Remove (Function)

From ROBLOX Wiki
Revision as of 12:29, 11 December 2024 by PRG (talk | contribs)
Jump to navigationJump to search
Function
Syntax Clone( )
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)