You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
My code has been saving player data when the player leaves without issue, however today, the function appears to run but it never finishes. -
What is the issue? Include screenshots / videos if possible!
This screenshot shows the code that should be running and where it’s called. The first print statement print(dailyPlayerData[userId], " is the data that’s being saved rn?") appears as expected.
None of the remaining print statements evaluate. I don’t get success, warn, or print(“But I did get to the bottom of this function”) to appear.
- What solutions have you tried so far? Did you look for solutions on the Creator Hub?
I have copied the exact same SaveData function and called it manually, and that does appear to be actually saving the data. However the
player.CharacterRemoving:Connect(function(character)
saveLeavingPlayerData(player)
end)
function does not appear to be completing fully. I do not know why, I can use a semi-manual auto save feature for now, but saving when people leave the experience has been working for weeks, and would be helpful for consistency of player data.
