of     1   

LeikaZ
#183605989Sunday, February 14, 2016 7:20 PM GMT

Why doesn't it work? Output doesn't show any errors. local Players = game:GetService("Players") function onPlayerAdded(player) repeat wait() until player.Character player.Character.Head.BrickColor = BrickColor.new("Pastel brown") player.Character.Torso.BrickColor = BrickColor.new("Pastel brown") player.Character:FindFirstChild("Right Arm").BrickColor = BrickColor.new("Pastel brown") player.Character:FindFirstChild("Left Arm").BrickColor = BrickColor.new("Pastel brown") player.Character:FindFirstChild("Left Leg").BrickColor = BrickColor.new("Pastel brown") player.Character:FindFirstChild("Right Leg").BrickColor = BrickColor.new("Pastel brown") Players.PlayerAdded:connect(onPlayerAdded)
LeikaZ
#183606070Sunday, February 14, 2016 7:21 PM GMT

Is there any other way to change body colors?
cheesecake123456
#183606512Sunday, February 14, 2016 7:26 PM GMT

game.Players.PlayerAdded:connect(function(plyr) plyr.CharactedAdded:connect(function() for _, v in pairs(plyr.Character:GetChildren()) do if v:IsA('Part') then v.BrickColor = BrickColor.new('Pastel Brown') end end end) end)
LeikaZ
#183607504Sunday, February 14, 2016 7:38 PM GMT

@cheesecake CharactedAdded is not a valid member of Player
Protoduction
#183607740Sunday, February 14, 2016 7:41 PM GMT

What the heck is CharactedAdded? I'd go with game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) coroutine.resume(coroutine.create(function() wait(0.5) for i,v in pairs(char:GetChildren()) do if v:IsA("BasePart") then v.BrickColor = BrickColor.new("Pastel brown") end end end)) end) end) -____________________________-
LeikaZ
#183607814Sunday, February 14, 2016 7:43 PM GMT

lol didin't notice
LeikaZ
#183607918Sunday, February 14, 2016 7:44 PM GMT

I don't know why, but my body colors doesn't change when I use both scripts
Protoduction
#183607940Sunday, February 14, 2016 7:44 PM GMT

Also, cheesecake, you should read up on what functions return. You use plyr.Character in your for loop, while you could just do plyr.CharacterAdded:connect(function(char) for i,v in pairs(char:GetChildren()) -____________________________-
LeikaZ
#183607956Sunday, February 14, 2016 7:45 PM GMT

Forgot to mention: no errors. :/
Protoduction
#183608019Sunday, February 14, 2016 7:45 PM GMT

Are you using a serverside script? Is FilteringEnabled on? If your on a localscript are you running in a client? -____________________________-
LeikaZ
#183608225Sunday, February 14, 2016 7:48 PM GMT

Script - Not local (serverside) I guess FE - Off I use studio's "Play" mode
Protoduction
#183608342Sunday, February 14, 2016 7:49 PM GMT

Does it work in game? -____________________________-
LeikaZ
#183608505Sunday, February 14, 2016 7:51 PM GMT

so apparently it doesn't work in "Play Solo" Thanks.
Protoduction
#183608982Sunday, February 14, 2016 7:58 PM GMT

Fixed it. The Body Colors Instance was overwriting changes made the characters body color, as the changes were made before it was added to the character. This should work now. game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) local bodyColors = char:WaitForChild("Body Colors") bodyColors.Parent = nil for i,v in pairs(char:GetChildren()) do if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then v.BrickColor = BrickColor.new("Pastel brown") print(v.Name) end end end) end) That should work now. -____________________________- -____________________________-

    of     1