Why does the temperature climb in a birth of a star as more mass is drawn into the core?
When mass increases the pressure at center goes up.
This pressure compress the matter and creats heat and temperature,.Irregularities in the density of the gas causes a net gravitational force that pulls the gas molecules closer together. Some astronomers think that a gravitational or magnetic disturbance causes the nebula to collapse. As the gases collect, they lose potential energy, which results in an increase in temperature." quote from scientific american.