Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

How to fix error, "Argument 1 missing or nil", when I am making a DataStore?

Asked by 6 days ago
Edited 6 days ago

I am currently trying to make a DataStore, and error, " 19:10:00.118 - Argument 1 missing or nil", shows up. Here is the piece of code that it is showing up on,

local function InitializeSync()                                                                         

    local NewData = game:GetService("HttpService"):JSONEncode(Sync.Data);
     local OldData = game:GetService("HttpService"):JSONEncode(DataStore:GetAsync("SyncData")); -- this is the line the error shows up on

I would appreciate help, Thanks!

0
Probably means Sync.Data is nil deth836231 31 — 6d

Answer this question