Shutdown (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
examples
>LocalChum
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Locked}}
{{Locked}}
<onlyinclude>{{Method|name = Shutdown
<onlyinclude>{{Method
|arguments =
|name = Shutdown
|returns = [[nil]]
|description = Closes the current Roblox Instance.
|description = Shuts down the server.
|object = DataModel
|object = DataModel
|protected = yes
}}</onlyinclude>
}}</onlyinclude>


{{clear floats}}


{{Example|If using the [[Command Bar]] or a [[CoreScript]]...<pre>game:Shutdown()</pre>If using a [[Script]] or [[LocalScript]]...<pre>game:Shutdown() --> s Shutdown</pre>}}


{{Example|If using the [[Command Bar]] or a [[CoreScript]]...<pre>game:Shutdown()
-- shuts down the server, calls CloseConnection on every Player's NetworkReplicator, then calls SetMessage("The game has shut down") on the DataModel.</pre>If using a [[Script]] or [[LocalScript]]...<pre>game:Shutdown() --> s Shutdown</pre>}}
[[Category:Methods]]
[[Category:Methods]]

Latest revision as of 23:07, 9 August 2011

Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
Shutdown( )
Returns nil
Description: Closes the current Roblox Instance.
Member of: DataModel


Example
If using the Command Bar or a CoreScript...
game:Shutdown()
If using a Script or LocalScript...
game:Shutdown() --> s Shutdown