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

how do i change players skin tone color on spawn?

Asked by 4 years ago
Edited 4 years ago

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)

1
PlayerAdded event have a player instance for you, so you don't have to make another player variable. Block_manvn 395 — 4y
0
I removed the variable but the script still doesn't work the way i need it too dam1772 5 — 4y
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. Block_manvn 395 — 4y
0
It has to be in the starter player if not already. ifreakinlostmyacount 52 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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)

Ad

Answer this question