DmC 5 Style Ghost Character

Hello, I’m trying to make a system like the one in the video I attached, but I can’t figure out how to do it. When playing an animation, how can I make it repeat with an auxiliary ghost character?