Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you detect if a player is in studio?

I'm looking for a way to detect if a player is in Roblox Studio, editing the game; so that I can enable testing materials when in Studio without having to separately disable and enable scripts.

I remember seeing it on wiki.roblox.com... I just can't remember what it was.

1 answer

✓ Accepted answer
if game:GetService("RunService"):IsStudio() then
	print("Is in studio")
else
	print("Not in studio")
end

wiki link

2 comments

0

Thank you.

0

Yeah, thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.