If gaming is the objective, you could get a better graphics card. But you will probably also need a new psu. You could reuse the new psu and gpu in a new build if you choose so would not necessarily be a waste of money.
It is doubtful parts will be unavailable, there are plenty of old parts floating around if you know where to look. But the cpu and ram are a deadend or not worth the upgrade.