delete what touched roblox code example
Example: delete part on touch roblox
function onTouched(hit)
2 if hit.Name == 'BuildingBrick' then
3 hit:Destroy()
4 end
5 end
6 script.Parent.Touched:connect(onTouched)
function onTouched(hit)
2 if hit.Name == 'BuildingBrick' then
3 hit:Destroy()
4 end
5 end
6 script.Parent.Touched:connect(onTouched)