Crystal_Mods100x Posted May 20, 2021 Posted May 20, 2021 Hi guys today ill show you how to make a script with sub menus lets say we are modding a shooter game and the values are too easy to find and they are so much mods in there. well this may help but cleaner code + debugging is required and we have a way to stop always declaring local gg = gg --main code --version: 1.0 --description: menu with sub menus local su = gg gf = su.getFile():match("[^/]+$") file_name = "main.lua" if file_name == gf then su.alert("file was not renamed") else su.alert("file was renamed") end function GM() gm = su.multiChoice({ "Aimbot", "Fire Rate", "No Recoil", "No Reload", "Exit" },nil,"player menu") if gm[1] == true then end if gm[2] == true then end if gm[3] == true then end if gm[4] == true then end if gm[5] == true then end if gm == nil then end end function PM() pm = su.multiChoice({ "Self ESP", "Fast Run", "Lock View", "Unlock View", "God Mode", "Exit" },nil,"player menu") if pm[1] == true then end if pm[2] == true then end if pm[3] == true then end if pm[3] == true then end if pm[4] == true then end if pm[5] == true then end if pm[6] == true then os.exit() end if pm == nil then end end function CM() cm = su.multiChoice({ "Player Color Black", "Color Blue", "Color Yellow", "Color Red", "Color Black", "Exit" },nil,"color menu") if cm[1] == true then end if cm[2] == true then end if cm[3] == true then end if cm[4] == true then end if cm[5] == true then end if cm[6] == true then os.exit() end if cm == nil then end end main = su.choice({"Gun Menu","Player Menu","Color Menu","Exit"},nil,"main script v1.0") if main == 1 then GM() end if main == 2 then PM() end if main == 3 then CM() end if main == 4 then os.exit() end all you need is your values and a strong compiler to block any leechers out!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.