|
| 21 Mar 2014 04:07 PM |
The script is supposed to change the color of the part and change the boolvalue of toggle, but it won't do either! (Sorry if I spelt that wrong.)
local color = script.Parent.BrickColor local cd = script.ClickDetector local onoff = script.Parent.Toggle.Value
function Clicked(Player) if color == (1) then color = (26) onoff = true else color = (1) onoff = false end end
Thanks!
"Being here will ruin everything we've already done." |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 21 Mar 2014 04:09 PM |
cd.MouseClick:connect(Clicked) on final line. |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2014 04:15 PM |
Wow, it was that easy to fix. _-_ Thanks!
"Being here will ruin everything we've already done." |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2014 04:19 PM |
local color = script.Parent.BrickColor local cd = script.ClickDetector local onoff = script.Parent.Toggle.Value
function Clicked(Player) if color == (1) then color = (26) onoff = true else color = (1) onoff = false end end
cd.MouseClick:connect(Clicked)
Still does not do anything. :P
"Being here will ruin everything we've already done." |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2014 04:45 PM |
Bump
"Being here will ruin everything we've already done." |
|
|
| Report Abuse |
|
|
| |
|
| |
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 21 Mar 2014 09:04 PM |
local color = script.Parent.BrickColor local cd = script.ClickDetector local onoff = script.Parent.Toggle.Value
function Clicked(Player) if color == (1) then color = (26) onoff = true else color = (1) onoff = false end end
cd.MouseClick:connect(Clicked)
why're you using numbers for the brick color? use a string. -=Robo=- |
|
|
| Report Abuse |
|
|