QuarkYT Posted May 20, 2020 Posted May 20, 2020 function mainmenu () mainmenu = gg.choice ({ ' Subscribe to Quark ThoNos ', ' Other Menu ', ' exit '},' Quark ThoNos') if mainmenu == 1 then tosubscriber () end if mainmenu == 2 then other6 () end if mainmenu == 3 then exit () end end
Administrators Enyby Posted May 20, 2020 Administrators Posted May 20, 2020 Obviously call your function.
zam535582 Posted May 20, 2020 Posted May 20, 2020 function mainmenu () local mainmenu = gg.choice ({ ' Subscribe to Quark ThoNos ', ' Other Menu ', ' Exit '},nil,' Quark ThoNos') if mainmenu == nil then gg.toast("Canceled") os.exit() end if mainmenu == 1 then tosubscriber () end if mainmenu == 2 then other6 () end if mainmenu == 3 then exit () end end function tosubscriber() gg.alert("Please subscribe to Quark ThoNos.") end function other6() gg.alert("Go to Other Menu...???") end function exit() gg.alert("The script will exit now...duh.") os.exit() end while true do if gg.isVisible(true) then mainmenu() end end like this.
ItsSC Posted May 20, 2020 Posted May 20, 2020 Call your function... mainmenu() <-- add this to the last line.
Question
QuarkYT
function mainmenu ()
mainmenu = gg.choice ({
' Subscribe to Quark ThoNos ',
' Other Menu ',
' exit '},' Quark ThoNos')
if mainmenu == 1 then tosubscriber () end
if mainmenu == 2 then other6 () end
if mainmenu == 3 then exit () end
end
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.