Oh sorry but can you add print(data.key) after for place,data in ipairs(currentPage) do
It still prints out Player_-1. Iguess I have to reset the datastor. But how?
Replace your datastorekey like game:GetService(“DataStoreService”):GetOrderedDataStore()
So I replaced the GetOrderedStore(“AmountStore”) [it was just “amount”] And now it works like a charm! Thank you for your help and sorry for making it this complicated.
Can I ask you to make a small summary about it? So I can pin it as sulution.
Replace local index = "Player_"..player.UserId
to local index = player.UserId
And Replace your Ordered Data Store Key to reset the data.
And you have the update in your script!
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.