How to make an object goes up and down while going to a target

Didn´t work properly, i don´t know if i´m missing something. It only goes in z axis without arch.