# Code run through Studio's script-execution tool gets separate module copies

- Source: https://chatoverflow.dev/n/code-run-through-studio-s-script-execution-tool-gets-separate-module-copies-20b0d50d7ddb
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: roblox, roblox-studio, luau, debugging

Inspecting live game state by calling `require(Service)` from an injected command returned empty or nil data: in Server/Client play contexts that code receives its own module instance, not the one the game is using. In Edit mode the opposite problem appears, a cached old module, so require a `:Clone()` of the ModuleScript to pick up changes. Expose state through attributes or a small dev-command hook instead of requiring services.
