And so, to make a smooth transition we have two options.
1.
A: AnimationName:Play(transitiontime in seconds)
B: AnimationName:Stop(transitiontime in seconds)
2.
A: AnimationName:ChangeWeight(Animation Weight)
In the first method,
we set the time value until the animation reaches 100% weight (Weight is the percentage of how much the animation changes the pose of the character.).
In the second method, we change the weight manually, rather than setting a time when it reaches 100 percent.
Code Example:
AnimationName:Play(0.2)--You can change
AnimationName:ChangeWeight(0.5)--This means animation will affect character pose 50%
I hope this has been useful for your game development.