I am working on saving players data and when I run I get the error, "invalid argument #3 (string expected, got table)"
Why could this be?
The error is on line 5
local backpackKey = "user_" .. player.userId .. "_backpack"
local backpack = dataStore:GetAsync(backpackKey)
local bpObject = Instance.new("StringValue")
bpObject.Name = "BackpackItem"
bpObject.Value = backpack
bpObject.Parent = player

3 comments
What is backpack equal to.....?
if bpObject.value is coming up as an error then it means that whatever your "backpack" variable is is a table instead of a string
Look at the variables.