Let's have $f_n(x)$ defined on $\mathbb{R}$ by:
- $f_n(0)=0$
- $f_n(x)=\frac{1-e^{-nx^2x^2}}{x}$if $x\neq 0$
$f_n(x)\rightarrow \frac{1}{x}$
therefore, $f_n(x)$ converges weakly to $\frac{1}{x}$ \begin{align} \lim\limits_{x\rightarrow +\infty}\sup\limits_{n\in I}{|f_n(x)-f(x)|}&=\lim\limits_{x\rightarrow +\infty}\sup\limits_{n\in I}{|\frac{1-e^{-n^2x^2}}{x}-\frac{1}{x}|}\\ &=\lim\limits_{x\rightarrow +\infty}|\frac{1}{x}-\frac{1}{x}|\\ &=0 \end{align}
Hence $f_n(x)$ uniformly-converges.
I'm not sure about my demostration of uniform convergence when I change $|f_n(x)-f(x)|$. Can you tell me if I can improve it?
For the sequence $f_n(x)$ to be uniformly convergent for $x\in \mathbb{R}$, one requires that
$$\lim_{n\to \infty}\sup_{x\in\mathbb{R}}\left|f_n(x)-f(x)\right|=0 \tag 1$$
However, we have
$$f_n(x)=\begin{cases} \frac{1-e^{-n^2x^2}}{x}&,x\ne 0\\\\ 0&,x=0 \end{cases}$$
and therefore
$$\begin{align} f(x)&=\lim_{n\to \infty}f_n(x)\\\\ &=\begin{cases} \frac1x&,x\ne 0\\\\ 0&,x=0 \end{cases} \end{align}$$
Since the limit function is discontinuous at $x=0$, then $f_n(x)$ is not uniformly continuous on any interval that either contains $0$ or has $0$ as a limit point.
To see that $(1)$ is violated, we simply note that for $x=1/n$ we have
$$\begin{align} \sup_{x\in\mathbb{R}}\left(\left|\frac{1-e^{-n^2x^2}}{x}-\frac1x\right|\right)&=\sup_{x\in\mathbb{R}}\left(\frac{e^{-n^2x^2}}{|x|}\right)\\\\ &\ge n/e\to \infty \end{align}$$