Remove (Function): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer m Remove moved to Remove (Function) |
>Mr Doom Bringer No edit summary |
||
Line 9: | Line 9: | ||
==Example== | ==Example== | ||
{{CodeExample}} | |||
function onTouched(hit) | function onTouched(hit) | ||
:script.Parent:Remove() | |||
end | end | ||
script.Parent.Touched:connect(onTouched) | script.Parent.Touched:connect(onTouched) | ||
|} |