NPC follow a player in patrol mode

Hello, I’m wondering how I can define a user who needs him to be followed by an NPC. I have no idea how to download the user

Script:

function patrol() -- NPC mode patrol
	local NPCPlayerController = script.Parent.Configuration.NPCPlayerController

	while task.wait(1) and NPCPlayerController.Value == "" do
		local waypoints = workspace.Roads.ImportantWalkPoints:GetChildren()
		local randomNum = math.random(1, #waypoints)
		walkTo(waypoints[randomNum])
		print(waypoints, randomNum)
				
		if NPCPlayerController.Value ~= "" then
		local NPCPlayerControllerPlayer = script.Parent.Configuration.NPCPlayerController.Value
		print(NPCPlayerControllerPlayer)
			while task.wait(0.5) do
			if script.Parent:FindFirstChild("Humanoid") then
				script.Parent.Humanoid:MoveTo(NPCPlayerControllerPlayer.HumanoidRootPart.Position)
				end
			end
		end
	end
end