Please see the referenced image to get an idea of what I am referring to.
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It only takes a minute to sign up.Sign up to join this community
Use Blend and Clipping Masks!
Make a text by text tool and write anything!
Press P to select pen tool and draw simple line (you can use line tool too).
Remove Fill and Give Stroke to the line eg. 4px.
Duplicate your line and drag it down and reduce stroke to very less eg. 1px;
Object → Blend → Blend Options and change spacing to Specific Steps and enter value like 30 steps or so.
Select both layers and press Ctrl+Alt+B or go to
Object → Blend → Make.
Extra: You can expand blending and make group if you want by
Object → Expand and you can edit your blending however by moving it's child objects by direct selection tool!
Move your blending to the bottom of your text Layer. to do so just select your blending group and press Ctrl+Shift+[
Now all you have to do is select your text and blend altogether and
Right click → Make Clipping mask and see magic happening!