The current thread cannot require 'ModuleScript' (lacking capability Unassigned)

I havent worked on Roblox Studio for couple of months and im experiencing this:
image

I know the solution is simple as:

  • Workspace → SandboxedInstanceMode → Experimental
  • And tick all of the permissions that needs it in the Module at Sandbox tab.
  • (For Faster Usage) Set a module with all capabilities to true as default Module Script for faster creation

However for some reason it also affects the module scripts that i create from explorer (aka not asset store). And yea its same solution BUT why are we doing extra steps for the same path?

I thought setting Sandboxed mode to Default just fixes it but it doesnt work it gives:

So like why do i have to tick all options just to require a module?? I would get it if its only for asset store modules but since it affects module scripts that i created at studio, its pretty terrible.
And you might say dont do modular, i just like modular approach. But if you give me good options why i should switch, im open.

4 Likes

if you dont need a sandbox honestly just untick sandboxed property and ur good

also consider checking if workspace is sandboxed because for some dumb reason you can enable sandboxed property on workspace

1 Like

problem is every script sandbox property is unchecked. and because its unchecked it says lacking capability Unassigned now.


Gives error on two scenerios somehow.

And the module isnt even sandboxed
Even weirder thing is this bug doesnt happen on older experiences. I dont even know what im working on tbh

2 Likes

NVM Solution is simple as:

for _, v in game:QueryDescendants("ModuleScript") do -- also do LocalScript and Script
	v.Sandboxed = false
end

For some reason their sandboxed was true Even when workspace is off. Annoying bug

2 Likes

i hope you’re aware that by running this you also unsandboxed all ModuleScripts including the ones you took from toolbox if you had them inserted

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.