Problems with Collision Detector

So, I’m trying to make it so if my ship collides with ice it will print the text HIT in output.
But it is not working and I have tried a few scripts but nothing worked.

Here is the script

local ICE = game.Workspace.Union
local SHIP = game.Workspace.TESTSHIP

workspace.Union.Touched:Connect(function(partTouching)
if SHIP == partTouching then print(“HIT”)

end
end)

Any help would be appreciated
Thanks in advance!

Is SHIP a part or a model containing parts? If it’s a model then you would need to check if the touching part is a descendant.

1 Like

The ship is one Mesh and one seat, do I need to do this?

game.workspace.TESTSHIP.MeshPart

Wow, it worked without much work from you but still thanks