-- Compiled with roblox-ts v1.2.7 local TS = _G[script] local Zr = TS.import(script, TS.getModule(script, "@rbxts", "zirconium").out) local GetCommandService = TS.import(script, script.Parent).GetCommandService local ZirconDispatchService = {} do local _container = ZirconDispatchService local globalContext = Zr.createContext("global") -- * @internal local ExecuteScriptGlobal = TS.async(function(text) return TS.Promise.defer(function(resolve, reject) end) end) _container.ExecuteScriptGlobal = ExecuteScriptGlobal local ExecuteScript = TS.async(function(player, text) local Registry = GetCommandService("RegistryService") return TS.Promise.defer(function(resolve, reject) local _binding = Registry.GetScriptContextsForPlayer(player) local mainScript = _binding[1] local source = mainScript:parseSource(text, 1001) if source:isOk() then resolve(mainScript:createScript(source.okValue)) else reject(source:unwrapErr().errors) end end) end) _container.ExecuteScript = ExecuteScript end return { ZirconDispatchService = ZirconDispatchService, }