Teleport bug "breaks" dummy AI

So I keep having problems on my teleport system. The bug is that every time I teleport around the map, the enemies don’t come up to me.

Proof #2: Script:

local EnemyHumanoid = script.Parent.Humanoid
local EnemyTorso = script.Parent.Torso
local AttackAnim = EnemyHumanoid:LoadAnimation(script.Attack)
local HRP = script.Parent.HumanoidRootPart

--Detect nearby players and attack--
local function findHumans()
	local agroDistance = 50
	local target = nil
	for i,v in pairs(game.Workspace:GetChildren())do
		local Humanoid = v:FindFirstChild("Humanoid")
		local Torso = v:FindFirstChild("Torso")
		if Humanoid and Torso and v ~= script.Parent then
			if (EnemyTorso.Position - Torso.Position).magnitude < agroDistance then
				agroDistance = (EnemyTorso.Position - Torso.Position).magnitude
				target = Torso
			end
		end
	end
	return target
end

local attackDistance = 5
local debounce = false
local Cooldown = script.Cooldown.Value

while wait(0.2) do
	local torso = findHumans()
	if torso then
		EnemyHumanoid:MoveTo(torso.Position)
		--If the Enemy is near the player--
		if (torso.Position - EnemyTorso.Position).magnitude < attackDistance then
			wait(0.5)
			nearValue = true
			local Humanoid = torso.Parent:FindFirstChild("Humanoid")
			EnemyHumanoid.WalkSpeed = 0
			if not debounce then
				debounce = true
		        AttackAnim:Play()
		        wait(0.5)
				Humanoid:TakeDamage(10)
			    if EnemyHumanoid.Health == 0 then
				    return
			    end
				wait(Cooldown)
				debounce = false
			end
			if script.Parent:FindFirstChild("Hit")then
				return torso
			end
		else
			EnemyHumanoid.WalkSpeed = 16
		end
	end
end