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

image

For some reason, the Sandboxing feature is breaking my game.
I haven’t found any working solutions for this:

I tried this:

for _, v in game:QueryDescendants("ModuleScript") do
	v.Sandboxed = false
end

for _, v in game:QueryDescendants("LocalScript") do
	v.Sandboxed = false
end

for _, v in game:QueryDescendants("Script") do
	v.Sandboxed = false
end

But it did not work. I also tried making the sandboxing feature “Experimental” and then turning it off, but that also did not work.

2 Likes

ReplicatedStorage.Modules.Utils.ModuleUtils._Zone.ZoneTypes.BoxesZone

can you show that require bit on line 7

Try running this in command bar (be careful, still) and it should set every single object in your game
sandboxed property to false.

local count = 0

for _, v in game:GetDescendants() do
    local success, hasProperty = pcall(function()
        return v.Sandboxed ~= nil
    end)
    
    if success and hasProperty then
        if v.Sandboxed then
            v.Sandboxed = false
            count = count + 1
        end
    end
end

return "Set Sandboxed = false on " .. count .. " objects"
1 Like

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