Hi Dee, I hope this helps you
Pocket door framing requires making a hollow wall for the pocket door to slide into. Here is a framing diagram: https://i.pinimg.com/736x/30/fd/c6/30fdc682601cd5d0b34b6c1b78de723a--pocket-door-frame-pocket-doors.jpg
I recommend you do a search for videos for "installing pocket door" and watch as many as you can find. Some will contain more information or a different way of presenting the information that may clarify the build for you.
Usually you make double frame with the studs on the flat so there is enough room to have the door slide into it. You will have to remove some of the present wall to do this.