#Is it possible to trigger an adonis command via a TextButton in ScreenGUI

1 messages · Page 1 of 1 (latest)

hallow blade
#

yes

haughty sparrow
hallow blade
#

through _G api or plugins

#

well

#

if you wanna use g api

#

hm wait

#

or

#

if you wanna do it through plugins

#

then you wanna do something like

#

function(Vargs)
local server = Vargs.Server;
local service = Vargs.Service;

local Functions, Commands, Admin, Remote, Process, Variables =
    server.Functions, server.Commands, server.Admin server.Remote, server.Process, server.Variables

game.Players.PlayerAdded:Connect(function(p: Player)
repeat task.wait() until p:WaitForChild("PlayerGui",99) and p.PlayerGui:WaitForChild("YourUiHere",99)

p.PlayerGui.YourUiHere.YourButtonHere.MouseButtonClick:Connect(function()
-- go read Adonis wiki cuz I don't remember everything
end)
end)
end

#

it's a Server plugin

#

not client

hallow blade
#

but you don't need to use the vargs things

#

you can just access them through _G.Adonis.Access("key", "Admin")
as an example...