Whenever I try to save it says DataStoreService: CantStoreValue: Cannot store Dictionary in data store. Data stores can only accept valid UTF-8 characters. API: SetAsync, Data Store: Could anyone help me with this? Thanks
local function setUpUserData()
local userData = {
Others = {
["EyeColor"] = RandomEyeColor;
["Undead"] = false;
["Vamp"] = false;
["Col"] = 0;
["HairColor"] = Colors;
["Lives"] = 2;
["Combat"] = false;
};
Strings = {
["Weapon"] = "Katana";
["FirstName"] = "None";
["LastName"] = "None";
["Inventory"] = "";
["Face"] = "Human1";
["Skills"] = "";
["Outfit"] = RandomOutfit;
};
}
return userData
end
local userData = DataStore2(key,Player):Get(setUpUserData())
Outfit:GetPropertyChangedSignal("Value"):Connect(function()
userData["Strings"]["Outfit"] = Outfit.Value
DataStore2(key,Player):Set(userData)
end) --how i save it