Script variable gets overwritten if module is required inside another module

Non local variables inside modules are carried over to the requiring script/module, overwriting set variables. If a module (ModuleB) is required from within another module (ModuleA), the script variable inside ModuleA will also be overwritten, and calling ‘print(script)’ it will output ‘ModuleB’.

This only seem to happen in studio (Play Solo & Start Server/Player), and works as expected online. I think this started to occur after the latest studio patch.

Example:[spoiler]

As you can see, the ‘script’ variable inside ModuleA is replaced with ModuleB[/spoiler]

I can’t test my game in studio :uhhh:

Also this thread:
TOPIC: Requiring ModuleScripts parented inside each other

Replied in “Requiring ModuleScripts parented inside each other” topic.