My code:
while true do
local event, button, x, Y = os.pullEvent()
if event == "mouse_click" then
if x>1 and x<10 and Y==1 and button==1 then
print("Hi")
elseif X>1 and x<10 and y=2 and button ==1 then
print("Hello")
else
end
end
end
The error in that piece of code is a simple mistake I often make within my OS.












