How to create complex loop animation

How do I create a complex loop animation with blueprint actor? I need an object to go back and forth while also going up and down at the tail end of it. How would I do that? Thanks!