I know this is not a profilestore problem
I want to have a profile for a save file, so the player can have multiple save files, but i keep getting these errors, i’ve looked elsewhere and usually, the error message states the value that cannot be stored, whereas in my case it doesnt.
I’m 99% sure that the problem is my template
Template
local SlotTemplate = {}
SlotTemplate.ID = false
SlotTemplate.Appearance = {
["Eyes"] = {
["Left"] = {
["ID"] = 0,
["Colour"] = Color3.fromRGB(65, 40, 30)
},
["Right"] = {
["ID"] = 0,
["Colour"] = Color3.fromRGB(65, 40, 30)
}
},
["Hairs"] = {
["Hair 1"] = {
["ID"] = 63690008,
["Visible"] = false,
["Colour"] = Color3.fromRGB(255, 255, 255)
},
["Hair 2"] = {
["ID"] = 63690008,
["Visible"] = false,
["Colour"] = Color3.fromRGB(255, 255, 255)
},
["Hair 3"] = {
["ID"] = 63690008,
["Visible"] = false,
["Colour"] = Color3.fromRGB(255, 255, 255)
},
["Hair 4"] = {
["ID"] = 63690008,
["Visible"] = false,
["Colour"] = Color3.fromRGB(255, 255, 255)
},
["Hair 5"] = {
["ID"] = 63690008,
["Visible"] = false,
["Colour"] = Color3.fromRGB(255, 255, 255)
}
}
}
SlotTemplate.FirstName = "Abel"
SlotTemplate.LastName = "Juno"
SlotTemplate.Inventory = {
["QuickAccess"] = {
["Weapons"] = {
[1] = "BaseFists",
[2] = nil,
[3] = nil,
[4] = nil,
[5] = nil
},
["Specials"] = {
[1] = nil,
[2] = nil,
[3] = nil,
[4] = nil,
[5] = nil
},
["Items"] = {
[1] = nil,
[2] = nil,
[3] = nil,
[4] = nil,
[5] = nil
}
},
["Items"] = {}
}
SlotTemplate.Stats = {
["MaxHealth"] = 100,
["MaxEnergy"] = 100,
["MaxStamina"] = 100
}
return SlotTemplate
Error messages
``lua
DataStoreService: CantStoreValue: Cannot store in data store. Data stores can only accept valid UTF-8 characters. API: UpdateAsync, Data Store: Test_Slots - Studio
[ProfileStore]: DataStore API error (STORE:Test_Slots; KEY:Player_2996895982_Slot1) - 104: Cannot store in data store. Data stores can only accept valid UTF-8 characters.