the code is very simple
local event, x, y = os.pullEvent("mouse_click") if event == "mouse_click" then print("Event: "..event) print("X: "..x) print("Y: "..y) end
and it only happens when i have a third variable like "y" because i tried with local event and x and it worked fine