First, check that you have assigned a value to scoreText in the inspector. Also check that there is a ScoreKeeper somewhere in the hierarchy. If both these are fine, check if you don’t have a rogue UIGameOver component somewhere that does not have the text assigned