local function yieldPlayAnimation(animationTrack, fadeTime, weight, speed) animationTrack:Play(fadeTime, weight, speed) animationTrack.Stopped:wait() print("Animation has stopped")end