This member cannot be used in scripts, but is usable in the command bar and plugins.
This function ends the game’s simulation if it is running.
The simulation can be started using
RunService/Run or the ‘Run’ button in Roblox Studio. When the simulation is stopped,
RunService/IsRunning will return false and
RunService/IsEdit will return true.
In contrast to the ‘Stop’ button in Roblox Studio, calling this function will not restore the game to the state it was in prior to the simulation being run. This means any changes made to the game by the physics simulation and scripts will persist after the simulation has ended.