maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 11 Oct 2013 10:40 PM |
I'm trying to get a BrickColorValue to change every time a brick changes color. There's no standard function I know of (i.e. OnClick, OnTouch) that does that (if there is, PLEASE let me know), so I tried making my own:
local button = script.Parent
function colorchange (button) button.BrickColor = Workspace.TempP.Value end
script.Parent.BrickColor:connect (colorchange)
Yo no se. I don't know. |
|
|
| Report Abuse |
|
|
Excellus
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 3939 |
|
|
| 11 Oct 2013 10:41 PM |
Here's a simple example:
function hi() print("Hi") script.Parent.Touched:connect(hi) |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2013 10:42 PM |
Please restate what you were trying to say? It didn't sound very clear to me.
~ Every time someone copies a game, a scripter dies. |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
| |
|
Excellus
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 3939 |
|
| |
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 11 Oct 2013 10:45 PM |
So, here's my exact idea: Make it so that once I paint a brick using the paintbrush tool, it changes some arbitrary BrickColorValue in Workspace. |
|
|
| Report Abuse |
|
|