The Holy Spirit has two major roles when it comes to the Scriptures. The first was revealing to its writers God’s message to His people, and the second is granting us the readers the understanding of God’s message.
The Holy Spirit, The Writer
God’s word is revealed to the writers, without ignoring their backgrounds, their cultures, and their education. Its aim is not merely to grant enlightenment to the writers’ minds but rather to engage them in a personal dialogue with God.
For prophecy never came by the will of man, but holy men of God spoke as they were moved by the Holy Spirit. (2 Peter 1:21)
The Holy Spirit, The Interpreter
The reason we were given the Scriptures is to grant us the communion with the Father through the Son, which is the intention to which we were created. The inspiration of the Holy Spirit is essential in making us realize this divine goal of communion.
All Scripture is given by inspiration of God, and is profitable for doctrine, for reproof, for correction, for instruction in righteousness (2 Timothy 3:16)
The beauty of the reading the Holy Scriptures in the presence of the Holy Spirit is that you get to understand the Scriptures from Him who wrote it.