Samsung Dryer Not Heating

Dryer lights but then goes back out,with the duct on or off, what do I check next?

Could have a week coil on the gas valve.

Changed out the coils and the dryer still has the same issue of not staying lit any other suggestions?