Please see the referenced image to get an idea of what I am referring to.
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 Optionsand 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 → Expandand 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 maskand see magic happening!
Source : Link , Question Author : RJ Navarrete , Answer Author : Lucian