Animation player not playing the next animation?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By psear

I have a scene which I am instancing (a loading screen). Below I have a segment:

loading_scene.get_node("AnimationPlayer").play("UI_Intro")
yield(loading_scene.get_node("AnimationPlayer"), "animation_finished")
loading_scene.get_node("AnimationPlayer").play("UI_Play")

“UIIntro” plays when the loading scene is just opening, and “UIPlay” is (should) be a looping animation that plays once the animation has finished. The problem is, the intro animation plays, but the looping animation that’s supposed to follow it doesn’t. I know that it’s not hanging at “yield” because some subsequent code in the same script is executed. It seems like a straightforward thing, what am I missing?