while true do wait(.5)local o=findNearestTorso(script.Parent.Torso.Position)if o~=nil then script.Parent.EnemyHumanoid:MoveTo(o.Position,o)end end

while true do
	wait(0.5)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.EnemyHumanoid:MoveTo(target.Position, target)
	end
end
