During the star’s spaghettification, the stream of gas swirls as though down a drain and, as it’s still settling into its final orbits, some of the gas can get far enough away from the black hole that it collapses into planet-size fragments.