Hi everyone! I developed an issue recently where a global data store was working in studio, but in game it fails to store data and generate an error. Here is my code:
local DataStoreService = game:GetService("DataStoreService")
local SusScores = DataStoreService:GetOrderedDataStore("SusScores")
local success, err = pcall(function()
SusScores:SetAsync(player.UserId, accuracyThing*100)
end)
if success then
print("Success")
else
print("Error")
print(err)
end
Thanks