How to measure a tools velocitys

im trying to get the velocity of a tool to determine the damage the knockback and stuff,
but when i get the swords velocity it just returns the velocity of the player character, not the actual tool itself why is this and how do i fix it?