Why does my computer freeze when I open a level in standalone game

in the code I have it to where it will open a level when I click a button but when it opens the level my whole computer freezes, same thing happens when I open the level in blueprints

if anyone has a solution I would appreciate it, thank you

Hello,

Are there a lot of assets loading in at once?

Also, is there a lot of code that runs on ‘Begin Play’ events?

there is a lot of code running on begin play, thank you