Datastore broken

Which script? There multiple scripts.

That has nothing do do with the Leaderboards.THAT is for the counter. it should display as “# CLicks”

I mean click on the “arrow”, you will see for which script I responded.

You cant get on the server variable
game.Players.LocalPlayer

Hi,

i see that in your code, when you are adding a new value, you are setting the async and not getting the async. GetAsync() should also be used in a pcall to utilize any errors.

Good luck with your code!

2 Likes

Still have NO idea. Why is this so hard to fix? Legit 75 “comments” and still a broken DS.

Many devolpers would agree That DataStore 2 is better

and

This would be a great tutorial to watch

Hey,
I don’t recommend saving the player Points / Clicks every time they changed

Instead Save the data when player leave or the server shut down using game:BindToClose()

2 Likes

In theroy that would minimize lag correct?

Kinda Right,

When you’re trying to save too much data in a few seconds The DataStore will add it to the Queue
(Wait List In Short)

More Info:

Oh and then that causes some of it not to save.

1 Like

So does DataStore 2 prevent this then?

I recommend using data store 2

Read What I sent you in DM

More Info about DataStore2 Backups:
https://kampfkarren.github.io/Roblox/advanced/backups/

1 Like

To everyone: I legit just want a SIMPLE Datastore for the leaderstats that SAVES + LOADS DATA! Have gotten 85+ responses, and NONE of them help!

Wait, I will sent you working DataStore script

(btw maybe I’m the new dev)

1 Like

Remember it needs 2 values, and can talk to other scripts.

I know Points value and Clicks Value

Do coins instead of points. Points was just a temporary thing

1 Like

Points is what the code talks to, but I cajn make it so it displays Coins.