Jump to content
  • 0

ON/OFF Script Tutorial


BaldiGT

Question

4 answers to this question

Recommended Posts

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 

Link to comment
Share on other sites

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.