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

[Answered] Will “IsStudio” return true or false when server is started in studio mode?

Asked by
ABK2017 406 Moderation Voter
5 years ago
Edited 5 years ago

I use a “IsStudio” check for datastore purposes but if I “StartServer” as Player1, is this considered Studio or do I need to add additional checks?

if game:GetService("RunService"):IsStudio() then
0
Try this: if game:GetService('RunService'):IsStudio() then print'Wonder if this is studio.' end namespace25 594 — 5y
0
If it is true, you have your answer. namespace25 594 — 5y
0
I will try it when I can get to my comp...suspectshot108, yes but I meant specifically in the PlaySolo environment ABK2017 406 — 5y
0
Try it both ways. I THINK that if its in studio, regardless of solo or "StartServer" its still counted as studio. DinozCreates 1070 — 5y
View all comments (2 more)
0
Anytime you're in Studio, RunService:IsStudio() will return true. Play Solo, Testing Local Server, etc. If it's in Studio, it'll be true Crazycat4360 115 — 5y
0
So I was able to test it, prints true until you Start a server. It will print true on the server, but on the local "Player1/Place1" side it does not print true. ABK2017 406 — 5y

Answer this question