andre09
|
  |
| Joined: 09 Aug 2008 |
| Total Posts: 85 |
|
|
| 21 Jan 2012 04:49 PM |
Brick = script.Parent door = script.Parent.Parent.Door function onClicked() Brick.BrickColor = BrickColor.new("Bright green") door.CanCollide = false wait(2) Brick.BrickColor = BrickColor.new = ("Bright red") door.CanCollide = true end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
With this script, i am trying to make the brick named "Brick" turn a certain color while making the brick named "Door" transperany? What am i doing wrong? |
|
|
| Report Abuse |
|
|
andre09
|
  |
| Joined: 09 Aug 2008 |
| Total Posts: 85 |
|
|
| 21 Jan 2012 04:50 PM |
| Sorry There is an equal sign when stating the brick color. |
|
|
| Report Abuse |
|
|
wow75
|
  |
| Joined: 16 Jan 2009 |
| Total Posts: 951 |
|
|
| 21 Jan 2012 05:04 PM |
| I dont think you need an "end" |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2012 05:06 PM |
@Wow Why would you not need one?
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2012 05:07 PM |
Brick = script.Parent door = script.Parent.Parent.Door
function onClicked() Brick.BrickColor = BrickColor.new("Bright green") door.CanCollide = false wait(2) Brick.BrickColor = BrickColor.new("Bright red") door.CanCollide = true end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
? † KMXD † |
|
|
| Report Abuse |
|
|
wow75
|
  |
| Joined: 16 Jan 2009 |
| Total Posts: 951 |
|
|
| 21 Jan 2012 05:08 PM |
| Epic fail, i didnt see the function xD. |
|
|
| Report Abuse |
|
|