it depends on wich point of your game/time you want to add the Levelscore to the totalscore!
Level ended:
on button press(nextlvlbutton) --> add to --> variable:Totalscore,value:score
if the button is clicked, the score will be added to the totalscore
;-)