The Gromov-Witten invariants of the Hilbert schemes of points on surfaces with
pg>0This paper uses cosection localization to prove that Gromov-Witten invariants of Hilbert schemes $X^{[n]}$ of points on a simply connected smooth projective surface $X$ with positive geometric genus vanish unless the curve class takes a specific form involving the canonical divisor and a special class. For $n=2$, the only non-zero invariants are further restricted, and explicit formulas are given for two cases: $\langle 1\rangle_{0,\beta_{K_X}-3\beta_2}^{X^{[2]}} = (-1)^{\chi(\mathcal O_X)}$ when $K_X^2=1$, and $\langle 1\rangle_{1,d\beta_2}^{X^{[2]}} = K_X^2/(12d)$ for any $d\ge1$.