How to save a table with DataStore2?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I am trying to make a find the buttons game where when you click on each button you have it added to an index.

  1. What is the issue? Include screenshots / videos if possible!

The problem is I don’t know how to save a table of strings inside of DataStore2 and then check if the player doesn’t have a button in that table.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I looked at a bunch of posts online but they weren’t relevant to my problem and I couldn’t find a solution.

1

2

If you’re trying to get the index of the inserted value, do table.find(FoundButtonTable, tostring(v.Name))

Yes. I have done that. The thing is I have a table that I want to save but I don’t know how to save the table and then check once the player joins again if they have gotten a button or not.

you should be able to just set and get the table.

assume foundbuttondata = {} for all new players

FoundButtonTable = foundButtonData:Get()

foundButtonData:Set(FoundButtonTable)