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

Bodycolour bugs, can someone help me with it?

Asked by 10 years ago

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)

1 answer

Log in to vote
0
Answered by
HexC3D 830 Moderation Voter
10 years ago

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.

0
Actually it is, 23 is Bright Blue BearKranz 41 — 10y
Ad

Answer this question