Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

(SOLVED)Using string value stored in table to change BrickColor not working?

So I have an avatar editor and I need to change the colour of the dummy's skin. Here's the line that does that.

v.BrickColor = BrickColor.new(colours[numeral])

I also put a print after this, printing the colour. When it changes, it will always print the same thing after clicking it. I also printed the number, and it is changing. Here's a small bit of the output.

Dirt brown (x15) 2 Dirt brown (x15) 3 Dirt brown (x15) 1 Dirt brown (x15) 2 Dirt brown (x15) 3 Dirt brown (x15) 1 Dirt brown (x15)

1 comment

0

Yeah, it didn't make the output a list.. :(

1 answer

Nevermind, at the beginning of the function, I changed the numeral value to the number of children in the table lol

This discussion is preserved as it was. New answers, comments, and votes are closed.