Luck just determines specific momentary opportunities that that have the potential to set you in the right direction. The thing is, you need to be prepared to take advantage of those opportunities, as well as work on increasing the occurrence rate of those opportunities.
It’s like playing blackjack. Ultimately, it all comes down to luck, but you are significantly increasing your chances of winning by employing certain (legitimate) strategies rather than playing your hand randomly and hoping for luck to hit you.