Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

See if the game is in test mode?

Asked by 6 years ago

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.

2 answers

Log in to vote
1
Answered by 6 years ago
if game:GetService("RunService"):IsStudio() then
    print("Testing in studio")
else
    print("In game")
end
0
ty Wilbob30 69 — 6y
Ad
Log in to vote
-1
Answered by
Bellyrium 310 Moderation Voter
6 years ago
Edited 6 years ago

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

0
didn't work, sorry Wilbob30 69 — 6y

Answer this question