tex:SetHandler("OnMouseUp", function(control, button, upInside) if button == 2 and upInside then ... end)