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

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -