Originally posted by PhalaxAero
Hey guys!
So im really new at coding and i wanna start learning, and a couple of days ago Caked Up v1.8's script got released and i wanted to edit that menu... ive edited a bunch of stuff but i can NOT figure out how to make the scrollbar stay were it was when i close the menu, so for an example if the scroller is on "All Players" when i close the menu it wont go back up to "Main Mods" but stay at "All players"... I know that i gotta add a Variable or something but im not quite sure..? Please help! Btw no i am NOT going to release the edited version of Caked Up cuz that would just be leeching

)
Make an array, and each time you open a (sub)menu just set an element of that variable to the current option you're on for that menu, there's a few to go about this.
One way. self.CurrentOption["MainMenu"] = (Scroll_Index); The first dimension of your array would be whichever sub menu you are in, of course, and the value Scroll_Index would be whichever option you're at. You can change this value whenever you open a sub menu(or close the menu) then when you open a submenu or something, rather than having it scroll to the 0th index, make it scroll to our value that we stored.
Hope this helps.