Here is my code:
EDIT: Changed the code to this, did not fix it.
function onTouched(hit) if hit.Name ~= "Slime" and hit.Name ~= "Baseplate" then if hit.Name == "Cannon Shot" then script.Parent.ExisHealth.Value = script.Parent.ExisHealth.Value - 1 hit:remove() else hit:remove() end end end script.Parent.Touched:Connect(onTouched)
Basically if the slime ball hits a brick, it should destroy it. This works well, except when I copy a brick using a copy tool, or even copying in the Explorer while testing the game. The slime balls simply bounce off the copied brick without doing anything. They still will destroy/remove the original, but none of the copies.
Any suggestions?
Maybe when you create another part you are forgetting to name it "Cannon Shot"