This feature is only available in versions 4, 5 and 6. In Version 7 or higher, you'll now need to use Data Manipulation Tags for controlling how data is saved.
With any value or folder in both PublicPlayerData or HiddenPlayerData, you can use attributes to have more control over how your player data is saved. You can now simply add a boolean attribute called "SaveOnDeath" and/or "SaveOnRejoin".
Attribute
If TRUE [DEFAULT]
If FALSE
SaveOnDeath
The value or the contents of a folder WILL save when the player dies and respawns
The value or the contents of a folder WILL NOT save when the player dies and respawns
SaveOnRejoin
The value or the contents of a folder WILL save when the player leaves and will be successfully retrieved when they rejoin the game
The value or the contents of a folder WILL NOT save when the player leaves and will be successfully retrieved when they rejoin the game
Additional Details:
If you do not implement these attribute's then don't worry as the game will automatically set them to TRUE.
When you implement these attribute's, ensure that they are boolean values or else you may run into errors or unexpected behaviour!
Limitations
Current Limitation
As of currently, If you are using CustomDataModule then you arelikely to be unable to use SaveOnDeath due to saving method limitations (if using the combine functions). As a result, if you are using it then SaveOnDeath will be ignored and function as if it was set to true.