A cloud collapses to form a star and disk. Planets form from this disk.
According to our current understanding, a star and its planets form out of
a collapsing cloud of dust and gas within a larger cloud called a nebula
.his dense, hot core becomes the kernel of a new star.
Hoped this helped :D