Hey guys, I want to set a BestTime value of 0 when a player starts the game for the very first time.
here's my code for the cloud
handlers.SetPlayerValues = function (args, context) {
server.updateUserDataResult({
PlayFabId: currentPlayerId,
Data: { "BestTime": "0" }
})
};
Can someone tell me what am I doing wrong? Thanks