of     2   
chevron_rightchevron_rightchevron_right

TechPerson32
#63697145Friday, March 02, 2012 12:50 PM GMT

I'm need help making a script that chages the color of a brick (in a way like a dance floor brick) from Reddish brown, Bright blue, Bright yellow, Earth green, and Bright red. However, I need it to be randomized.
Bannana97
#63699580Friday, March 02, 2012 3:31 PM GMT

Put a script with this inside of the brick: while true do wait() script.Parent.BrickColor = BrickColor.random() end
TechPerson32
#63703810Friday, March 02, 2012 6:47 PM GMT

I need the randomized colors Reddish brown, Bright blue, Bright yellow, Bright red, and Earth green only.
unholysoda
#63703948Friday, March 02, 2012 6:52 PM GMT

clolors = {"Reddish brown", "Bright Blue", "Bright yellow", "Bright red", "Earth green"} math.randomseed(tick()) while true do c = math.random(1, #colors) wait() script.Parent.BrickColor = c end
TechPerson32
#63705646Friday, March 02, 2012 7:54 PM GMT

Didn't work.............................. :\
unholysoda
#63705661Friday, March 02, 2012 7:55 PM GMT

Output?
TechPerson32
#63705791Friday, March 02, 2012 8:00 PM GMT

"Workspace.Part.Script:4: attempt to get length of global 'colors' (a nil value)"
unholysoda
#63705853Friday, March 02, 2012 8:02 PM GMT

colors= {"Reddish brown", "Bright Blue", "Bright yellow", "Bright red", "Earth green"} math.randomseed(tick()) while true do c = math.random(1, #) wait() script.Parent.BrickColor = c end Lol had a spelling error, try now.
unholysoda
#63705879Friday, March 02, 2012 8:03 PM GMT

colors= {"Reddish brown", "Bright Blue", "Bright yellow", "Bright red", "Earth green"} math.randomseed(tick()) while true do c = math.random(1, #colors) wait() script.Parent.BrickColor = c end Whoops made another error, use this one!
TechPerson32
#63705952Friday, March 02, 2012 8:05 PM GMT

Script: "colors = {"Reddish brown", "Bright Blue", "Bright yellow", "Bright red", "Earth green"} math.randomseed(tick()) while true do c = math.random(1, #colors) wait() script.Parent.BrickColor = c end" Output: "Workspace.Part.Script:6: bad argument #3 to '?' (BrickColor expected, got number)"
unholysoda
#63706092Friday, March 02, 2012 8:11 PM GMT

colors = {"Reddish brown", "Bright Blue", "Bright yellow", "Bright red", "Earth green"} math.randomseed(tick()) while true do c = math.random(1, #colors) wait() script.Parent.BrickColor = BrickColor.new(c) end
TechPerson32
#63708023Friday, March 02, 2012 8:58 PM GMT

This script works, but it only switches to the colors "Brick yellow", a couple different forms of grey, and maybe some others.
unholysoda
#63714935Friday, March 02, 2012 11:09 PM GMT

ok, so what other colors do you want? Just add them to the tanle with all the other colors.
KnightmareXD
#63715203Friday, March 02, 2012 11:14 PM GMT

Is it not "Bright blue"? † KMXD †
unholysoda
#63716201Friday, March 02, 2012 11:34 PM GMT

@knightmarexd Ahh right, mished that, here use this new script, and see if it does all the colors. colors = {"Reddish brown", "Bright blue", "Bright yellow", "Bright red", "Earth green"} math.randomseed(tick()) while true do c = math.random(1, #colors) wait() script.Parent.BrickColor = BrickColor.new(c) end
TechPerson32
#63724667Saturday, March 03, 2012 1:58 AM GMT

That's what I already had.. Doesn't work...
unholysoda
#63727249Saturday, March 03, 2012 2:33 AM GMT

I tried using this script and it worked, all the colors. colors = {"Reddish brown", "Bright blue", "Bright yellow", "Bright red", "Earth green"} math.randomseed(tick()) while true do c = math.random(1, #colors) wait() script.Parent.BrickColor = BrickColor.new(c) end
TechPerson32
#63728911Saturday, March 03, 2012 2:58 AM GMT

Just tried that one. The script changes the colors, but not the ones I want.
unholysoda
#63728945Saturday, March 03, 2012 2:59 AM GMT

ok so, what colors do you want?
TechPerson32
#63728989Saturday, March 03, 2012 2:59 AM GMT

Reddish brown, Bright blue, Bright yellow, Earth green, and Bright red.
unholysoda
#63729047Saturday, March 03, 2012 3:00 AM GMT

Those are the colors that it currently would be doing.
TechPerson32
#63729136Saturday, March 03, 2012 3:02 AM GMT

I don't know what the problem is... The script works, but it does not change to the colors that are specified. It only changes to Brick yellow, and some others.
DonnyTheDemented
#63729654Saturday, March 03, 2012 3:10 AM GMT

colors = {"Reddish brown", "Bright blue", "Bright yellow", "Bright red", "Earth green"} math.randomseed(tick()) while true do c = colors[math.random(1, #colors)] wait(1) script.Parent.BrickColor = BrickColor.new(c) end That does exactly what you want.
TechPerson32
#63729838Saturday, March 03, 2012 3:12 AM GMT

THNAK YOU SO MUCH!!! That one worked!!
unholysoda
#63730251Saturday, March 03, 2012 3:18 AM GMT

No Problem.

    of     2   
chevron_rightchevron_rightchevron_right