Question: how to transfer messages on mac?
Answer: Turn on both your old and new Macs.
Open an Airdrop window on both Macs. ... 
Open up the ** /Library/Messages** folder (using the above method) on both the old and new Mac.
Drag that folder on your old Mac over to Airdrop.