I made a attack script and all those and made a weapon sprite that fits my game (a pencil) now how do create an animation for it that thrusts whenever I click it (I know about animatorControl but have no idea how to use it) How do I create a thrust animation?
You should check out a 2D animation tutorial on youtube. And even then there are different ways, depending on how your character is made. Does it have a skeleton hierarchy or is it a spritesheet animation, But there are hundreds of youtube tutorials on 2D animations, so you should be able to find one that fits your needs quite easily.