function Path.GetNearestCharacter(T)local j,y=nil,math.huge for Q,u in ipairs(Players:GetPlayers())do if u.Character and(u.Character.PrimaryPart.Position-T).Magnitude<y then j,y=u.Character,(u.Character.PrimaryPart.Position-T).Magnitude end end return j end
--
function Path.GetNearestCharacter(fromPosition)
	local character, dist = nil, math.huge
	for _, player in ipairs(Players:GetPlayers()) do
		if player.Character and (player.Character.PrimaryPart.Position - fromPosition).Magnitude < dist then
			character, dist = player.Character, (player.Character.PrimaryPart.Position - fromPosition).Magnitude
		end
	end
	return character
end
