Data Stores isn't working for some reason

Hello!

My game’s data stores stop working recently and I don’t know why. I haven’t changed the code for it and it was working fine before. Now, I’m getting error messages such as “Unable to cast value to Object” and I’m having issues fixing it.

Is this happening to anyone else or can anybody help me fix it? Thanks.

Here’s the source code were I keep getting errors.

1 Like

I’m 90% sure that the issue isn’t related to the provided piece of code. Show the rest of the code, preferably insert the whole script like this:

-- Code here

GetAsync only takes 1 value which is the key (or userId), other arguments will cause the script to error. By using GetAsync, you are already getting data from playerData DataStore

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.