Datastores appear to be broken?

  1. What do you want to achieve? Keep it simple and clear!
    I want to save and load data for my game.

  2. What is the issue? Include screenshots / videos if possible!
    Apparently, this: database:SetAsync(player.UserId, "testString") does not save the data

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Cannot think of / find any solutions

Thanks!

Footnotes:

  • Api services enabled
2 Likes

Do you have a working code / is it giving you an actual error? If you think your code is ok, try testing your data store in Roblox rather than studios, as I’ve found data stores tend to not be consistant in Studios.

2 Likes

Yeah, everything else works fine, Ill try it in game

1 Like

If you want to make sure that your code isn’t the problem you can use my datastore plugin as a template, the code in this plugin has been tested and works fine.

My code was not the problem, as playing the game out of studio finally gave a new result. (an error for the system I could not test because of roblox’s datastores)

Are you using a protected function?
Like:
local success, errorMessage = pcall(function()
– datastore stuff
end)

Your tip helped and saved me from a big rework. Thanks

What was the problem?
I’m curious.

The problem was that studio was being dumb and I had to join an actual game to get the datastores to work.

Strange,
but hey if it works it works.

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