I'm trying to figure out a way to make the player's avatar show the R15 walking animation, and when they aren't moving, the R15 idle animation, kinda like this video; https://www.youtube.com/watch?v=WlakBzP9QwE

I tried multiple codes but I deleted them when they didn't work, please help!