How to make this code turn the character's color to a normal skin color

So I’ve got this bit of code curtesy of some lovely people on the devforum and it works great, but there’s one problem. It only turns the player’s skin to white, and even when I change the 1 value to a skin color, it doesn’t seem to work. This is for a vampire game that’s what the white skin is for.

Tool = script.Parent

local vCharacter = Tool.Parent

	local childs = vCharacter:GetChildren()

	local colors = {}


	for i=1,#childs do
		if (childs[i].className == "Part" or childs[i].className == "MeshPart") then
			colors[i] = childs[i].BrickColor
			childs[i].BrickColor = BrickColor.new(1)
		end
	end

I’d take a look at the BrickColor section of the DevHub so you can check all the IDs for the different BrickColor codes.

just create a bodycolor instead

You’re doing it wrong. If your character has a “BodyColor” object in it, it will override the default color on your body parts. You should use BodyColor instead of having to do a loop to retrieve your character’s body parts, then setting their color to the matching color.