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

Changing a Players BodyColors?

Asked by 11 years ago

Why doesn't think work, I'm testing it in my actual place because it won't work otherwise...

01local colors = {"Bright red","Bright violet","Bright green","Bright orange","Black","Brown"}
02local plr = game.Players.LocalPlayer
03local char = plr.Character
04 
05plrcolor = colors[math.random(#colors)]
06local color = Instance.new("StringValue", plr)
07color.Name = plrcolor
08color.Value = plrcolor
09bcolors = char.BodyColors
10 
11if bcolors then
12    bcolors.TorsoColor = BrickColor.new(plrcolor)
13end

Answer this question