This guy has a little luck and a big heart.

A Las Vegas man plans to donate much of his $14.3 million winnings this weekend to charity, according to the casino.

“It’s just a great story this time of year,” Rampart Casino spokeswoman Jenifer Smith told Yahoo News.

The winner, who wishes to remain anonymous, also intends to pay for the construction of a new church for his congregation, which currently holds religious services in a high school gymnasium.

He is not a big gambler; in fact, he was only playing the Megabucks slot machine to spend time with his best friend, who was visiting from out of town.

Within minutes, the lucky guy saw $14,282,544.21 flash across the top of the slot machine.

“He doesn’t really play Megabucks,” Smith said. “He just put $20 in the machine, and it hit.”

The casino’s general manager, Michael Gaughan Jr., was in the building to congratulate the winner.

“We are thrilled to be a part of this exciting jackpot. It doesn’t get any better than this,” Gaughan said in a statement.