Thanks So Much. With your help I was able to figure out hot to make it work off any position when parented using the toComp that I already kinda know. Here it is. It must be messy but it works for what i need it.
L1 = thisComp.layer(“BlockA”);
LCP1 = L1.toComp([0,0,0]);
L2 = thisComp.layer(“BlockB”);
LCP2 = L2.toComp([0,0,0]);
p1 = LCP1;
p2 = LCP2;
tolerance = 1;
if (length(p1, p2) < 2) 0
else 100