Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

character hair colours aren't working how can it be fixed?

Asked by 4 years ago
Edited 4 years ago

i've been making a closed community spinoff of rogue lineage for some friends and the hair colours always just become grey can anyone help me with this

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:connect(function(character)
        wait(0.5)
        local Contents = character:GetChildren()
        for _, v in pairs(Contents) do
            if v:IsA("Accessory") then
                v:FindFirstChild("Handle").Mesh.TextureId = 1
                if player.PlayerRace == "Fischeran" then
                    v:FindFirstChild("Handle").Color = Color3.fromRGB(159, 243, 233)
                elseif player.PlayerRace == "Livus" then
                    v:FindFirstChild("Handle").Color = Color3.fromRGB(127, 243, 144)
                elseif player.PlayerRace == "Averan" then
                    v:FindFirstChild("Handle").Color = Color3.fromRGB(253, 234, 141)
                elseif player.PlayerRace == "Spirus" then
                    if player.SpirusVariant == 1 then
                        v:FindFirstChild("Handle").Color = Color3.fromRGB(255, 255, 255)
                    else
                        v:FindFirstChild("Handle").Color = Color3.fromRGB(0, 0, 0)
                    end
                end
            end
        end
    end)
end)    
0
Have you tried using Vertex Color? Farsalis 369 — 4y

Answer this question