Scripts aren't running in library components

I have a component that uses scripts to handle some of the animations. I published this component as a library file. When I import it into another file, the scripts don’t play in the state machine. I do see the scripts in the library UI.

Is there other setup that is needed in order to get the scripts to play inside a nested library component?