I am trying to load a saved ObjectValue with my datastore. I am lost on how I’d get it to load back into the Inventory folder. (Player > Inventory)
This is the data loading here. I don’t know how to add the value to this.
local data
local success, err = pcall(function()
data = dataStore:GetAsync(player.UserId)
print(data)
end)
if success and data then
print(data)
dropcoins.Value = data[1]
winsStat.Value = data[2]
itemStat.Value = data[3]
else
print(player.Name.. " has no data! Default values have been assigned.")
end
end)
I know the value is saved in ‘data’ because it prints the value along with the other saved values.
I just need to know how I can load it. The names of the value will differ user to user because the values are created by the unboxing system I made. So I guess I just need to know how to find the objectValue and parent it to the inventory folder so it will be recognised.
Any questions or if I missed something let me know 
so lost right now