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

Merely curious..?

Asked by
IcyEvil 260 Moderation Voter
8 years ago

Alright so in a previous thread that was made I believe today I came across a forum that asked in simple terms, if you could delay the servers shutdown, and the answer which was correct by the way, said that simply yes for a maximum of 30 seconds, but I thought perhaps if you used a > while loop then perhaps add a couple more waits to it.

So here is the outcome but I have no clue if it works, this forum is of only curiosity upon the said subject, and perhaps a discussion could be acted upon this forum of it.

-- Out of mere curiosty after I saw a post related to this, I read an answer saying that a maximum of 30 seconds, to delay the servers shutdown.
-- But I then though how about if I put a "while loop" and put the function inside of it, then I add waits before and inside of the function.

-- Game will still shutdown after 30 seconds.
game.OnClose = function()
    wait(10000000)
end

-- now here is what I did with it.
while wait() do
wait(10000000000000000)
game.OnClose = function()
    wait(10000000)
end
end

1 answer

Log in to vote
1
Answered by 8 years ago

Won't work, not possible.

Why? Because you're only setting OnClose to the same thing every time. That, and the scheduler behind the wait is controlled by Roblox, meaning that if they end the runner before the wait is scheduled to thaw, it just won't run.

Ad

Answer this question