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

How to change players skin tone when they join?[Solved]

Asked by 6 years ago
Edited 6 years ago

I have auto load characters turned off. So some of my other scripts can work. But I noticed that every character it just grey.

I tried using this script. Which is a script inside ServerScriptService but it didnt work.

Anyone know why if so how would I fix it?

Heres the code

game.Workspace.ChildAdded:connect(function(plr)
    local name = plr.Name
    local playerinplayers = game.Players:FindFirstChild(plr.Name)
        if playerinplayers ~= nil then
        playerinplayers.CanLoadCharacterAppearance = false
        plr.Head.face.Texture = "rbxassetid://28257733"
            local bodycolors = Instance.new("BodyColors", plr)
            bodycolors.RightArmColor = BrickColor.new("Pastel brown")
            bodycolors.LeftArmColor = BrickColor.new("Pastel brown")
            bodycolors.LeftLegColor = BrickColor.new("Dark stone grey")
            bodycolors.RightLegColor = BrickColor.new("Dark stone grey")
            bodycolors.TorsoColor = BrickColor.Random()
            bodycolors.HeadColor = BrickColor.new("Pastel brown")
    end
end)

Thank you for your time :)

Answer this question