Does anyone know a way to detect if a place is running in build mode, rather than in a Roblox server?
The following would work, but only if HttpEnabled is true.
local z,p = pcall(function() Game:GetService('HttpService'):GetAsync('http://api.roblox.com/') end)
if not z and p == 'Http requests can only be executed by game server' then
-- Run Build mode specific code here.
end
If HttpEnabled is false p would always be 'Http requests are not enabled' whether the game is in build mode or Roblox Server.

7 comments
Why do you need to? The only person that can run it in build mode is you.
It is for stopping a certain script from running in build-mode.
Just disable the script in Studio when you are about to build on Build Mode. No need for a script to disable it.
I am mainly asking if this is possible, of course I could do that though.
HTTPService is now allowed in build/edit mode.
At that time, it was not.
Build mode is destroyed :P