Help! How do I assign custom animation for when I character walks and stands idle?

Hello, I’ve been trying to develop a monster for a horror game and have not been able to have it play animations for when it’s walking or standing idle. I’m looking for a way to play the walking animation when it’s walking, and the idle animation when it is idle. (The movement I’m going for is to move to a random spot, stop, then continue moving. I’ve already coded this, but can’t get animations to play with this.) I’ve looked at many tutorials and still can’t figure this out. Any help please?