Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count = 0
- while true do
- shell.run("clear")
- print("You are having a " .. count .. " GP)
- event, argument = os.pullEvent()
- if event =="redstone" then
- if redstone.getInput("back") then
- count = count + 1
- end
- if redstone.getInput("bottom") then
- count = count - 1
- end
- elseif event == "char" and argument == "q" or redstone.getInput("left") then break end
- end
Advertisement
Add Comment
Please, Sign In to add comment