this is the full code, it is finding my location between myself and the ped because when i start the script near the ped the text shows up but when i run away it still stays on my screen although when i start the script away from the ped the text just wont show up at all no matter how close I am, im thinking it has something to do with the loop as the if statement is not working everytime im nearby or far away