How does one check if a part has hit a HumanoidRootPart or not?

Hi!
Im making a game with a sword, i cant figure out how to see if a part has touched a HumanoidRootPart or not.
It would be nice if someone could help me out.
Thanks!

example of a script involving identification of a touched part

whateverpart.Touched:Connect(function(part)
 if part.Name == "name" then

 end
end)

oh thanks!
didnt know it was that simpleā€¦