Fighting System With Automatic Punching Aim

So im working on a punch system and I want to make it so that once the player falls on the floor you start punching downwards so that you can keep on reaching them.

(I already have downward punching animations)

What would be the best way to make this system because I have no clue how to start this project.

Give the characters to hold a value, for example a StringValue called “State”.
If the character is downed change the “State” StringValue value to “downed” for example.
Now simply check if the character is downed through that value and play the appropiate animation.