#leaderstats/currency help me fix pls :d

19 messages · Page 1 of 1 (latest)

autumn forge
#

first

#

connecting an "SetAsync" to a changed event can result in a API errors due to the exhausted calls

#

datastore has limit of calls of 60 + 10 x number of players

#

so u would save maybe every 30 seconds / 1 min or just save when the player leaves

glad ocean
#
Diamonds.Value = DiamondsValueData or 5000
#

getasync returns nil if data doesnt exist so u can just use an or to set the default

autumn forge
#

also in the savedata function youre are saving without the "-Diamonds", check that out

wise coral
#

😭

autumn forge
#

well that tutorial want your game being corrupted by a lot of setasync calls

wise coral
#

Ouf 😯

autumn forge
#

so if u follow the things we said up u could get that working as you want

wise coral
#

I wouldn’t know how to change the script tho 😭like I said I don’t know much about data saving

autumn forge
#

could u pass me the script?

wise coral
#

Like copy and paste it?

autumn forge
#

yeah

#

and when i finish i explain you

#

if u want to lol

wise coral
#

Okayy I DM u the script :>