Request Rejected Datastore?
Heya. I'm trying to get the game to check if the player has visited before, and if not, then set the Async to "1" and continue incrementing for that player each time he/she joins. I read up on the forum, and I unfortunately need to check the key before I set it. Thanks!
1 | local hasJoined = ds:GetAsync(newplayer.Name.. "_JOIN" ) |
2 | if hasJoined = = nil then |
4 | ds:SetAsync(newplayer.Name.. "_JOIN" , 1 ) |
5 | elseif hasJoined > = 1 then |
6 | isprevioususer = hasJoined |
7 | ds:IncrementAsync(newplayer.Name.. "_JOIN" , 1 ) |