Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (true)
- do
- print(" ==========================================")
- print(" ")
- print(" Welcome to Fresh & Toby inc")
- print(" For a list of avalible commands type 'help'")
- print(" ")
- print(" ==========================================")
- print(" ")
- print("Enter your Username:")
- User = io.read()
- print("Enter your Password:")
- Pass = io.read()
- if (User == "Toby" or User == "Fresh") then
- if ((Pass == "123admin" and User == "Toby") or (Pass == "123admin" and User == "Fresh")) then
- while (true)
- do
- print ("All commands are done lower case")
- print ("Commands: Power (On/Off) | LogOut")
- Command = io.read()
- if (Command == "power on") then
- print ("Power Turning on")
- os.sleep(5)
- end
- if (Command == "power off") then
- print ("Power Turning off")
- break
- os.sleep(5)
- end
- if (Command == "Log Out") then {
- break
- end
- end
- term.clear()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement