Jump to content
  • 0

Plz help me out i made this script but when i click on exit option it sends me back to the main home page in simple words the script doesnt end


GAMAGODX

Question

5 answers to this question

Recommended Posts

gg.alert("⇲ ᴡᴇʟᴄᴏᴍᴇ ᴛᴏ ɢᴀᴍᴀs ᴠɪᴘ s14 ⇱")
gg.alert("⇄s14 ᴠɪᴘ ᴘᴀɪᴅ sᴄʀɪᴘᴛs ᴏᴘᴇɴ\n\nғᴏʀ ʙᴜʏ ᴄᴏɴᴛᴀᴄᴛ @GAMAGODX⇄")
gg.alert("↗ᴛʜɪs ᴠɪᴘ ɪs ᴀ ɢɪғᴛ ғᴏʀ 30ᴋ↖")
gg.setVisible(false)
function HOME()
Menu = gg.choice({
    "☞ ᴍᴏᴅ ᴍᴇɴᴜ",
    "☞ ᴇsᴘ",
    "☞ ɢᴜɴ ᴍᴇɴᴜ",
    "☞ ғʟʏ ᴍᴇɴᴜ",
    "☜ ᴇxɪᴛ"},nil,"┏ ᴍᴏᴅ ᴍᴇɴᴜ ʙʏ ɢᴀᴍᴀ\n┣ ᴍᴏᴅ ᴍᴇɴᴜ ᴛʏᴘᴇ [ғᴜʟʟ ᴠɪʟ]\n┗ ɪɴ ɢᴀᴍᴇ ʜᴀᴄᴋs ᴀʟsᴏ ᴛʜᴇʀᴇ")
if Menu==nil then
else
if Menu==1 then
mod()
end
if Menu==2 then
esp()
end
if Menu==3 then
gun()
end
if Menu==4 then
gun()
end
if Menu==5 then
fly()
end
if Menu==6 then
Exit()
end
end
PUBGMH = -1
end
  function mod()
  end
  function esp()
  end
  function gun()
  end
  function fly()
  end
  function Exit()
  os.exit()
  end

---i made this script working fine but when i click on exit button it doesnt end plz solve this error please-----

 

Link to comment
Share on other sites

Menu = gg.choice({

   1 = "☞ ᴍᴏᴅ ᴍᴇɴᴜ",

   2 = "☞ ᴇsᴘ",

   3 = "☞ ɢᴜɴ ᴍᴇɴᴜ",

    4 = "☞ ғʟʏ ᴍᴇɴᴜ",

    5 = "☜ ᴇxɪᴛ"} 👈👈👈 exit at 5

but you write...

 if Menu==3 then gun()

end

if Menu==4 then gun()👈👈 got extra

end

if Menu==5 then fly()

end

👉👉if Menu==6 then Exit()👈👈

 

 

 

[added 3 minutes later]

im guess you know what to do now.

Link to comment
Share on other sites

2 hours ago, Jaadugar said:

You have to make a function to exit

Put os.exit() in the exit function to exit the script

didnt he already done that...??

he assigned EXIT in "choice menu 5" but call it at menu == 6(doesnt exist)

function gun() repeated at menu == 4 which should be fly()

and function exit() is menu == 5.

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.