Datastore Not Working

Is there any error in the output? You also could have studio api access off and that’s causing the issue.

I have studio api access on already, let me look in output

Then is there any error in the output?

nope, only setting data for (stat name)
and saving data for (stat name)
and succesfully saved

most script save, I have even a script i use in all my games but for some reason all of them dont work i this experience

What does the leaderboard show? There might be another script creating another object named “leaderstats” in the player causing the one created by the snippet I gave you not showing.

If you don’t change anything in the values they will all stay 0 forever.

the values get above 0 everytime I test bc otherwise it could never work indeed

Weird, I’m not sure what your issue is, make sure you are not changing the values on the client otherwise it wont show on the server and wont save.

Anything relating to data should be always done on the server, you can always make the client fire data to the server to change using a remote event.

does this script go via a client or not lol:

	game.Players.LocalPlayer.leaderstats.Clicks.Value = game.Players.LocalPlayer.leaderstats.Clicks.Value + 1
	game.Players.LocalPlayer.leaderstats.Humans.Value = game.Players.LocalPlayer.leaderstats.Humans.Value + 1 * game.Players.LocalPlayer.leaderstats.ClickLevel.Value

oh wait I think I see the problem, its a local script, it should be a script

If that is a local script, then that is your issue.

Thank you very much for this information! :slight_smile: