plr.UserId is a number while the key parameter is supposed to be a string. I also don’t recommend saving the player’s data every time a stat is changed, you can do it when they leave the server using game.Players.PlayerRemoving.
It does not work for me too. Why? Actually, I have watched a lot of youtube tutorials and even now I can remember the codes but I still cant make a working datastore.
without datastore in the search part nothing also?
and try to toggle off the API service there and save it then go back in and toggle it back on then republish to the server and try it again
had someone else earlier today with same issue kinda thinking its an issue with api or something
I have investigated the problem for a while, and I have found one question. Why does the script only not work for me??? I put this script into another place and it is not working (I have checked the API service has opened)