Id say it's mostly the change in environment but could be a bit of both. Give him some time alone to settle. Is he in the same cage that he was in at the shelter? Also make sure he has a few hides. I know one of my girls gets nervous if she doesn't have enough hides in her tank