I do my scripts with the quickedit you can search for this in play storer. Create a separate folder for your scripts put the name you want, after that your scripts should be saved with (.lua) = Ex: Sky.lua. all the processes that you see him making manual you foresee to write in the script.
Ex script: function Main()
If choice ==1 then Infinityfly() end
If choice ==2 then Exit() end
this is just an example and contains errors as well as lack of information!
Good luck for you!☺