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

Is there any way to keep a place/server open even though nobody is in it?

Asked by 6 years ago

im trying to make this game that needs previous player actions to be in it so the server doesnt delete it E.G buildings and stuff

0
no, but you can use datastores Programical 653 — 6y
0
ok Thanks seachristopher -3 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

You can use BindToClose to force the server to wait before shutting down.

game:BindToClose(function()
       wait(5)
end)
0
What happens with wait(math.Huge()) ? MooMooThalahlah 421 — 6y
0
You can't use math.huge, as you can only wait a maximum of 30 seconds. If the function doesn't end, the game will just shut down halfway through the function UgOsMiLy 1074 — 6y
Ad

Answer this question