How can I see if the game is in Studio test mode? I know that various admin commands such as Adonis do this. I've tried looking for bools in game, but nothing found. Thanks for the help.
✓ ANSWER ACCEPTED
See if the game is in test mode?
2 answers
✓ Accepted answer
if game:GetService("RunService"):IsStudio() then
print("Testing in studio")
else
print("In game")
end
I'm not sure if there's any simple way to do it, the easiest I know would be to look for localplayer in a non local environment. If you can retrieve the player, you're in offline testing.
so in a script in server storage or something server side,
if game.Players.LocalPlayer then print"Offline Mode"
else print"Online Mode"
end
thehybrid576s answer is probably better tbh. I only knew about IsServer/Client
1 comment
0
didn't work, sorry
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
ty