Depending on your game's needs, you can implement this in two ways:
: The NPC uses Humanoid:MoveTo() or the PathfindingService to navigate toward that target's current position.
: It identifies the player with the shortest distance and sets them as the "target".
: Best for open fields. The NPC simply walks straight toward the player.