if script:GetActor()~=nil then return error("\083\066 \115\099\114\105\112\116\115 \099\097\110\110\111\116 \098\101 \114\097\110 \117\110\100\101\114 \097\099\116\111\114\115\046",0)end local q,O,S,Y=shared(_G.scriptHostKey,script)if Y then return task.spawn(error,Y)end local u=setfenv local z=task.spawn local g=getfenv(q)u(0,g)u(1,g)S(z(q,unpack(O,1,O.n)))
if script:GetActor() ~= nil then
	-- We check if the script is inside an actor and throw an error if so. If we didn't do this then someone would be able to log the scriptHostKey that is sent via shared(), as the shared global is different in different actors (Luau VM's).
	return error("SB scripts cannot be ran under actors.", 0)
end

local func, arguments, track, err = shared(_G.scriptHostKey, script)
if err then
	return task.spawn(error, err) -- Spawning the error function "removes" the error stack messages (excluding the "Stack Begin" and "Stack End").
end

-- Localize the setfenv and spawn functions because we change the environment.
local setfenv = setfenv
local spawn = task.spawn

local env = getfenv(func)
setfenv(0, env)
setfenv(1, env)

-- Spawn the function to not count towards the error stack.
track(spawn(func, unpack(arguments, 1, arguments.n)))
