Jump to content

Archived

This topic is now archived and is closed to further replies.

LynxzGaming

change choice text

Recommended Posts

How to make when the choice is pressed

::begin::

menu = gg.choice({'On'})

if menu == 1 and menu(1)text is On then

--menu(1) will change text to 'Off' 

goto begin

end

if menu == 1 and menu(1)text is off then

--menu(1) will change text to 'On' 

goto begin

end

Share this post


Link to post
Share on other sites

menu = gg.choice({'A', 'B'})

if menu == 1 then
-- A
end

if menu == 2 then
-- B
end 

 

Share this post


Link to post
Share on other sites
menuText = 'On'

::begin::

menu = gg.choice({menuText})

if menu == 1 and menuText == 'On' then
  menuText = 'Off'
  goto begin
elseif menu == 1 and menuText == 'Off' then
  menuText = 'On'
  goto begin
end

 

Share this post


Link to post
Share on other sites

  • Similar Content

    • By ATP-RAY2OP
      View File UNLOCK ALL SKINS FREE IN MOBILE LEGENDS NEW VIP SCRIPT BY ATP-RAY2OP
      HELLO GUYZ, THIS IS NEW VIP MLBB SCRIPT, WITH THIS SCRIPT UNLOCK ANY SKIN, OF ANY HERO, WORK IN RANK, CLASSIC, CUSTOM
      Keep checking for update, i update script almost once a week😊
      VIDEO TUTORIAL ⬇️
       
       
       
        
      SUBSCRIBE TO CHANNEL ATP-RAY2OP FOR LATEST SCRIPT⬇️
      https://www.youtube.com/channel/UC0vglNiRwQLRmLScYwylqgg
       
       
      Submitter ATP-RAY2OP Submitted 03/27/2020 Category LUA scripts  
    • By ATP-RAY2OP
      HELLO GUYZ, THIS IS NEW VIP MLBB SCRIPT, WITH THIS SCRIPT UNLOCK ANY SKIN, OF ANY HERO, WORK IN RANK, CLASSIC, CUSTOM
      Keep checking for update, i update script almost once a week😊
      VIDEO TUTORIAL ⬇️
       
       
       
        
      SUBSCRIBE TO CHANNEL ATP-RAY2OP FOR LATEST SCRIPT⬇️
      https://www.youtube.com/channel/UC0vglNiRwQLRmLScYwylqgg
       
       
    • By Nitrosauris
      Looking for a script or mod for Marvel Strike Force , whatever that can be done would be greatly appreciated.
       
      Just make sure it's a working mod or script.
×
×
  • Create New...