Top Down 3D melee combat

Hi, I’ve been trying to put together a top down 3d game in Unity 5, with the help of google and putting together various codes if found on there into one I finally got the character controller working great, my problem is that I’m trying to make a combat system as seen in The Legend of Zelda: A Link Between Worlds, but I can’t find any tutorials that guide you in how to do this, and all of my coding attempts have been complete flops, I hope you guys can help me out.
Player movement script:

When you have a big, overarching problem like this, I suggest breaking it down into smaller problems, then breaking those down into even smaller problems, and so on, until you end up with problems small and simple enough to solve on your own or ask very specific questions about.

For instance, in your case, you might break it down into different enemies, different things the player can do, how different enemies behave, what happens when the things the player can do interacts with the enemies, what happens when the things the enemies can do interact with the players, etc. You’ll likely have quite a few different enemies, and it would be a good idea to write down your ideas for a few of them, and decide what they have in common, and use that as a basis for your code.

Each of these enemies is going to spin off into entirely new sets of problems, of course, so you’ll want to take the simplest one you can think of and figure out how to do that, and go from there.