QuarkYT Posted May 20, 2020 Share 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 Link to comment Share on other sites More sharing options...
Administrators Enyby Posted May 20, 2020 Administrators Share Posted May 20, 2020 Obviously call your function. Link to comment Share on other sites More sharing options...
zam535582 Posted May 20, 2020 Share 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. Link to comment Share on other sites More sharing options...
ItsSC Posted May 20, 2020 Share Posted May 20, 2020 Call your function... mainmenu() <-- add this to the last line. Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.