Runs fine for 10 minutes

That’s me again,i replaced the ignition coil,but still stalls,no spark.then half hour later starts at the first try,and runs for 10 more minutes.Thanks karting.