Changing BodyParts/MeshParts Color

Hello everyone.

I have a doubt, because I am not able to change the color of the hands of the characters to a specific color (simulating latex gloves). I don’t use the Character[“Body Colors”] method because I only need to change the color of the hands.

This is a function that I made for testing.

local OC = nil – OriginalColor (external variable)
local function PonerGuantes(player,flag)
local character = player.Character
if flag then
character.LeftHand.BrickColor = BrickColor.new(“Lapis”)
character.RightHand.BrickColor = BrickColor.new(“Lapis”)
else
character.LeftHand.BrickColor = BrickColor.new(tostring(OC))
character.RightHand.BrickColor = BrickColor.new(tostring(OC))
end
end

You could use a loop to check the descendants of the workspace and check if v’s name is “UpperRightArm” or “UpperLeftArm” and then color v. I tested it with using “RightHand” and “LeftHand” and it doesnt seem to work.

Yes, it works. But, doesn’t change the Hands color only.

DONE!

Blockquote
local function PonerGuantes(player,flag)
local character = player.Character
if flag then
– Cambiar el color a cyan
character:FindFirstChild(“LeftHand”).BrickColor = BrickColor.new(“Cyan”)
character:FindFirstChild(“RightHand”).BrickColor = BrickColor.new(“Cyan”)
– Clon de manos
local handL = character:FindFirstChild(“LeftHand”):Clone()
local handR = character:FindFirstChild(“RightHand”):Clone()
handL:SetAttribute(“clone”,true)
handR:SetAttribute(“clone”,true)
handL.Transparency = 1
handR.Transparency = 1
handL.Parent = character
handR.Parent = character
else
– Destruir manos clonadas
for i,v in pairs(character:GetChildren()) do
if v:GetAttribute(“clone”) ~= nil then v:Destroy() end
end
character:FindFirstChild(“LeftHand”).BrickColor = BrickColor.new(tostring(OC))
character:FindFirstChild(“RightHand”).BrickColor = BrickColor.new(tostring(OC))
end
end