How can i get a part to look at the furthest player?

i’ve already looked around but theyn were mesh related, but can someone teach me how?
i don’t prefer videos since they would lag my computer.

local players = game:GetService("Players")

local function getFarthestCharacter(part : BasePart)
	local farthestDistance, farthestCharacter = 0, nil
	for _, player in ipairs(players:GetPlayers()) do
		if not player.Parent then return end
		if not player.Character then return end
		local distance = player:DistanceFromCharacter(part.Position)
		if distance >= farthestDistance then
			farthestDistance = distance
			farthestCharacter = player.Character
		end
	end
	return farthestDistance, farthestCharacter
end

local part = workspace.Part
local farthestDistance, farthestCharacter = getFarthestCharacter(part)
local characterPivot = farthestCharacter:GetPivot()
part.CFrame = CFrame.lookAt(part.Position, characterPivot.Position)