It’s all about getting an intuitive connection between your ears and the instrument. The same kind of intuition most people naturally have for their voice to some degree. Music theory can give you some tools to start thinking in terms of scales and harmony, but I think the intuition for it can only come from playing.