Problems with the combat system

Sure.
You first put a series of offset points around your enemy player.
Whenever the RaycastHitbox fires, check if the hit object was something ground based.
If it was ground based, then make rock effect.

A raycast hitbox module is here, great module:

here is your answer I was going to give