Jump to content
BaldiGT

ON/OFF Script Tutorial

Recommended Posts

Someone have a script ON/OFF...pls give me the script i need the script..

Share this post


Link to post
Share on other sites

43 minutes ago, BaldiGT said:

Someone have a script ON/OFF...pls give me the script i need the script..

@Enyby

Share this post


Link to post
Share on other sites
6 hours ago, BaldiGT said:

I cant download the script

on = '[✖]'
off = '[✔]'
change = off

function Main()
menu = gg.choice({change .. " test"},nil,"✏ Hi!")

if menu == 1 then 

if change == on then 
      change = off
    else
      change = on
    end
    OnOff() end

GSRamos = -1

end

function OnOff()

if change == on then
gg.toast("On!")
else
gg.toast("Off!")
end

end

while true do
    if gg.isVisible(true) then
        GSRamos = 1
        gg.setVisible(false)
    end
    gg.clearResults()
    if GSRamos == 1 then
     Main()
    end
end 

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

×
×
  • Create New...