for _,v in pairs(Character:GetChildren()) do
if v:IsA('BasePart') and v.Name ~= 'HumanoidRootPart' then
SkinColor = v.Color
print(SkinColor)
v.Material = Enum.Material.CrackedLava
v.Color = Color3.new(0, 0, 0)
end
end
i want to make the skin color the same exact tone as the body part color they originally had
The two options I would consider would either be making a table when they spawn in that stores all their body colors in, or utilizing the BodyColors instance.
Using a table:
local OriginalColors = {}
for _, limb in pairs(character:GetChildren()) do
if limb:IsA("BasePart") and limb.Name ~= "HumanoidRootPart" then
OriginalColors[limb.Name] = limb.Color
end
end
-- charLimb.Color = OriginalColors[charLimb.Name]