How do i make Walking Animations smooth? (like the default ThirdPersonCharacter)

hi, like the ThirdPersonCharacter, i’m trying to make my animations smooth. I had a old set up where it plays the animation when I press any movement keys, but whenever I let go of that key it went back to the idle animation, so I stopped that and tried to make it smoother. I tried putting the animation before it moves, but then it doesn’t work either, and the character just has a leg and arm spasm. I don’t understand how I would do this, and i’m very very confused. how would I do this? My Jumping works fine, so that isn’t a worry, as it just Changes Mesh anyway.