Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. hFile = fs.open("nyancat.txt", "r")
  2. notes = {}
  3. i = 1
  4. repeat
  5. notes[i] = hFile.readLine()
  6. i = i + 1
  7. until i == (MAXLINENUMBERINNYANFILE)
  8. hFile.close()
  9. for k,v in pairs(notes) do
  10. if notes[v] == 1 then
  11. rs.setBundledOutput("back", colors.white)
  12. elseif notes[v] == 2 then
  13. rs.setBundledOutput("back", colors.red)
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement