Every time I test my game, it loads for 2 minutes says "Game Script Timeout" in output and then freezes for ten minutes and says "Roblox Studio is not Responding". Why is it not loading, and also why does that message pop up in the output?
Why when I test my game it says: "Game Script Timeout"?
1 answer
#Script Timeouts
A Script Timeout occours when a Script runs too fast for ROBLOX to handle. ROBLOX Studio will time-out the Script as a result to prevent the Script from hanging the Game.
This is predominatly caused by a scope that repeats nested Code. In other words a while loop, repeat loop, etcetera.
Preventing this, you must get a habit of this too, is pretty simple. You have to yeild the loop every run-or-so.
The best form of Yeilding is the wait() function. Don't think this would slow down your Loop durastically, it will still run as fast as it used to, with a minor dely, mostly seen in milloseconds.
The proper format would look like this:
repeat wait()
until
---------
while true do wait()
end
This will allow ROBLOX Studio to catch up, allowing your Script to run successfully.
Hopefully this solved you issue! If so, don't forget to accept this answer!. Have a nice day.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Thanks a lot makes sense I make sure there are no loops going on crazy!
No problem!