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.
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"