Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local buttonGui = true
- local buttonGuiText = {}
- local sensorMum = {}
- local ToggleInfo000 = false
- local MainBase = {"Test 1", "Test 2", "Test 3", "Test 4", "Test 5", "Test 6", "Test 7", "Test 8", "Test 9", "Process Menu"}
- local ProcessBase = {"Pause App", "Kill App", "Back To Main"}
- sensorMum = 1
- function MainMenu()
- m = gg.choice(MainBase,nil,"Main")
- if m == 1 then
- gg.toast("\nTest 1")
- end
- if m == 2 then
- gg.toast("\nTest 2")
- end
- if m == 3 then
- gg.toast("\nTest 3")
- end
- if m == 4 then
- gg.toast("\nTest 4")
- end
- if m == 5 then
- gg.toast("\nTest 5")
- end
- if m == 9 then
- gg.toast("\nTest 9")
- end
- if m == 10 then
- sensorMum = 9
- mainCode()
- end
- end
- function ProcessMenu()
- m = gg.choice(ProcessBase,nil,"Process Menu")
- if m == 1 then
- Toggle000 = gg.choice({"True", "False"},nil,"Process Menu")
- if Toggle000 == 1 then
- ToggleInfo000 = true
- gg.toast("\nPaused The App")
- gg.processPause()
- else
- ToggleInfo000 = false
- gg.toast("\nUnpaused The App")
- gg.processResume()
- end
- end
- if m == 2 then
- gg.toast("\nKilled The App/Myself")
- gg.processKill()
- end
- if m == 3 then
- sensorMum = 1
- mainCode()
- end
- end
- function mainCode()
- if sensorMum == 1 then
- MainMenu()
- end
- if sensorMum == 9 then
- ProcessMenu()
- end
- end
- gg.showUiButton()
- while true do
- if gg.isClickedUiButton() then
- if buttonGui == true then
- gg.setVisible(false)
- mainCode()
- end
- end
- if buttonGui == false then
- if gg.isVisible(true) then
- gg.setVisible(false)
- mainCode()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement