Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Cheni")
- local n = 1
- local sortie = "back"
- local timer
- local running = true
- while running do
- timer = os.startTimer(0.5)
- local event, p1 = os.pullEvent()
- if event == "char" and p1 == "q" then
- running = false
- elseif event == "timer" and p1 == timer then
- rs.setBundledOutput(sortie, n)
- n = n * 2
- if n > 1024 then
- n = 1
- end
- end
- end
- print("FIN !")
Add Comment
Please, Sign In to add comment