While you pet them, it is a good idea to talk to them in a quiet, friendly-sounding voice so they know you're not a threat. If your rat begins to seem scared, put them back in the cage and give them a treat. Repeat this process every day until they feel comfortable with you holding them.