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.