Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Not running script because past shutdown deadline - datastore error?

Asked by 6 years ago

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)
0
Because you waited too long. It can't wait forever, the game needs to shut down eventually User#19524 175 — 6y
0
But why is it waiting too long? what's the issue? User#19328 0 — 6y
0
Do i just not add a bindtoclose? User#19328 0 — 6y
0
It was working a couple weeks ago, but now its taking forever to exit test mode User#19328 0 — 6y
View all comments (3 more)
0
Got the same problem. Dolphinous 36 — 6y
0
Okay. So it's a roblox problem? User#19328 0 — 6y
0
You might wanna remove the wait(1) but It might make studio crash killer08932 149 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

Ad

Answer this question