I dont know where and how in the script I should use it and how does it know which dialog choice is selected. I've tried using it in an if statement but it does not work. Btw i'm new to lua!
COMMUNITY QUESTION
How do use the Dialog.DialogChoiceSelected?
1 answer
Like all events, you connect a function to it like so:
Dialog.DialogChoiceSelected:Connect(
function(player, dialogChoice)
-- code to be executed
end
)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
That won't work if he is trying to teleport to another game. Also, your parentheses are a bit odd, as line 4 should be "end)" and not "end".
sorry im just a big noob! at lua would be nice if I could use another language that I know but I don't think I can. :(