Collapse Sidebar


This function returns whether the current environment is running in Roblox Studio.

This function will only return true when using Roblox Studio and can be used to add code to test your game within Studio.

See also

  • RunService/IsClient
  • RunService/IsServer
  • RunService/IsStudio
  • RunService/IsEdit
  • RunService/IsRunMode


Return Type Summary

Whether the current environment is running in Roblox Studio

Code Samples

Run Context

This code prints out details of a script’s running context, like if it is running on the server, client, in studio, etc. It uses RunService to do this.

Try pasting this code into a Script or LocalScript. See how it runs in online mode and on a Roblox server (open the developer console).