|
| 26 Jan 2014 07:26 PM |
Something to do with dialogs. When you say Hi can I have a Time Gear? (One of the Dialog choices) How can you make the dialog kill the person when they say that?
Sorry I can't explain properly. |
|
|
| Report Abuse |
|
|
Delones
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 1703 |
|
|
| 26 Jan 2014 08:00 PM |
function clicked(player, dialogChoice) print(player) print(dialogChoice) if dialogChoice.Name == "Kill" then script.Parent.DialogChoice.Kill.ResponseDialog = "Kill/"..player.Name.."" game.Workspace:FindFirstChild(player.Name).Humanoid.Health = 0 else print(dialogChoice) end end
script.Parent.DialogChoiceSelected:connect(clicked) |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2014 08:02 PM |
Does it work when you click a specific dialogue?
|
|
|
| Report Abuse |
|
|
Delones
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 1703 |
|
|
| 26 Jan 2014 08:07 PM |
| Yes, it depends on what the name is in the script. |
|
|
| Report Abuse |
|
|
| |
|