I need to make a weapon

The weapon I am trying to make is the Fadeblade. I want it to make me invisible when I crouch and give me a dash ability. The dash ability works by the right click and should dash me 10 blocks ahead in 0.5 movement speed. However both features don't work. If someone could review the code it would help me a lot. Idk if I can paste all my code here but if someone could message me and I could give you my data pack folder and you could fix some errors. Any help is appreciated
Continue to help post