delete part on touch roblox code example
Example 1: 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)
Example 2: delete part on touch roblox
function onTouched(hit)
2 if hit.telepad == 'BuildingBrick' then
3 hit:Destroy()
4 end
5 end
6 script.Parent.Touched:connect(onTouched)