The Game dosent run when i press the play button

So, when i press the play button it dosent play the game and just sits there i cant click the objects on the hierachy and it crashes i restarted my pc still it dosent work can anyone help

If you mean the Editor appears frozen when the game starts playing (“crashes” can mean a lot of different things to different people), that is usually the result of an infinite loop in your code. In Play mode, the Editor and your game share the same main thread. Your functions need to end before the Editor can run its own code, so if one of your functions doesn’t end then you’ll see the Editor as frozen.