Datastore Data retrieval issues

I’m having an issue where it doesn’t seem like I’m able to store the value I want to store in my database, and when I go to retrieve the value I stored in my SavePlayer data, it returns nil. Any help on finding out why this is happening would be greatly appreciated, and below are the relevant code snippets and output.

function that runs on player join. (main function here)

Datastore module (at least the relevant bits) Character storage works perfectly fine if that’s important


Playerdata module where I have the base information.

the Output I get from the print statements in the main function and datastore
image

I’m not sure if this is the direct cause of your issue, but when using SetAsync, I recommend wrapping it inside of a pcall because it might not get the data successfully sometimes. This is because their may be some issue accessing the cloud.

local success, err = pcall(function()
	DataBase:SetAsync(plr.UserId)
end)

I doubt that this is the source of the issue, it may be possible that the data is not being set correctly, leading to you not being able to retrieve it.