Color3 concatenate Instance with string error

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
1 Like

From the error it sounds like carowner is an instance so you would need to use carowner.Value…

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.