Car won’t start easily in the mornings. I have to wait 30 seconds then it will start.

In the morning I start my car then it cuts off.when I try to restart it it just turns over. I can wait 30 seconds or so and it will restart. It rough idles at first but when I give it gas it runs fine all day no missing or anything. It does this every morning. I have replaced plugs , cam shaft sensor, intake hose all filters still have same issuers

My car has 164000 miles.
My car has a manual transmission.

– Car won’t start easily in the mornings. I have to wait 30 seconds then it will start.