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

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

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

2 comments

0

no, but you can use datastores

0

ok Thanks

1 answer

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

game:BindToClose(function()
       wait(5)
end)

2 comments

0

What happens with wait(math.Huge()) ?

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

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