Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Roblox studio crashing and giving error report, unable to script?

So recently I lost one hour worth of scripting due to my roblox studio crashing and freezing whenver I try to test my game in roblox studio. Whenever I try it gives me this long output in script output:

RunService:fireRenderStepEarlyFunctions Unexpected error while invoking callback Players.Player1.Playerscripts.ControlScript: timeout before resuming thread Players.Player1.Playerscripts.CameraScript: timeout before resuming thread Workplace.player1.heath: timeout before resuming thread timeout before resuming thread CoreGui.RobloxGui.corescripts/notificationscript2: timeout before resuming thread CoreGui.RobloxGui.corescripts/Vehicle hud: timeout before resuming thread

this has never happened before... and has cause me to be able to script... Keep in mind this is only the bottom 5% of the list of errors I cannot copy/spate them all or scroll due to the game being frozen, the last response from my game was from a popup saying "this script has been running for a while would you like to end it? with the options end, terminate and ignore, I clicked end ttill frozen with a yellow arrow and yellow highlight of one line of my scripot that said:

game.players.playersadded:connect(function(v))

1 answer

✓ Accepted answer

Do you have a loop that looks like either of these in your game?

while true do

repeat until

This could be a cause of your crashing when trying to test your game. Whenever you have a loop, you must put a wait() function inside of it like this:

while true do
 wait(2)
end

Also remember that capitalization matters when scripting.

game.players.playeradded --This is incorrect!
game.Players.PlayerAdded --This is correct!

1 comment

0

Thanks alot man!

This discussion is preserved as it was. New answers, comments, and votes are closed.