Our righteousness is not going to cut it for God. We cannot enter into Gods world based on our goodness. We get there based on the righteousness of Christ. We get his righteousness in exchange for our sins. “He Himself bore our sins in his body on the cross, so that we might die to sin and live to righteousness” (1Peter 2:24 NASU).
When we live to righteousness it means we are cleansed from our sins in Gods eyes, not by our works but by our faith.