ClearContent (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy No edit summary |
>Camoy No edit summary |
||
Line 2: | Line 2: | ||
|name = ClearContent | |name = ClearContent | ||
|arguments = [[Bool]] ''resettingSimulation'' | |arguments = [[Bool]] ''resettingSimulation'' | ||
|description = If resttingSimulation is ''false'', it removes everything in the Workspace. If resttingSimulation is ''true'', it removes everything in the game | |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. | ||
|object = DataModel | |object = DataModel | ||
|protected = Yes | |protected = Yes |
Revision as of 20:20, 27 December 2010
![]() | |
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