Jump to content
YeetMeister

GG Logo as ON/OFF Switch

Recommended Posts

[Pls Help]
Use the gg logo as toggle on off switch

First launch of script gets the value and puts the script to the background

And when the logo is pressed it activates/deactivates the hack

Share this post


Link to post
Share on other sites

if ch==nil then ch=-1 end
function gh()
if gg.isVisible(true) then 
   gg.setVisible(false)
end
if ch==-1 then
g = gg.choice({'Auto On/Off','Exit'})
if g == 1 then gg.alert('Press Square Box To Exit the script') h()ch=1;ra=-1;end
if g == 2 then os.exit()end
else
h()
ra = -1;end;end

function h()
y = "main"
if y == "main" then y ="hh" end
gg.toast('On')

while(true)
do
if gg.isVisible(false) then
break
  else
    gg.sleep(100) end
end

gg.toast('Off')
if gg.isVisible(true)
then gg.setVisible(false) end
end
while(true)
do
  if gg.isVisible() then
    ra = 1
  end if ra == 1 then gh() end
end

Your'welcome

Edited by MilkyGT

Share this post


Link to post
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

  • Similar Content

    • By Frostnall
      Playstore link: https://play.google.com/store/apps/details?id=com.mobilecostudios.kaiontale.android
       
      can anyone modify any real? the data is alternated but has no effect on the game.
      I need this help, if necessary I will pay!
    • By Urufgio
      Hi
      I'm wondering if anyone could help me in hacking Star Nomad 2? I've read a thread to find the money value. I've tried to hack other value (XP, Ship Hull/shield/energy, Skill Points, Factions standing) besides the market price to no avail. Not even one value can be found using the normal or encrypted search. Are those values unhackable?
      It is a paid app, offline game. Horrible UI (fine for me, lol)
      Hope someone can help me find other value, especially the Skill Points.
    • By GameCrasher
      I want to create a login system that connects to a website so I dont need to create a server
    • By FoxMindFM
      Hello... I would try to make some diamonds in Dragon Raja.. But its not working.. do you know how the right script on diamonds it would be if I have 78.. I add more bot nothing happens 
    • By Rizuki
      Hellow pro, master and mister can someone help me how can i create a file with random name
      Example i want to create 50 or 100  file with random name using lua  how can i make please help me 
×
×
  • Create New...