Guest User

startup.lua

a guest
Apr 7th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. term.setTextColor(colors.lime)
  2. term.setCursorPos(10,9)
  3. write("Username: ")
  4. sleep(.3)
  5. name = read()
  6. paintutils.drawFilledBox(1,1,51,19)
  7. term.setCursorPos(10,9)
  8. write("Password: ")
  9. sleep(.3)
  10. pass = read("*")
  11. loading = 0
  12. paintutils.drawFilledBox(1,1,51,19)
  13. while loading < 30 do
  14.   term.setCursorPos(13,9)
  15.   loader = math.random(1,3)
  16.   while loader > 0 do
  17.     write("|")
  18.     sleep(tt)
  19.     loading = loading+1
  20.     loader = loader-1
  21.     sleep(math.random(0.2,0.5))
  22.   end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment