I'm having trouble with this and I really don't know how to get around it. Both of the parts that touch each other are identical and they're both cloned objects, therefore they both hold this code. Is there a way I could only make it so one of those parts execute it?
wait(2)
function ontouch(part)
if part.Name == "BombBit" then
script.Disabled = true
local bitCln = game.ServerStorage.BombBitTwo:Clone()
bitCln.Parent = workspace.Bitz
bitCln.Position = script.Parent.Position
script.Parent:Destroy()
end
end
script.Parent.Touched:Connect(ontouch)

4 comments
Both parts need the same name for the script to execute, the point is that when these two of the same objects collide, both get destroyed and a new part gets placed in.
Sorry I wasn't more clear with my question.
Wouldn't it not hurt to change a few lines of code? You could use or for example if name == "hello" or "hi" then - - if name is "hello" then it will execute but if it isn't AND it is hi then it will execute, other than that i can't help.
It's all good, I'll experiment a little bit more but thank you