How would I temporarily change animations such as walking for a limited amount of time

Basically, I want to make my animations for my character when my character has a rock on their back. The issue comes to be is that I don’t know how to make this temporary.

I want to make a walk animation with the rock, that works.