Shutdown (Method)

From Legacy Roblox Wiki
Revision as of 04:30, 30 December 2010 by >ArceusInator (examples)
Jump to navigationJump to search
Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
Shutdown( )
Returns nil
Description: Shuts down the server.
Member of: DataModel









Example
If using the Command Bar or a CoreScript...
game:Shutdown()

-- shuts down the server, calls CloseConnection on every Player's NetworkReplicator, then calls SetMessage("The game has shut down") on the DataModel.
If using a Script or LocalScript...
game:Shutdown() --> s Shutdown