ignition switch corrosion, bad coil when it gets hot, poor grounding,...
If it's fuel related, it's easy to test. Fill a squirt bottle with fuel, remove the air filter, run the bike until it dies. Give a squirt of fuel into the mouth of both carbs and kick the bike over. If the fuel ignites and the bike trys to start (or starts) then it's a fuel issue. If the bike just drinks the fuel without a "pop", then your problem is likely ignition related...