Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Updat System v1.0 --
- -- Created by JDG --
- -- 7 / 31 / 2018 --
- -- 8:00 PM CT --
- function cls()
- shell.run("clear")
- end
- if fs.exists("Updat") == false or fs.exists("Launcher.exe") == false then
- error("Crashed: Failed to Verify File Name(s). Please Reinstall.")
- end
- sel = 1
- function MainMenu()
- Options()
- cls()
- if sel == 1 then
- print(" >", op1)
- print(op2)
- print(op3)
- elseif sel == 2 then
- print(op1)
- print(" >", op2)
- print(op3)
- elseif sel == 3 then
- print(op1)
- print(op2)
- print(" >", op3)
- end
- end
- function Options()
- op1 = "Option 1"
- op2 = "Option 2"
- op3 = "Exit"
- end
- while true do
- MainMenu()
- a, i = os.pullEvent("key")
- sleep(.01)
- if i == 17 or i == 200 and sel ~= 1 then
- sel = sel - 1
- elseif i == 31 or i == 208 and sel ~= 3 then
- sel = sel + 1
- elseif i == 28 or i == 57 then
- if sel == 1 then
- -- selection 1
- elseif sel == 2 then
- -- selection 2
- elseif sel == 3 then
- cls()
- break
- end
- end
- end
Add Comment
Please, Sign In to add comment