This happens to me a lot, but rejoining or closing roblox studio isn’t fixing the issue. My datastoring script has worked perfectly fine up until some time ago, when it stopped working. If the game detects the player has no data, it will give default values, but everything is just “0”. I have a more complex data store with bools and strings and such, but those aren’t loading either. DatastoreService is up and my script isn’t throwing any errors, so what’s wrong?
Bumping because this is still an issue. I checked the help and feedback tab and my post wasn’t even there…
What is the source code of your data handler?
Sorry for the super late reply. I wrote the data handler myself, but I actually found a solution. I downloaded a copy of an older version of the rbxl file and pasted my new scripts, everything worked fine. I still have no idea what caused it, but I did edit some values in a datastore plugin.
Since you fixed it yourself, please mark your post as a solution so other people don’t get confused and think there’s still an issue.
EVERYONE!!! This was not the solution! I fixed my datastore like this:
game:BindToClose(function()
for i, v in pairs(Players:GetChildren()) do
if v:IsA("Player") then
save(v)
end
end
end)
Save is the saving function. Players is game.Players. It’ll save all the player data if the game closes improperly.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.