Remove (Function): Difference between revisions

From ROBLOX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 2: Line 2:
|<onlyinclude>
|<onlyinclude>
{{Function|
{{Function|
name                  = Clone
name                  = Remove
|arguments            =  
|arguments            =  
|returns              = n/a
|returns              = n/a

Latest revision as of 12:30, 11 December 2024

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)