how remove o erase score located in memory?

Hi, this is my first game in lua, i am trying remove score (in memory) when the scene is reload.

1.- (scene 1) the score is increment in display when the player correct response. when exit the scene the score is saved into the db.

2- (scene2) the score is load form the database, when the player repeat the level (scene1), the old score in memory is load in display.

i am try:

local variable = nil (nothing)

table = nil (nothing)

set the actual score at 0 when exit scene 2 (nothing)

set the actual score at 0 when load scene 1 (nothing)

ever use storyboard.purgeAll() and storyboard.removeAll() when load each scene (nothing)

remove all display an set local variables at 0 (nothing)
i read various post in the forum but i cant solve this problem

Ever load the score old when the level is repeat and this sum the new score with old score.

my answer is how remove the score located in memory?

i need help seriously :smiley:

You probably need to post some code.

i set the score at 0

score.set(0)

and work finally  :smiley:

ty very much

You probably need to post some code.

i set the score at 0

score.set(0)

and work finally  :smiley:

ty very much