How to make an enemy walk in a straight line?

I am attempting to make an enemy that will walk in a straight line. I followed a tutorial from Virtus Learning on YouTube and it taught me how to make an enemy that will follow the player within its peripheral vision using a nav mesh, and it used the AI MoveTo node, which has a destination input, but I do not know how to get that to work. If there is a way to use it without the AI MoveTo node that is fine. All I need is the enemy to move along an axis at all times. Similar to how a goomba behaves in Mario. (I am making a 3D game, though, not a 2D game.)

If the video I talked about seemed useful to anyone here is the link: How To Create AI And Enemy Basics - #42 Unreal Engine 4 Beginner Tutorial Series - YouTube