How can i make an animation lock?

I’m using Unity 2019, and I need help with an animation. Basically, when the animation plays i want it to have the same effect as the leg locking in GoGoLoco. I need it to stop you from moving physically in VRChat. I’m making a fully animated avatar via Generic rig.