So I’m working on a game and everything’s been going fine until I tried to do some color stuff. I keep getting the concatenate Instance with string error which I don’t really understand what I did wrong lol. Either way, here’s a part of the code causing the said error.
for i, v in pairs(clonedplayer.Body:GetChildren()) do
if v.Name == "Head" then
local player2 = player.Name
local testcolorR = player2.ColorData[carowner.."ColorDataR"]
local testcolorG = player2.ColorData[carowner.."ColorDataG"]
local testcolorB = player2.ColorData[carowner.."ColorDataB"]
local testcolor = Color3.new(testcolorR.Value, testcolorG.Value, testcolorB.Value)
v.Color = testcolor
end
end