local allowed = {
BrickColor.new("Reddish brown"),
BrickColor.new("Dirt brown"),
BrickColor.new("Dark taupe"),
BrickColor.new("Brown"),
BrickColor.new("Linen"),
BrickColor.new("Nougat"),
BrickColor.new("Light orange"),
}
local NewColor = BrickColor.new("Light orange")
function changeColors(character)
character["Body Colors"].HeadColor = NewColor
character["Body Colors"].RightArmColor = NewColor
character["Body Colors"].RightLegColor = NewColor
character["Body Colors"].LeftArmColor = NewColor
character["Body Colors"].LeftLegColor = NewColor
character["Body Colors"].TorsoColor = NewColor
print("skin changed")
end
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
for i,v in pairs(allowed) do
if not character.Head.BrickColor == v then
changeColors(character)
elseif not character["Right Arm"].BrickColor == v then
changeColors(character)
elseif not character["Right Leg"].BrickColor == v then
changeColors(character)
elseif not character["Left Arm"].BrickColor == v then
changeColors(character)
elseif not character["Left Leg"].BrickColor == v then
changeColors(character)
elseif not character.Torso.BrickColor == v then
changeColors(character)
else
print("player has natural skin color")
end
end
end)
end)
I’m trying to make a script that checks the skin colour of a player and if it’s not realistic then it will change it to a realistic one, however its not working. The output is printing “player has natural skin” even though they don’t. Can anyone help?