Creating a button to make a command work from basic admin essentials

So i have a question about if its possible to make a ui button trigger a basic admin essentials command. i have tried alot but cant find any solutions

So for being clear. I want to make a Screengui with a textbutton, and if u click the textbutton it needs to make a command work same as if u for example would do :reset.

Is there anyone that can help?

You can check path.to.button.MouseButton1Click:Connect(function()
– this would run when you press the button if you put the path.to.button to the path
end)

no clue if this is what ur asking but if you need to know how to detect a button press this is how to do it

Hey! Thanks for the quick response. I dont think this is completely what im looking for. Im looking for a solution for Basic Admin Essentials Specifically.