So I have an idle animation for my npc but when he does an action, I make the idle animation stop and the action animation play. This works, but the npc goes into a stiff position before playing the action animation.
robloxapp-20211008-1403404.wmv (419.0 KB)
Is there a method I could use to make this look smoother? Here’s the code if you need it.
local AttackAnim = humanoid:LoadAnimation(attack_anim)
local length = AttackAnim.Length
AttackAnim.Looped = false
StopAnimationTrack(humanoid)
AttackAnim:Play()
wait(length)
Any help is appreciated! Thank you