Want Target's names to show on screen

I am doing space wars and want my auto aiming turrets that use a target finder and beacon to place the target name on a screen. IE if im in a server and there is person adam11 billy11 and charley111 i want the names of who ever the targetfinder is targeting to come up on my screen.

can anyone help me? i have tried experimenting

didn’t work