function Path.GetNearestCharacter(t)local P,W=nil,-1 for Y,b in ipairs(Players:GetPlayers())do if b.Character and(b.Character.PrimaryPart.Position-t).Magnitude>W then P,W=b.Character,(b.Character.PrimaryPart.Position-t).Magnitude end end return P end
--
function Path.GetNearestCharacter(fromPosition)
	local character, magnitude = nil, -1
	for _, player in ipairs(Players:GetPlayers()) do
		if player.Character and (player.Character.PrimaryPart.Position - fromPosition).Magnitude > magnitude then
			character, magnitude = player.Character, (player.Character.PrimaryPart.Position - fromPosition).Magnitude
		end 
	end
	return character
end
