Lost in a mess


this game iv been working on for about 2 months now is a large mess of code put everywhere, and i cant figure out why a error keeps coming, after you beat the level and go to the elevator you are suposed to go to the shop screen again, but it only blinks there then blinks back, i have no idea y, its problebly something small or stupid like a missing { or something. if you are extremely bored plz help

and the code to goto the next frame is on the elevator in the last frame.