Jump to content
  • 0

Lua


BamKix

Question

Posted

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

1 answer to this question

Recommended Posts

Posted
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.