Jump to content
  • 0

Lua


BamKix
 Share

Question

Good afternoon, help me make a script. When you click on the GG icon, the first hack occurs, when you click on GG for the second time, the second hack occurs and after two hacks it takes you to the menu. I've been thinking for a very long time about how to do this, but nothing has worked out. Help

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
local function hack1()
  gg.toast("Hack 1")
end

local function hack2()
  gg.toast("Hack 2")
end

local function menu()
  gg.toast("Menu")
end

gg.setVisible(false)
while not gg.isVisible() do
  gg.sleep(100)
end
hack1()

gg.setVisible(false)
while not gg.isVisible() do
  gg.sleep(100)
end
hack2()

gg.setVisible(false)
while true do
  if gg.isVisible() then
    menu()
  end
  gg.sleep(100)
end
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.