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

Not running script because past shutdown deadline - datastore error?

Im getting that error, i have a bindtoclose function. I guess it doesnt work properly because when i press test and press stop it takes 30 seconds to unfreeze and gives the error

" Not running script because past shutdown deadline " x300

the bindtoclose function looks like this

function GetDictionaryLength(tab)
	local keys = 0
	for key,_ in next,tab do
		keys = keys + 1
	end
	return keys
end

game:BindToClose(function()
	repeat wait(1) until (GetDictionaryLength(sessionData) == 0)
end)

7 comments

0

Because you waited too long. It can't wait forever, the game needs to shut down eventually

0

But why is it waiting too long? what's the issue?

0

Do i just not add a bindtoclose?

0

It was working a couple weeks ago, but now its taking forever to exit test mode

0

Got the same problem.

0

Okay. So it's a roblox problem?

0

You might wanna remove the wait(1) but It might make studio crash

1 answer

Try to remove your wait(1). Should fix any problems.

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