|
| 02 Aug 2013 06:57 AM |
| Is there anyway to save Color3 values in a table? As when i tried -and printed what was in the table) it just printed e.g 1,1,1 or 0.1972,1,1 or something similar. So is there anyway to store color3 values in a table as I am making light switch to red, then switch back to their original color-the original color is different for each brick.... ? |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 02 Aug 2013 07:06 AM |
local Tab = {} Tab[1] = Thing.Thing.BackgroundColor3
Thing.Thingy.Thing.Thing.BackgroundColor3 = Color3.new(Tab[1])
...?
|
|
|
| Report Abuse |
|
|
|
| 02 Aug 2013 07:37 AM |
| Apparently that doesn't work... |
|
|
| Report Abuse |
|
|
Java3D
|
  |
| Joined: 29 Jul 2012 |
| Total Posts: 1229 |
|
|
| 02 Aug 2013 07:58 AM |
local Tab = {} Tab[1] = Thing.Thing.BackgroundColor3
Thing.Thingy.Thing.Thing.BackgroundColor3 = Tab[1] -- No Color3.new, just Tab[1]
local colors = {Color3.new(1,0,0)} Frame.BackgroundColor3 = colors[1] -- Basically like saying Frame.BackgroundColor3 = Color3.new(1,0,0), since colors[1] is Color3.new(1,0,0) |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 02 Aug 2013 07:58 AM |
| colors = {Color3.new(1, 1, 1), Color3.new(0, 0, 0), Color3.new(0, 0.5, 0), Color3.new(0.5, 0, 0)} |
|
|
| Report Abuse |
|
|