Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1,1)
- paintutils.drawFilledBox(1,1,6,3,colors.red)
- while true do
- local event = {os.pullEvent()}
- if event[1] == "mouse_click" and event[3] >= 1 and event[3] <= 3 and event[4] >=1 and event[4] <=6 then
- paintutils.drawFilledBox(1,1,6,3,colors.green)
- elseif event[1] == "key" and event[2] == 56 then
- shell.run("pastebin run yehp9UHN")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement