Hmm, try this..Sorry if I am wrong.Code:if(GoodDistance(playerTargetX, playerTargetY, absX, absY, 6) == false) { followID = AttackingOn2.playerId; } if (GoodDistance(playerTargetX, playerTargetY, absX, absY, 6) == true) { followID = 0; walkTo(0,0); }