New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
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
1 year ago
Edited 1 year 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 suspectshot108 521 — 1y
0
If it is true, you have your answer. suspectshot108 521 — 1y
0
I will try it when I can get to my comp...suspectshot108, yes but I meant specifically in the PlaySolo environment ABK2017 406 — 1y
0
Try it both ways. I THINK that if its in studio, regardless of solo or "StartServer" its still counted as studio. DinozCreates 763 — 1y
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 — 1y
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 — 1y

Answer this question