lua tabel not loading

I have a problem when i load my store scene in my game.

its a clicker game but when i load the store my score doesnt load

i use composer and in the store buttons event i save the tabel witch saves it.

but when the store loads in the scene show i have the score text witch i set to show the tabels “money” but the console says nil file not found.

can you post your code … and the actual full line(s) of text describing the error.  It sounds like it likely will be a scope issue, but no way of telling without seeing the relevant blocks of code.

i use the same system that you can download from GitHub By rob miracle. 

with the loadsave and main file installed i use this same system

local loadsave = require(“loadsave”)

myTable = {}

myTable.cash = 0  <= i set both of these values Elsewhere in the code

myTable.lvl = 0

the problem i have is in the game the saving and loading works fine its just when it saves when i leave the game or relaunch the sim after saving the tabel it resets the score and the console prints old file not found.

Have you tested this on a device?

can you post your code … and the actual full line(s) of text describing the error.  It sounds like it likely will be a scope issue, but no way of telling without seeing the relevant blocks of code.

i use the same system that you can download from GitHub By rob miracle. 

with the loadsave and main file installed i use this same system

local loadsave = require(“loadsave”)

myTable = {}

myTable.cash = 0  <= i set both of these values Elsewhere in the code

myTable.lvl = 0

the problem i have is in the game the saving and loading works fine its just when it saves when i leave the game or relaunch the sim after saving the tabel it resets the score and the console prints old file not found.

Have you tested this on a device?