moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
|
| 15 Jul 2012 07:47 AM |
script.Parent.DialogChoiceSelected:connect(function(player, choice) if (choice == script.Parent.Choice1) then Term = game.Workspace["TerminalMain"] Term.BrickColor = "Bright green" end
It's supposed to turn a brick in workspace named TerminalMain Bright green after Choice1 is selected.
Output says it's all good, but the brick has not changed it's color. |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2012 07:49 AM |
script.Parent.DialogChoiceSelected:connect(function(player, choice) if (choice == script.Parent.Choice1) then Term = game.Workspace["TerminalMain"] Term.BrickColor = BrickColor.new(37) -- Might work end |
|
|
| Report Abuse |
|
|
aase69
|
  |
| Joined: 04 Apr 2008 |
| Total Posts: 3794 |
|
|
| 15 Jul 2012 07:50 AM |
You did 2 things wrong :)
1: BrickColor is not a string value. It's a BrickColor value. 2: You forgot an end
script.Parent.DialogChoiceSelected:connect(function(player, choice) if (choice == script.Parent.Choice1) then Term = game.Workspace["TerminalMain"] Term.BrickColor = BrickColor.new("Bright green") end end) |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2012 07:51 AM |
| Dafuq, I forgot other end. |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2012 07:52 AM |
Either of our script will work.
script.Parent.DialogChoiceSelected:connect(function(player, choice) if (choice == script.Parent.Choice1) then Term = game.Workspace["TerminalMain"] Term.BrickColor = BrickColor.new(37) end end)
Fixed |
|
|
| Report Abuse |
|
|