Jump to content
  • 0

How can I make my Script not finish?


Pandita7u7

Question

8 answers to this question

Recommended Posts

Posted

no one will help you properly man they're not that good haha....ok i will help you

Posted

Write Your Menu function at end of code that runs ex:

Function Main()

This is were the menu is

 

Function CodeHack()

Bla bla bla

Main() 

End

Posted

Loop it.

Example:

function main()
local menu = gg.choice({"Menu 1", "Exit"}, nil, "Test Loop")
if menu == 2 then os.exit() end
end

while true do
main()
end

 

 

Posted
2 hours ago, maulz said:

Loop it.

Example:


function main()
local menu = gg.choice({"Menu 1", "Exit"}, nil, "Test Loop")
if menu == 2 then os.exit() end
end

while true do
main()
end

 

 

By doing that, it works, but I can not get out of the menu. The only way out is to cancel, but I want the menu to be open while I'm not using it

Posted
45 minutes ago, Pandita7u7 said:

By doing that, it works, but I can not get out of the menu. The only way out is to cancel, but I want the menu to be open while I'm not using it

while true do
  if gg.isVisible() then
    gg.setVisible(false)
    main()
  end
end

 

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.