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.
1 | if game:GetService( "RunService" ):IsStudio() then |
2 | print ( "Testing in studio" ) |
3 | else |
4 | print ( "In game" ) |
5 | 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,
1 | if game.Players.LocalPlayer then print "Offline Mode" |
2 | else print "Online Mode" |
3 | end |
thehybrid576s answer is probably better tbh. I only knew about IsServer/Client