Tap a part.
Short-period comets (orbits under 200 years, like Halley’s, every ~76 years) come from the Kuiper Belt beyond Neptune. Long-period comets fall in from the distant Oort Cloud, a giant shell of icy bodies up to a light-year away.