How to change player walking and run animation when a player holds left click mouse button?

How to change player walking and run animation when a player holds left click mouse button?

What solutions have you tried so far? Did you look for solutions on the Developer Hub?