Hello. So practically i want to save a table to the player of things that he has made (like business products) and then every time he loads in he gets the string values.
And if you can, can you also make a string value with other string values in it which are saved (using a table dictionary)
You can save a dictionary to the DataStore, as long as it only contains strings, booleans, and numbers. So, you can store each item type as the key, and unpack it from there.
local data
local success, data = pcall(DataStore.GetAsync, DataStore, key)
--example data conaining a player's rank and title
--[[
data = {
["Rank"] = "Rank here",
["Title"] = "Title here"
}
]]
if success then
--create the values here
--then:
rank.Value = data.Rank
title.Value = data.Title
end
This will not account for new players having nil data.