Tutorial/Login System

This tutorial will teach you how to setup a login system for your computer.

Start by editing the startup file term.clear term.setCursorPos(1, 1) username = {"user1", "user2", "user3"} -- Here you need to define all usernames avaible password = {"pass1", "pass2", "pass3"} -- Here you define what password each user has, remember to put user1's password in the first row and so on. write("Username: ") user = read write("Password: ") pass = read for i=1, #username do if user == username[i] then if pass == password[i] then break end end end print("Logging in...") sleep(1) print("Welcome "..user") And thats it. If you want to make the program un-terminateable then put this as the first line in the program

os.pullEvent = os.pullEventRaw By Brainless243