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.
if game:GetService("RunService"):IsStudio() then print("Is in studio") else print("Not in studio") end