Hard to give a good recommendation without knowing more about your situation, but Ben posted the essential information. Your options are student (X), resident (Z), or business (F) visa. You could get a really long duration tourist (L) visa and just live on that. You won’t be able to “officially” work or study on it, though.
Here’s something I posted recently when I went to Hong Kong to buy a business visa, you might find it helpful: https://chengduliving.com/getting-a-business-visa-in-hong-kong/