Why is a part not firing a touched event when touched

In case if the issue wasn’t already resolved by all this time,

From what I see, the issue might be in you trying to compare the name of a part to another instance

if hit.Name == game.Workspace.noteblock:FindFirstChild(“music”) then

Are you trying to compare the names of both objects?

If yes then try this

script.Parent.Touched:connect(function(hit)
if hit.Name == game.Workspace.noteblock:FindFirstChild(“music”).Name then – change this
game.Workspace.noteblock.Music:Play()
end
end)