try this:
local success, response = pcall(function()
playerData:SetAsync(userId, saveTab)
end)
if success then
print("Data saved successfully")
else
warn("Data didn't save", response)
end
You can then find the error code and what is causing it with https://developer.roblox.com/en-us/articles/Datastore-Errors