I have already made the animation, how would I make it so that when I press the m key the animation would happen? It is not a walk animation or anything like that btw. It can be in a GUI if that is the only way you know how to do it.
Firstly, I would like to stress to you that this is not a request site.
Secondly, to answer your question, I believe you would put your code in a LocalScript, inside of StarterPack, and then get the players' mouse.
Then, you would set up a UserinputService listener to listen for the M key, and when it happens, play your animation.