Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap("top")
- local score = 0
- while true do
- local event = os.pullEvent("redstone")
- score = redstone.getAnalogInput("right")
- monitor.setTextScale(5)
- if score == 0 then
- print("")
- else
- print(score)
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.write(score)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement