Jump to content
  • 0

Script On/Off


Fallen_Stress

Question

Hi guys is me Again i am trying to make on/off menu inside another menu but then i run the script only on is enable script dont turn off function ( i hope you understant this bad english )

 

The off buttons dont turn on is freezed on off statue 

 

 

 

gg.toast("𝐄𝐍𝐓𝐄𝐑 𝐏𝐀𝐒𝐒𝐖𝐎𝐑𝐃")
Check_Login1 = gg.prompt({"⚠𝐄𝐍𝐓𝐄𝐑  𝐏𝐀𝐒𝐒𝐖𝐎𝐑𝐃 ⚠"},nil,{"000"}) or (function() while true do os.exit() end end)();Check_Login2 = Check_Login1[1] =="24209" or (function() gg.alert("⚠ 𝐄𝐑𝐑𝐎𝐑 ⚠\n❎ 𝐖𝐑𝐎𝐍𝐆 𝐏𝐀𝐒𝐒𝐖𝐎𝐑𝐃 ❎"); while true do os.exit() end end)() 

MessageTool = gg.alert([[                                        
                                                  
                                              🇼 🇪 🇱 🇨 🇴 🇲 🇪
                  
                  
  ]])
ProgressBar =  "║░░░░░░░░░░░░░░░║";for x = 1,16,1 do gg.sleep(100) ProgressBar = ProgressBar:gsub("░","▓",1);gg.toast(ProgressBar) end gg.sleep(100) gg.toast("𝐋𝐎𝐀𝐃 𝐂𝐎𝐌𝐏𝐋𝐄𝐓𝐄")
gg.sleep(500) 


gg.toast("𝐀𝐂𝐂𝐄𝐒 𝐆𝐑𝐀𝐍𝐓𝐄𝐃")


gg.getTargetInfo()
gg.alert("𝙶𝙰𝙼𝙴 𝚅𝙴𝚁𝚂𝙸𝙾𝙽 : 4.2.2a                                                                                                                            𝙶𝙶 𝚅𝙴𝚁𝚂𝙸𝙾𝙽 : 95.0                                                                                                                        𝙶𝙰𝙼𝙴 𝙽𝙰𝙼𝙴 : ᴍᴏᴅᴇʀɴ ᴄᴏᴍʙᴀᴛ 5                                                                                                                 𝚂𝙲𝚁𝙸𝙿𝚃 𝚅𝙴𝚁𝚂𝙸𝙾𝙽 : 1.7                                                                                                                                 𝙻𝙰𝚂𝚃 𝚄𝙿𝙳𝙰𝚃𝙴 :   Fʀɪ. 17 Aᴘʀɪʟ                                                                                                  ᴍᴀᴅᴇ ʙʏ ᴍᴀᴀʀs ʏᴛ                                                                                                                                ©2020 ᴍᴀᴀʀs ʏᴛ ᴀʟʟ  ʀɪɢʜᴛs ʀᴇsᴇʀᴠᴇᴅ", "𝐍𝐄𝐗𝐓")


ProgressBar =  "║░░░░░░░░░░░░░░░║";for x = 1,16,1 do gg.sleep(90) ProgressBar = ProgressBar:gsub("░","▓",1);gg.toast(ProgressBar) end gg.sleep(90) 
gg.sleep(90)
gg.toast("𝐋𝐎𝐀𝐃 𝐂𝐎𝐌𝐏𝐋𝐄𝐓𝐄")
gg.sleep(200)


while(true) do
if gg.isVisible(true) then
menuk = 1
gg.setVisible(false)
end


START = 1
function START()
gg.toast("☆︎𝐒𝐂𝐑𝐈𝐏𝐓 𝐌𝐀𝐈𝐍 𝐌𝐄𝐍𝐔☆︎")
ab = gg.choice({
    '➢ 𝐂𝐎𝐑𝐄𝐒 𝐇𝐀𝐂𝐊',
    '🚸 𝐄𝐗𝐈𝐓'
    },nil,'𝚂𝙴𝙻𝙴𝙲𝚃 𝙰𝙽𝚈 𝙷𝙰𝙲𝙺                                                                                      ᴍᴀᴅᴇ ʙʏ ᴍᴀᴀʀs ʏᴛ        ᴍᴏᴅᴇʀɴ ᴄᴏᴍʙᴀᴛ 5')

if ab == 1 then cor() end
if ab == 2 then os.exit() end
end


function cor()

on = "[ ON ]"
off = "[ OFF ]"
state = off
state1 = off
 

local menu = gg.choice({state.." Sixth Sense ", state1.." Hair Triger", "Exit"}, nil, "On-Off button demo")
if menu == 1 then
if state == off then
state = on
else
state = off
end
SixthSense()
elseif menu == 2 then
if state1 == off then
state1 = on
else
state1 = off
end
HairTriger()
elseif menu == 3 then
os.exit()
end
end


function SixthSense()
if state == on then
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('41;37;38;40;43;74;72:581', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.refineNumber('41', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
local freeze=gg.getResults(100)
for i, v in ipairs(freeze) do
if v.flags==gg.TYPE_FLOAT then
v.value='1000'
v.freeze=true
end
end
gg.addListItems(freeze)
gg.clearResults()
-- Enable Hack 1
gg.toast("Success Enable Sixth Sense")
else
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('1000;37;38;40;43;74;72:581', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.refineNumber('1000', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
local freeze=gg.getResults(100)
for i, v in ipairs(freeze) do
if v.flags==gg.TYPE_FLOAT then
v.value='41'
v.freeze=true
end
end
gg.addListItems(freeze)
gg.clearResults()
-- Disable Hack 1
gg.toast("Success Disable Sixth Sense")
end
cor()
end

function HairTriger()
if state1 == on then
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('76;74;61;49;44;84;46;43:981', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.refineNumber('44', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
local freeze=gg.getResults(100)
for i, v in ipairs(freeze) do
if v.flags==gg.TYPE_FLOAT then
v.value='134'
v.freeze=true
end
end
gg.addListItems(freeze)
gg.clearResults()
-- Enable Hack 2
gg.toast("Success Enable Hair Triger")
else
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('76;74;61;49;134;84;46;43:981', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.refineNumber('134', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
local freeze=gg.getResults(100)
for i, v in ipairs(freeze) do
if v.flags==gg.TYPE_FLOAT then
v.value='44'
v.freeze=true
end
end
gg.addListItems(freeze)
gg.clearResults()
-- Disable Hack 2
gg.toast("Success Disable Hair Triger")
end
cor()
end

if menuk == 1 then START() end
end
 

Screenshot_20200424-030656_Chrome.jpg

Screenshot_20200424-030659_Chrome.jpg

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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.