Leaderstats Script Not Working. Please Help!

You should not save data on any other script than the main leaderstats script
And in the main, I believe you did not use "Id_"..plr.UserId, so to get the previous data you have to use plr.UserId

So, delete save data. and add "Id_“plr.UserId” Somewhere?

No, just don’t use SetAsync anywhere other than the main leaderstats script.

oh ok so delete SetAsync?

30303030

Yes…
30 chars

OH ok, and replace it with “Id”_“plr.UserId” ?

Edit: or just leave it with nothing

No, your leaderstats script is loading, and saving data, it is unecessary to save data on any other script.

ok, lemme go delete it right now then, and we’ll see what happens from there

when i deleted SetAsync in 1 place it just gave me an error… Could you possibly write it for me? im sorry im difficult to talk to… :grimacing:

it was where it said

	local GetSaved = DS:SetAsync(plrkey)

when i changed it to

	local GetSaved = DS:(plrkey)
it gave me an error at

```lua
(

Don’t worry, we’re here to help, not hate.

ok, thank you i really appreciate it!

Do you need the leaderboards? (The top 10 list)

no but lots of people requested me to add it, and because it makes the game better slightly.

Give me a minute, I’ll script a leaderboard for you, if that’s okay.

yea its ok, thanks!

30 charssssssssss

i actually have to go, again… (sorry) ill be back in a few hours though.

I think I’m finished


image

Rename these parts to something that the leaderstats have – (Already did)


Here’s the model file. – (Download it and drag it inside studio.)
leaderboards.rbxm (9.2 KB)


image

After doing that; you will see 2 grey boxes, they are the 2 leaderboards for Coins, and Orbs. – (Make sure they are facing the right direction.)


Please let me know if anything is wrong.

PS: I colored the first 3 to match gold, silver, and bronze. – (Please let me know if you didn’t want that, and we’ll fix that.)

2 Likes

Ok thanks, I’ll test out later when I get back home. :grin:

Please note that I did not decorate them, so you might have to do that on your own, sorry. :slightly_smiling_face:
Oh, and the leaderboards update every 180 seconds, to redeem your stats on the leaderboard, you have to leave the game. If you go to the bottom of all the leaderboard scripts, you can see the loop using a variable that counts down, go ahead and edit it if you’d like.

1 Like

Ok thanks for telling me, I’m on my way home rn, hope it fixes it!