How to make a sprite move up and down while following another

image
This might work, don’t mind the errors, you just need to have the assets already made