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 392 Moderation Voter
9 months ago
Edited 9 months 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 386 — 9mo
0
If it is true, you have your answer. suspectshot108 386 — 9mo
0
I will try it when I can get to my comp...suspectshot108, yes but I meant specifically in the PlaySolo environment ABK2017 392 — 9mo
0
Try it both ways. I THINK that if its in studio, regardless of solo or "StartServer" its still counted as studio. DinozCreates 763 — 9mo
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 — 9mo
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 392 — 9mo

Answer this question