I am a bit new to datastores, and on a recent project no matter what I do I get a "request rejected" output where it says playerData:SetAsync()
It was working fine before until recently, not sure what happened. Anyone have any clue? It would be greatly appreciated!
local playerData = game:GetService("DataStoreService"):GetDataStore("Players", player.userId) if(playerData:GetAsync("Data") == nil) then local success, message = pcall(function() playerData:SetAsync("Data", {Credits=0, Cases={}, Guns={ Shotgun={"Default"}, LMG={"Default"}, SMG={"Default"}, Rifle={"Default"} }, Characters={ Runner={}, Tank={}, Medic={}, Hunter={}, Monster={} }, Hunter={Rank=1, XP=0, MaxXP=437, Gun="Default", Character="Default"}, Medic={Rank=1, XP=0, MaxXP=437, Gun="Default", Character="Default"}, Runner={Rank=1, XP=0, MaxXP=437, Gun="Default", Character="Default"}, Tank={Rank=1, XP=0, MaxXP=437, Gun="Default", Character="Default"}, Monster={Rank=1, XP=0, MaxXP=437, Character="Default"} }) end) if not success then print("An error occurred: " .. message) end end
Edit: I am going to believe that this is a roblox side bug if no one can actually give me an answer to the problem.