Creating a Melee Swep

I need a little help.
I’ve already created the melee .mdl along with its anims, but I need help creating a melee script that also uses a secondary attack.

I tried using melee swep lua’s as my references but still need help.