ClearContent (Method)

From Legacy Roblox Wiki
Revision as of 22:57, 9 August 2011 by >LocalChum (added {{locked}})
Jump to navigationJump to search
Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
ClearContent( Bool resettingSimulation )
Returns nil
Description: If resttingSimulation is false, it removes everything in the Workspace. If resttingSimulation is true, it removes everything in the game; this includes CoreGui, Players, and Workspace.
Member of: DataModel


Example

If you're using the Command Bar or a CoreScript...

game:ClearContent(true)
game:ClearContent(false) -- removes everything in game.Workspace\

If you're using a Script or a LocalScript...

game:ClearContent(true) --> s ClearContent
game:ClearContent(false) --> s ClearContent