Game Freezes In The Editor After Hitting Play

Hi. I am a beginner and I was just working on a game. Everything worked fine before, but one time, I tried hitting the play button, and the game just froze. If I hit the play button again, it will just go out of play mode. I made a scene for the game before everything went bad, so I thought that it may have been the problem. But I deleted it and all of its scripts and made everything back to norma before it stopped working, but it still won’t work. Please help!l

Instead of deleting everything try creating a new scene, if it doesn’t work, try a new project.

I usually have this kind of problem when a loop goes wrong (infinite), check/disable your loops one by one or the most recent, it might be the problem.

You’re most likely compiling scripts, just let it sit for a minute.