How Do You Make Attacks?

Hi i’m new to the coding phase and i’m struggling a lot with how to make a working attack with an item and an animation if anyone can give me a useful video link or step by step description i would appreciate it unbelievably.

This guy’s 6-part series on melee combat goes quite in depth - you’d probably want to start at the beginning, but check out his 3rd video in particular for dealing with attack type animations: