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 10 years ago

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

local colors = {"Bright red","Bright violet","Bright green","Bright orange","Black","Brown"}
local plr = game.Players.LocalPlayer
local char = plr.Character

plrcolor = colors[math.random(#colors)]
local color = Instance.new("StringValue", plr)
color.Name = plrcolor
color.Value = plrcolor
bcolors = char.BodyColors

if bcolors then
    bcolors.TorsoColor = BrickColor.new(plrcolor)
end

Answer this question