How Can I unlock my levels?

I solve writing this: loadsave.saveTable(storyboard.state.clevel, “clevel.json”)

But, I know the problem.

In the menu, I give the value 0 to the variable. When I pass the level 12, I change the value to 1. Then, the program return to the  menu, and I can go to the second world. I relaunch the game, and the value change to 0.

What Can I do to change once the variable´s value?

PD:

Menu (varibale = 0 ) -> Level 12 (variable = 1) -> Menu (variable = 1) -> Can go to world 2.

Relaunch.

Menu (variable = 0 )

The menu is always the same.