of     1   

BenAboom
#185157567Friday, March 11, 2016 11:40 PM GMT

Hi, I have this code: skincolor1 = BrickColor.new("Olivine") skincolor2 = BrickColor.new("Medium green") skincolor3 = BrickColor.new("Mint") skincolor4 = BrickColor.new("Moss") skincolor = 4 -- amount of different colors to choose from numberpicked = math.random(1,skincolors) --this allows me to set "settings" menu @ the top zombie["Body Colors"].LeftArmColor = (skincolor+numberpicked) the last line adds skincolor and the number picked to attempt to return skincolor1-4's stringvalue, but it thinks I am adding the numbers of skincolor and numberpicked. How would I add the text of these two together so that the last line returns one of the brickcolors?
Fabunil
#185159924Saturday, March 12, 2016 12:21 AM GMT

Just use a table. skincolors = { BrickColor.new("Olivine"), BrickColor.new("Medium green"), BrickColor.new("Mint"), BrickColor.new("Moss") } numberpicked = math.random(1,#skincolors) zombie["Body Colors"].LeftArmColor = skincolors[numberpicked]

    of     1