At the minute, if you attempt to swing a hammer at a player, the hammer doesnt hit them. Is there a way to make the hammer hit somebody.

if (hammer hits player)
{
       Puts("Hit");
}​

Something like this. Can anybody help?