State machine, get position

Hello, I’m having a hard time with scripting “get position/overlap sphere”.
I’m using a visual state machine.
Here is my set up:
*game object(knight)-get position-overlap sphere(radius 5)-if true-attack-if false-walk forward
*false is- less then 5

Please help is my first time doing a state machine.

Thank you Kindly