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?
|