Jesus paid the price for us to know God. You can’t get to God by yourself by being “good.” The Bible says:
“For it is by grace you have been saved, through faith–and this not from yourselves, it is the gift of God– not by works, so that no one can boast.” Ephesians 2:8-9 NIV
To be saved, you must turn from your sins, (the Bible calls this repentance), trust Jesus Christ alone to rescue from your sins, and confess Jesus as the Lord of your life.
“Repent, then, and turn to God, so that your sins may be wiped out, that times of refreshing may come from the Lord.” Acts 3:19 NIV“
"He then brought them out and asked, 'Sirs, what must I do to be saved?' They replied, 'Believe in the Lord Jesus, and you will be saved…'" Acts 16:30, 31 NIV
“That if you confess with your mouth, 'Jesus is Lord,' and believe in your heart that God raised him from the dead, you will be saved.” Romans 10:9 NIV
The Bible says in Romans 10:13, “Everyone who calls on the name of the Lord will be saved.” You can do that now by simply praying a prayer like this:
“Lord God, I know I am a sinner and do not deserve eternal life. But I believe You sent your Son Jesus to die in my place. I believe He died and rose from the grave to purchase a place in heaven for me. I now turn from my sins and am placing my trust in Jesus only to save me from my sins. Please come into my life now. I surrender control of my life to you. Thank you for your promise to forgive my sins and save me. In Jesus’ name I pray, Amen.”