I have a script that changes bodycolour when you click it, but when a new player enters server the colour resets, can anyone help me fix this?
color1 = 23 function color() script.Parent.Parent.Parent.Parent.Character["Head"].BrickColor = BrickColor.new(color1) script.Parent.Parent.Parent.Parent.Character["Torso"].BrickColor = BrickColor.new(color1) script.Parent.Parent.Parent.Parent.Character["Left Arm"].BrickColor = BrickColor.new(color1) script.Parent.Parent.Parent.Parent.Character["Right Arm"].BrickColor = BrickColor.new(color1) script.Parent.Parent.Parent.Parent.Character["Left Leg"].BrickColor = BrickColor.new(color1) script.Parent.Parent.Parent.Parent.Character["Right Leg"].BrickColor = BrickColor.new(color1) end
script.Parent.MouseButton1Down:connect(color)
There is a body color object inside a player and it will change the players body color if you can change the property with a script. Remember there is a body color feature inside the character also color = 23 is not a color.