Issue with walk forward animation

Hi, I’ve been pondering my head with this issue for a while now. The idle animation of my Alien works and it moves towards the player but I can’t get it animate to move forward. When I change the spider speed in the animation preview editor it does animate to move forward so something must be wrong with the function.
I’m using Unreal Engine 4.23.4 so that may differ in what I can and cannot use. The only difference is the Calculate movement function. It’s different from what the course shows.