What's the use case of RunService:IsRunning()?

Just a simple question, what is the use of RunService:IsRunning()? doesn’t it when we stop the testing session the scripts just stops?

I assume it would be for plugins and command bar commands. For example maybe if IsRunning returns true then a plugin could warn the user that their changes will disappear when playtesting stops, etc.

It’s for plugins with special functionality to work in testing situations. For example you might want a plugin that can move objects so you could test an obstacle course or obby with moving objects. Other cases are running code in a script environment where you don’t want your changes to apply. A plugin Incommand uses this, where you may want to test how your game would operate when certain things happen/change without wanting to actually modify the project file or structure.

IsRunning just checks if the game state is playing or not.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.