What do you want to achieve? I’ve made a simple script that will detect when a union is touching something, but it isn’t working. The prints don’t print, which means it’s not even running the touched part and I have 0 clue why (no errors, by the way)
script.Parent.Touched:Connect(function(toucher)
print("Work 1")
if toucher.Parent.Name == "TerrainType1" or toucher.Name == "TerrainType1" then
print("Work 2")
else
script.Parent:Destroy()
end
end)
Have you seen this thread? Particularly the link on the last reply, which the poster says is a good solution even though it wasn’t marked as a solution;