a certain number/score is reached and the games ends and brings up an end screen/widget

Im really new to this, im using the endless runner shooter template by phoenix.