I'm very confused

Hi! When using the pathfinding extension, I’m using a on game update block to check where the player is. However, I’m also trying to use a random percent chance to see if the following sprite will duck backwards. The following sprite will teleport to the player when told to follow the path. Can anyone help me out with this?