local function savePlayerData(playerUserId)
if sessionData[playerUserId] then
local success, err = pcall(function()
playerData:SetAsync(playerUserId, sessionData[playerUserId])
end)
if not success then
warn("Cannot save data for player!")
end
end
end
My understanding is that pcall() returns whether the code was run without error or not as its first value, which I understand. Why does the wiki also set pcall() to err, though? Is it just a mistake?
