So I am getting tons of Not running script because past shutdown deadline errors in my console after the game stops in studio. I think this is causing the long stopping time. (Not my codebase btw, building on someone elses)
In every script where it says this, it has a while wait() loop.
Are the while wait() loops the problem, and if so why?