Jump to content
  • 0

How to Close Game Guardian Menu without the Script Ending


Aesthetic

Question

Hey! I see a lot of YouTubers making these scripts where you can close the Menu and Re-Open by clicking/tapping the Game Guardian float Icon, does anyone know how to do this? I have been searching everywhere 😁 Thank you!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

17 hours ago, Aesthetic said:

Hey! I see a lot of YouTubers making these scripts where you can close the Menu and Re-Open by clicking/tapping the Game Guardian float Icon, does anyone know how to do this? I have been searching everywhere 😁 Thank you!

It's somehow complex but I can drop a file for you, then you can ask question if you don't understand. Try using the file below

cs='Oof'
while(true)do
if gg.isVisible(true)then
gal = 1
gg.setVisible(false)
end
gg.clearResults()
if gal == 1 then
First()
end
end

 

Always put "any word" = -1 to minimize the script 

Slap Kings v1.0.3.lua

Link to comment
Share on other sites

---------------------------------------------------------------------

function menu()

	local list = {
		'Current Score = 1',
		'Current Score = 2',
		'Current Score = 3',
		'Current Score = 4',
		'Exit',
		}

	m = gg.choice(list)		-- global var that can access in main()

	if m == nil then			-- cancel
		gg.setVisible(false)
		return
	end

	if m == #list then os.exit() end    -- last item is exit

	---------------------------------------

	main()
end

---------------------------------------------------------------------

function main()
  -- do your job
	gg.setVisible(false)					-- hide ui
  -- do your job
end

---------------------------------------------------------------------

while true do
	menu()

	::WAIT::

	while not gg.isVisible() do
		gg.sleep(1000)
	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.