This script does not work.
01 | while true do |
02 | local v = script.Parent |
03 | wait() |
04 | local a = v.R 1. BackgroundColor 3 |
05 | a = Color 3. random() |
06 | wait() |
07 | v.R 2. BackgroundColor 3 = a |
08 | v.R 3. BackgroundColor 3 = a |
09 | v.R 4. BackgroundColor 3 = a |
10 | end |
You can't do Color3.Random() instead you can do:
01 | while true do |
02 | local v = script.Parent |
03 | local num = math.random( 0 , 255 ) |
04 | local num 2 = math.random( 0 , 255 ) |
05 | local num 3 = math.random( 0 , 255 ) |
06 | wait() |
07 | local a = v.R 1 |
08 | a.BackgroundColor 3 = Color 3. new(num/ 255 ,num 2 / 255 ,num 3 / 255 ) |
09 | v.R 2. BackgroundColor 3 = a.BackgroundColor 3 |
10 | v.R 3. BackgroundColor 3 = a.BackgroundColor 3 |
11 | v.R 4. BackgroundColor 3 = a.BackgroundColor 3 |
12 | wait() |
13 | end |
14 | -- You can't do .Random like BrickColor... BrickColor has an index and it select random colors from that. The proper way to do 'random' with Color3 is to use math.random... But remember if you do in fact do that. Use 1 to 0 or #/255 because they do it by a 'percent' thing as to guess. I could give a cleaner example but yeah, good luck! |