Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how do i change players skin tone color on spawn?

I tried to figure this out my self but no luck, guess i still got more to learn. i need help setting every player that joins my game to have a skin tone of pastel brown. i only need the RightUpperarm, LeftUpperArm, and the Head set to this color. (I've set it so that every one that joins has R15 on and a block body as well.)

I this is the code i tried


local player = game.Players.LocalPlayer colour = Color3.fromRGB(255, 204, 153) game.Players.PlayerAdded:connect(function(player) player.CanLoadCharacterAppearance = false player.CharacterAdded:Connect(function(Character) Character.HeadColor3.BodyColors = colour Character.RightUpperArmColor3.BodyColors = colour Character.LeftUpperArmColor3.BodyColors = colour end) end)

4 comments

1

PlayerAdded event have a player instance for you, so you don't have to make another player variable.

0

I removed the variable but the script still doesn't work the way i need it too

0

I think you link the children wrong. It should be Character.BodyColors.--your choose here. And if your script is LocalScript, you should change it in to a normal Script.

0

It has to be in the starter player if not already.

1 answer

I fixed the script up a little bit a it ended up working. I put the script in serverscriptservice "the script"----> local players = game:GetService("Players") local colour = Color3.fromRGB(255, 204, 153)

players.PlayerAdded:connect(function(player) local character = player.CharacterAdded:wait() local BodyColors = character:WaitForChild("Body Colors") BodyColors.HeadColor3 = colour BodyColors.LeftArmColor3 = colour BodyColors.RightArmColor3 = colour BodyColors.TorsoColor3 = colour end)

This discussion is preserved as it was. New answers, comments, and votes are closed.