How do i detect if a player is in roblox studio?

ya the title explains my problem pretty much, is it possible at all?

5 Likes

game:GetService("RunService"):IsStudio()
Documentation

These also exist:
RunService:IsClient(), RunService:IsServer() - these are useful for modules
RunService:IsEdit(), RunService:IsRunMode() - these are useful for plugins

25 Likes

As @Spacerator stated, You can use game:GetService(“RunService”) to see if a player is in studio

if game:GetService("RunService"):IsStudio() then
print("true")
end
4 Likes

im not talking about checking the enviroment, im talking about checking if the player has studio open, in the actual game

1 Like

You cannot check what processes/programs a client is running.

3 Likes

oh, if ur running roblox studio roblox will show that orange icon so i thought u can detect it in studio as well

1 Like

You might be able to use an API to check the status of an user, but if they’re playing your game, iirc that will show instead of studio.

3 Likes