thombot2
|
  |
| Joined: 15 Oct 2008 |
| Total Posts: 104 |
|
|
| 16 Jul 2013 02:21 PM |
| Say I have a hopperbin tool selected. I click a brick and the color of it is blue. Is it possible to make the tool do something depending on the color of the brick it clicks? |
|
|
| Report Abuse |
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 16 Jul 2013 02:26 PM |
Yeah. Use the Target property of the mouse. Check to see if it exists, then you know for sure that it is the BasePart that you clicked on. Compare the BrickColor property to a BrickColor value, such as BrickColor.new("Bright red") or something.
http://wiki.roblox.com/index.php/Target_(Property)/mouse |
|
|
| Report Abuse |
|
thombot2
|
  |
| Joined: 15 Oct 2008 |
| Total Posts: 104 |
|
| |