I’m having trouble designing encounters/scores for my players.

I’m having trouble designing encounters/scores for my players.

I’m having trouble designing encounters/scores for my players. They seem to always fail. is this like old school D&D?, in that the first few levels are perilous and then it gets easier. Or are my PC’s just bad at rolling dice?