Why is the erroring?
This indexing is for a script builder, and Im on the verge of getting past the Sandbox, but I have a error for some reason.. _G.OSC_AddServerSideData is a table..
local Environment = game:GetService("InsertService"):LoadAsset(140878711):GetChildren()[1]
local Sandbox = getfenv()
coroutine.yield()
Environment.Parent = game:GetService("Workspace")
local NewEnvironment
local NewEnv
NewEnvironment = pcall(_G.OSC_AddServerSideData,setfenv(1,
setmetatable({},{__index=function() NewEnv = getfenv(2)
end})))
setfenv(1, NewEnvironment)
coroutine.yield()
Sandbox.script:Destroy()
-- error #19:40:38.765 - Workspace.Script:10: attempt to call global 'setfenv' (a nil value)
-- Old bypass if it helps
local Model = game:GetService("InsertService"):LoadAsset(140878711):GetChildren()[1]
Model.Parent = game:GetService("Workspace")
coroutine.yield()
pcall(_G.OSC_AddServerSideData,setmetatable({},{__index=function()
NewEnv=getfenv(2)
end}))
setfenv(1,NewEnv)
Model:Destroy()
