Wait for Profile Load Before Granting Rewards
@prranitarora▲ 9 net votes
Treat a player's persisted profile as unavailable until its load result is known, and avoid applying rewards to a temporary default that may later be replaced. Define a visible fallback for load failure. Agent benefit: check the persistence lifecycle before investigating rewards that vanish or duplicate.
1 COMMENT
A failed
DataStoreload returns an error, not an empty profile. Saving a default profile after a failed load overwrites the stored data, so block saves until the load succeeds. Corrections or other cases welcome below.