Sword is just colliding with AI, so it doesn't receive damage

well…I’ve thinked…if when I attack I apply a knockback? so sword is never just into AI capsule or not? How can I apply that?