I made a music, playing script, but it does not concatenate properly? The error is attempt to concatenate string with userdata.
local AudioList = {
["ThereItIs"] = 279498364,
["FrostWalts"] = 2037145146,
["LocalForecast"] = 258852901,
["Decisions"] = 337055476,
["Run"] = 1470017017,
["Preposition"] = 257383979,
}
local ContentProvider = game:GetService("ContentProvider")
for name, AudioId in pairs(AudioList) do
local AudioInstance = Instance.new("Sound")
AudioInstance.SoundId = "rbxassetid://" .. AudioId -- error is here!!
AudioInstance.Volume = 0.1
AudioInstance.Name = name
AudioInstance.Parent = game.Workspace
table.insert(AudioList, AudioInstance)
end

5 comments
Try removing the space between .. and AudioId
Use "," or "+" instead of ".."
I've dealt with a lot of these errors in my own games. I don't know the specific problem here (I'll try to look more into it), but basically what the problem was with mine was that the variable it's trying to use is a userdata value, not a string. It may look like a string, but it's actually not. The way I fixed this was by changing the value to the value's name, so it'll become a string value.
Ah right, sorry, I usually spend my free time on JS and Python.