Skip to content

Conversation

@ari-party
Copy link
Contributor

@ari-party ari-party commented Nov 7, 2025

Changes

Table hasn't been updated for over a year. Some cells should've been blank (indicating that the method was unavailable/errored), but weren't.
This PR also adds the "Luau Execution" environment.

I used the following script to get the updated values:

local RunService = game:GetService("RunService")

function nilcall(func: () -> boolean)
	local success, result = pcall(func)
	return if success then result else nil
end

local result = {
	IsStudio = nilcall(function()
		return RunService:IsStudio()
	end),
	IsClient = nilcall(function()
		return RunService:IsClient()
	end),
	IsServer = nilcall(function()
		return RunService:IsServer()
	end),
	IsEdit = nilcall(function()
		return RunService:IsEdit()
	end),
	IsRunning = nilcall(function()
		return RunService:IsRunning()
	end),
	IsRunMode = nilcall(function()
		return RunService:IsRunMode()
	end),
}

-- print(result)
-- print(game:GetService("HttpService"):JSONEncode(result))
return result

And here is a markdown version of the table for easier reading:

Environment IsStudio IsClient IsServer IsEdit IsRunning IsRunMode
Live (Client) false true false true false
Live (Server) false false true true false
Edit true true true true false false
Collaborative Edit true true false true false false
Run Mode true true true true false false
Play Mode (Client) true true false true false
Play Mode (Server) true false true true false
Team Test (Client) true true false true false
Team Test (Server) false false true true false
Luau Execution false false true false false

Though, for some reason, Team Test (Server) has false for IsStudio, perhaps confirm that this is intended before merging?

Might want to reconsider the ordering of the environments as well. Let me know!

Checks

By submitting your pull request for review, you agree to the following:

  • This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses.
  • I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses.
  • To the best of my knowledge, all proposed changes are accurate.

@ari-party ari-party requested a review from a team as a code owner November 7, 2025 22:30
@github-actions github-actions bot added engine reference Changes the Engine API Reference documentation changes requested This pull request has changes requested prior to merging labels Nov 7, 2025
@IgnisRBX IgnisRBX merged commit d0cf9c5 into Roblox:main Nov 10, 2025
3 checks passed
IgnisRBX pushed a commit that referenced this pull request Nov 10, 2025
## Changes

Incorrectly handled some data when creating #1300, which I've only
noticed after it was merged, sorry!
This PR fixes those issues.

- Team Test (Server) had IsStudio as false
- Run Mode had the same data as Edit

## Checks

By submitting your pull request for review, you agree to the following:

- [x] This contribution was created in whole or in part by me, and I
have the right to submit it under the terms of this repository's open
source licenses.
- [x] I understand and agree that this contribution and a record of it
are public, maintained indefinitely, and may be redistributed under the
terms of this repository's open source licenses.
- [x] To the best of my knowledge, all proposed changes are accurate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changes requested This pull request has changes requested prior to merging engine reference Changes the Engine API Reference documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants