#Is it possible to trigger an adonis command via a TextButton in ScreenGUI
1 messages · Page 1 of 1 (latest)
Quick explanation how please?
through _G api or plugins
well
if you wanna use g api
hm wait
read about g api stuff here https://github.com/Epix-Incorporated/Adonis/wiki/G-API
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
same with this
but you don't need to use the vargs things
you can just access them through _G.Adonis.Access("key", "Admin")
as an example...