Coding Error

ROOT:SetNetworkedCustomProperty():Connect(OnPropertyChanged)

Is something wrong with this code? I get the error of:

Error running Lua task: [5C9F0D7F85BF76C3] NPCAIServer_2:771: stack index 2, expected string, received no value: (bad argument into 'boolean(CoreObject, string, value)')