When using the built-in loadingscreen feature (startLoadingScreen command), and having a waitUntil or sleep while the loading screen is on, will freeze the client after a certain time (not necessarily crash; Windows just sees it as 'Non-responsive', if you progress the loadingbar later it's fine).
- Legacy ID
- No Bug
- Game Freezes
Try this script:
Run game windowed mode, try clicking on something outside of the window and then returning focus while the loading screen is on. You'll see Windows marks it as non-responsive.