Problem with keeping score

Im having trouble updating my score after restarting the scene with my game. So the first time after i relaunch the app, i reach a certain score, I die, i get taken to the restart screen with my score for that round and my overall high score, and i tap restart which resets the scene but the next time i die, my score for that round is not updated. I dont know how to fix this i’ve been playing around with it but i can’t find anything. I’m using the score module along with a mydata.lua module to save and load scores 

thanks in advance