#leaderstats/currency help me fix pls :d
19 messages · Page 1 of 1 (latest)
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
Diamonds.Value = DiamondsValueData or 5000
getasync returns nil if data doesnt exist so u can just use an or to set the default
also in the savedata function youre are saving without the "-Diamonds", check that out
Well I don’t really know a lot about data saving, I followed a YouTube tutorial for the script
ðŸ˜
well that tutorial want your game being corrupted by a lot of setasync calls
Ouf 😯
so if u follow the things we said up u could get that working as you want
I wouldn’t know how to change the script tho ðŸ˜like I said I don’t know much about data saving
could u pass me the script?
Like copy and paste it?
Okayy I DM u the script :>