How could i save a string value to DS2

Hello Developers,

I was wondering how could i save a string value to data stores 2. The normal data stores 2 saving method is DataStoresName:Increment(Number) but it does not work because that is adding and you cant add strings together as math.

So if i could have some advice on how to do this or a video or something that would be great thanks!

1 Like

Use the :Set() method, basic example:

local stringStore = DataStore2("someString", player)

--Set our data to a string
stringStore:Set("hey look! i'm a  string!")

This and much much more can be found on DataStore2’s API, I would highly recommend going through here if you’re having some trouble in the future.

1 Like