thatkane
|
  |
| Joined: 25 Feb 2011 |
| Total Posts: 17078 |
|
|
| 03 Sep 2011 11:41 PM |
local A local B local C local NewColor = "RNew Yeller" local Mode = 1
A = Instance.new("ClickDetector") A.Parent = script.Parent A.Name = "Clicker" B = Instance.new("BrickColorValue") B.Parent = script.Parent B.Name = "Orig" B.Value = script.Parent.BrickColor C = Instance.new("BrickColorValue") C.Parent = script.Parent C.Name = "NewCol" C.Value = BrickColor.new(NewColor)
function click() if Mode == 1 then Mode = 2 script.Parent.BrickColor = C.Value elseif Mode == 2 then Mode = 1 script.Parent.BrickColor = B.Value end end
A.MouseClick:connect(click) |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2011 11:42 PM |
Yes,
local A; local B; local C; |
|
|
| Report Abuse |
|
|
thatkane
|
  |
| Joined: 25 Feb 2011 |
| Total Posts: 17078 |
|
|
| 03 Sep 2011 11:42 PM |
| I made it for a lightbulb and i cant figure out whats wrong with it. |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2011 11:44 PM |
local NewColor = "RNew Yeller" local Mode = 1
local A = Instance.new("ClickDetector") A.Parent = script.Parent A.Name = "Clicker" local B = Instance.new("BrickColorValue") B.Parent = script.Parent B.Name = "Orig" B.Value = script.Parent.BrickColor local C = Instance.new("BrickColorValue") C.Parent = script.Parent C.Name = "NewCol" C.Value = BrickColor.new(NewColor)
function click() if Mode == 1 then Mode = 2 script.Parent.BrickColor = C.Value elseif Mode == 2 then Mode = 1 script.Parent.BrickColor = B.Value end end
A.MouseClick:connect(click) |
|
|
| Report Abuse |
|
|
thatkane
|
  |
| Joined: 25 Feb 2011 |
| Total Posts: 17078 |
|
| |
|