PcoWSkbVqDnWTu_dm2ix
The information on this page may no longer be accurate. To see the latest, go to our new and improved documentation. You can also learn more about the future of documentation.
Collapse Sidebar

OnClose

DataModel

Tuple

Invoked before the game is shut down. When this callback returns, or the timeout period is hit, the game finishes shutting down.

Expected return type:

Return Type Summary

Code Samples


DataModel.OnClose1

The example below would print “Closing, waiting” to the output. It would wait three seconds and then print “Done”. At this point Roblox will be able to shut down the server.