Script Builder games allow people to run code freely, including unsandboxed access to require(assetId)
.
Allowing anybody to permanently break modules by using getfenv
(or ScriptContext.Error
) and preventing other people from using them could ruin the game experience.
Sandboxing require()
wouldn’t be optimal either because it would have a serious impact on performance and other side effects.