Possible typo on line 103
setPlayerStorageValue(player,config.storage, os.time() + 20 * 60 * 60)
Did you mean?
setPlayerStorageValue(players,config.storage, os.time() + 20 * 60 * 60)
The metatable way to do it is
players:setStorageValue(config.storage, os.time() + 20 *...