try putting your hand in the cage to get them used to you. It might be an idea to have treats in your hand whilst like you do this , so they relate you with positive things. I've never had rats, but I adopted a pair of degus who had previously been in a tiny cage , and theyre really friendly now.
Hope i helped you
Hope i helped you