Not working probably (dx issue?)

So i was trying to make a kind of block that teleports whenever there is a projectile that is near you (like a shield) But it rarley works, i dont know if its the issue with my bad coding or the dx

Continue to help post