Jump to content
  • 0

How to clear previous connect?


external7772

Question

Hello Every one! I want to make multi-language script. There some connections to pastebin..
 

function FIRSTLOAD()
loader = gg.choice({ 
"≫≫ ⚙️ ᴇxᴇᴄᴜᴛᴇ ᴛʜᴇ sᴄʀɪᴘᴛ",
"≫≫ 🇬🇧 sᴇʟᴇᴄᴛ ᴀ ʟᴀɴɢᴜᴀɢᴇ",
"≫≫ End "} ,0,"🔮 ")

if loader == nil then gg.toast("🔍 ᴛᴀᴘ ᴏɴ ɢɢ ɪᴄᴏɴ ᴛᴏ ᴏᴘᴇɴ sᴄʀɪᴘᴛ ᴍᴇɴᴜ! 🔍") end
if loader == 1 then end
if loader == 2 then LANGUAGES() end


if loader == 3 then
os.exit(print("end"))
end
end

function LANGUAGES()
languageselector = gg.choice({ 
"🇷🇺 Русский",
"🇹🇷 Türkçe",
"🇦🇪 العربية",
"🇯🇵 日本語",
" ʙᴀᴄᴋ ᴛᴏ ᴍᴇɴᴜ"},0,"test")


if languageselector == nil then gg.toast(" ᴛᴀᴘ ᴏɴ ɢɢ ɪᴄᴏɴ ᴛᴏ ᴏᴘᴇɴ sᴄʀɪᴘᴛ ᴍᴇɴᴜ! ") end
if languageselector == 1 then 
API = gg.makeRequest('https://pastebin.com/raw/xxxxxx').content
if not API then
gg.alert('no connection')
noselect()
else
pcall(load(API))
end
os.exit()
end


if languageselector == 2 then 
API = gg.makeRequest('https://pastebin.com/raw/xxxxxx').content
if not API then
gg.alert('no internet')
noselect()
else
pcall(load(API))
end
end

if languageselector == 3 then
gg.alert("Soon")
FIRSTLOAD()
end

if languageselector == 4 then
API = gg.makeRequest('https://pastebin.com/raw/xxxxxx').content
if not API then
gg.alert('no internet')
noselect()
else
pcall(load(API))
end
end

if languageselector == 5 then
FIRSTLOAD()
end
end

FIRSTLOAD()

And when it connecting to other language server i want 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.