2007 toyota solara would not start, smelled burning

car was running fine, parked it for 30 minutes, tried to start it, it sounded like the engine was going to come out of the hood, a burning smell started. I tried it twice, same thing, Sat for about 20 more minutes and it started right up. what’s up?

Oil on hot exhaust. Fire hazard. Seek mechanic.