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