How do I run an Adonis Command as a user, from a script?

  1. What do you want to achieve? Keep it simple and clear!
    Create a command block, supports both person299 commands and Adonis commands.
  2. What is the issue? Include screenshots / videos if possible!
    Adonis doesn’t work
  3. I deleted 3 by accident and forgot what it was, I think it was what solutions I’ve tried.
repeat task.wait() until _G.Adonis
local Adonis = _G.Adonis
local Remote = Adonis.Access("Skibdiii123456789", "Remote")
-- a jump in the script
Remote.Send(gateOwner, "ProcessCommand", cmd) 

Seemingly nothing happens. Rest of the script works fine.

This should work:

repeat task.wait() until _G.Adonis
local Adonis = _G.Adonis
local Admin = Adonis.Access("Skibdiii123456789", "Admin")
-- a jump in the script
Admin.RunCommandAsPlayer(cmd, gateOwner)

Also, you might want to change your _G API key now, as you sent it with the script.