If EntityDistance(guy,pivot1) < 19 And EntityDistance(guy,pivot2) > 20 Then
Shouldn't that be: (two greater than symbols ">") or two less than symbols "<" ?
If EntityDistance(guy,pivot1) > 19 And EntityDistance(guy,pivot2) > 20 Then
or
If EntityDistance(guy,pivot1) < 19 And EntityDistance(guy,pivot2) < 20 Then