Thanks dude i'll try it again. hahaha i know my C++ sucks they didnt teach us enough and im stuck with a thesis that requires a lot of C++ so the "robot.Read()" should be outside the loop after the declaration of laser proxy or inside the loopbefore "GetRange()"?