Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hFile = fs.open("nyancat.txt", "r")
- notes = {}
- i = 1
- repeat
- notes[i] = hFile.readLine()
- i = i + 1
- until i == (MAXLINENUMBERINNYANFILE)
- hFile.close()
- for k,v in pairs(notes) do
- if notes[v] == 1 then
- rs.setBundledOutput("back", colors.white)
- elseif notes[v] == 2 then
- rs.setBundledOutput("back", colors.red)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement