How do I make a sphere move around the navmesh?

This is the closest tutorial I could find to what I am trying to do. I created a pawn BP class and added the script the only thing I did differently was make it a sphere instead of a manequin. When I press play it doesn’t move around the navmesh it just goes a random direction until it falls off the edge. Please help.