ozza
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 726 |
|
|
| 05 May 2012 10:18 PM |
script.Parent.DialogChoiceSelected:connect(function(player, choice) if choice.Name == "DialogChoice" and player.AppleCollected.Value == false then
player.AppleCollected.Value = true script.Parent.DialogChoice.ResponseDialog = "Here Ya Go!" else script.Parent.DialogChoice.ResponseDialog = "You already have an apple." end
end end)
The values work fine, but it doesn't change the Response. |
|
|
| Report Abuse |
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
|
| 05 May 2012 10:47 PM |
Try:
script.Parent.DialogChoiceSelected:connect(function(player, choice) if choice.Name == "DialogChoice" and player.AppleCollected.Value == false then
player.AppleCollected.Value = true choice.ResponseDialog = "Here Ya Go!" else choice.ResponseDialog = "You already have an apple." end
end end)
If this does not work, add prints() throughout the script, and see what runs and what doesn't. |
|
|
| Report Abuse |
|