Have a paper 2d flipbook play over a 2d image

I’m making a simple 2d rpg combat script and I want to implement attack animations. I’ve created a flipbook but am unsure how to set it up so the flipbook can be created and play over an actor when an attack happens. I’ve created an animation state machine but it only applies to the one actor ive made it for. I’m not entirely sure where to go from there.