Trouble changing skin color

Changing Skin color and torso color. When I change my torso color, it works perfectly fine. When I change my skin color it doesn’t work. The skin color script it almost the same as the torso color script.
This is the server script

local ReplicatedStorage = game.ReplicatedStorage
local ChangeColor = ReplicatedStorage:FindFirstChild("ChangeColor")

ChangeColor.OnServerInvoke = function(player,color)
	print(color)
	player.Character.UpperTorso.BrickColor = BrickColor.new(color)
	workspace.CustomCharacter[" "].UpperTorso.BrickColor = BrickColor.new(color)
end
local ChangeSkinColor = ReplicatedStorage:FindFirstChild("ChangeSkinColor")
ChangeSkinColor.OnServerInvoke = function(player,color)
	print(color)
	player.Character.RightUpperArm.BrickColor = BrickColor.new(color)
	workspace.CustomCharacter[" "].RightUpperArm.BrickColor = BrickColor.new(color)
	player.Character.LeftUpperArm.BrickColor = BrickColor.new(color)
	workspace.CustomCharacter[" "].LeftUpperArm.BrickColor = BrickColor.new(color)
	player.Character.Head.BrickColor = BrickColor.new(color)
	workspace.CustomCharacter[" "].Head.BrickColor = BrickColor.new(color)
end

this is the local script inside the button (for skin color)

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ChangeColor = ReplicatedStorage:WaitForChild("ChangeColor")
local name = script.Parent.Name
script.Parent.MouseButton1Click:Connect(function()
	ChangeColor:InvokeServer(name)
end)

I’ve tried to fire the same event for both the torso and the skin color but it gets confused and when i select the skin color and change the color it changes the torso color as one of the skin colors. Also, one big thing to note is that the buttons names are the colors names, and yes, I did check for spelling.

One thing I’m noticing, why are you using a RemoteFunction? These are typically used for when you need to receive something back from the function invoked, and I’m not seeing your function return anything. I’m not sure if this would cause a performance issue at some point, as I believe they yield until they receive a response.

1 Like

Strange Question, but is this a preexisting humanoid? If so it may have an object called “BodyColors” in it: image

Here is an example of Body Colors overriding what the brick color is set to:
image

You’ll notice the hand is set to be red, but the body color’s ensures that it isn’t.

Something else I noticed is when you delete body colors off a character the color still doesn’t take effect. I’m wondering if it is because the part is a mesh part.

Hope this helps.

3 Likes

Yes, preexisitng humanoid and an actual character. Will try this out as well.