I don’t work with datastores very often, but from a cursory reading of your snippet, it appears that the issue would be that the data variable is not getting declared correctly. It’s evident that the call is being made from pcall properly (as the success state is obviously coming back true). Perhaps you might find this article helpful: