I am trying to make my avatar's body parts change into random colors, but then it keeps saying, "x is not a valid member of BodyColors," but c has information in it. I used this script:
local c = {"HeadColor", "LeftArmColor", "LeftLegColor", "RightArmColor", "RightLegColor", "TorsoColor"} local x = c[math.random(1,6)]
function a() local snak = game.Workspace:WaitForChild("snaks308070") snak:WaitForChild("Body Colors", 3).x = BrickColor.Random() end
while true do wait() a() end
Any help?

1 comment
please specify what is "Body Colors" and if the "c" mentioned in the question is the array in the script, if not, specify what "c" is as well