Please help with data store help Array issue
Output [ table: 00000281E3571EB0] [103: Array is not allowed in data stores.] [Line 23]
local data_saveA=game:GetService("DataStoreService")
local data_save=data_saveA:GetOrderedDataStore("Potiontylerfire")
local Player=script.Parent.Parent.Parent
local storage=game.ServerStorage
local datasavepotion=data_save:GetAsync(Player.Name)
--checking if save
if datasavepotion then
else
local clone=storage.Potions:FindFirstChild("StarterPotion"):Clone()
clone.Parent=Player.Backpack
local savetable = {
"StarterPotion"
}
print(savetable)
data_save:SetAsync(Player.Name,savetable)
end

3 comments
That's outdated. I save arrays to datastores all the time. The reason why this doesn't work is because you cant saves an array to an ORDERED datastore. If you want to save an array, save it to an ordinary data store.
I changed it but now it is giving "103: string is not allowed in data stores."
Yea, I was wrong. You can save tables in datastores, just not userdata. My bad. You can only save numbers in Ordered Datastores