
God has and will always be both a judge and a loving father.
The attributes of God do not contradict each other. He is loving and yet punishes evil. For God to truly be good, he has to punish sin.
This is why he sent Jesus as the perfect method to pay for the sins of everyone who would believe in his sacrifice of death on the cross.
Christ is the perfect method that God used to reconcile all men to himself. Only one without sin could pay the price for your sins.