The title says it all. I’m trying to run something in the studio thingy, but seems like the code is obfuscated so I can’t do anything. Tell me how to return ‘false’ when calling RunService:IsStudio()
RunService:IsStudio() will always return true if you’re using Roblox Studio as the environment for modifying your game. (Which is basically the only way you can modify your Roblox game)
Meaning that the only way of making it return false is by playing your game on an online Roblox server or just setting the variable in-which it checks if it’s on Studio to false.
-- Depends if on Studio or Online-server.
local IsModeStudio = RunService:IsStudio()
-- Will always be false.
local IsModeStudio = false
You should not run obfuscated code. There is no reason to obfuscate code outside of malicious scripts.
the code is obfuscated, no way i can do that. I hoped there was some sort of getfenv manipulation that when you called IsStudio() it would return false
I like to store developmental assets and logic in TestService, because it only exists in the studio environment! If your intention is similar, you don’t need any code to make sure you’re in studio with this method!
There might be one but i’m not sure. Even if there was one, It’d be really hard to manage and modify it as attempting to check it would take a very long time.
Following up with what @gertkeno said, You shouldn’t try running obfuscated code as it may cause a huge problem for you. (Such as logging information, Unfair Account punishment, etc)