Let $A,B$ disjoint closed subsets of a normal topological space $(X,\Gamma)$. Show that there exist a continuous function $f:X\to [0,1]$ such that $f^{-1}(\{0\})=A$ and $f(B)=\{1\}$ if and only if $A$ is a $G_{\delta}$ on $(X,\Gamma)$.
Recall that $A$ is a $G_{\delta}$ set in $X$, if $A$ is the intersection of a countable collection of open sets of $X$.
Let $A,B$ disjoint closed subsets of a normal topological space $(X,\Gamma)$, and suppose there exist a continuous function $f:X\to [0,1]$ such that $f^{-1}(\{0\})=A$ and $f(B)=\{1\}$, but note that $$\{0\}=\bigcap_{n=1}^{\infty}{\left[0,\dfrac{1}{n}\right)}$$
$$A=f^{-1}(\{0\})=f^{-1}\left(\bigcap_{n=1}^{\infty}{\left[0,\dfrac{1}{n}\right)}\right)=\bigcap_{n=1}^{\infty}{f^{-1}\left[0,\dfrac{1}{n}\right)}$$
Thus, $f^{-1}\left[0,\dfrac{1}{n}\right)$ is in $\Gamma$ for all $n\in\mathbb{N}^{+}$, so $A$ is a $G_{\delta}$ in $(X,\Gamma)$.
But, I really need help with the other part of the proof. Thanks!!