I found a fix! You can't minify script with this plugin installed or it will just show a black screen!

I'm using the Photon Cloud Plugin

I've made several games with construct 2. And they all ran fine. No black screens and no wierd glitchy stuff.When I test the game before exporting it runs fine. But it's just a black screen after exporting. I tested this on several devices.