Skip to content

Commit

Permalink
Update Remote.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiserandaxl authored Dec 24, 2023
1 parent 5c0971f commit 3a4a8fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions MainModule/Server/Core/Remote.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,6 @@ return function(Vargs, GetEnv)

Variable.Script = args[1]["Text"]
end,

RunScript = function(p: Player, args: {})
local se = Variables.ScriptEditor[tostring(p.UserId)]
local Name = args[1][1]
Expand All @@ -1035,7 +1034,7 @@ return function(Vargs, GetEnv)
oError(string.format("bad argument #2 to 'error' (number expected, got %s)", type(level)), 2)
end

Remote.Terminal.LiveOutput(p, `LUA_DEMAND_ERROR: {reason}`)
Remote.MakeGui(p, "Output",{Title = 'Output'; Message = `LUA_DEMAND_ERROR: {reason}`})
oError(`Adonis ScriptEditor error: {reason}`, (level or 1) + 1)
end;
})
Expand Down

0 comments on commit 3a4a8fb

Please sign in to comment.