NPC looking at you at short amount of range

I want to make a NPC’s head looking at you and following your direction just like in the bloxys place that bodyguard, once you are close enough to him,
reply if you know how to script that.


Please come back when you have tried a few things yourself and what you got stuck on exactly.