lua - How do I make an event in ROBLOX when a specific dialog? -
say want make brick dissapear when dialog choice selected.
i make npc, add dialog tree. set when player talks npc, have choice "can make brick dissapear?". npc replies "there go!"
what need make when npc replies, brick dissapears?
on roblox?
there's event in dialog object.
dialogchoiceselected(instance player, instance dialogchoice)
this how can use making brick "disappear" long have defined variables "dialog" , "brick"
dialog.dialogchoiceselected:connect(function(player, choice) if choice.name == "brickchanger" brick.transparency = 1 end end) the argument "player" player selected choice, "choice" argument refers dialogchoice userdata chosen.
Comments
Post a Comment