I'm trying to make a text like this one here in Photoshop and i have no idea how to do that.
If this a big question, just give me a subject to search about it.
Layer > New Adjustment Layer > Invert and click
OK (ignore what it does to the image right now)
Set your type on a layer above the adjustment layer.
Command/Ctrl+click the Type Layer thumbnail in the Layers Panel to load the type as a selection.
Turn off visibility for the type layer.
Highlight the Adjustment Layer Mask and fill the selection with black.
Deselect All (Command/Ctrl+d)
Image > Adjustments > invert to invert the mask