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!
Like all events, you connect a function to it like so:
Dialog.DialogChoiceSelected:Connect( function(player, dialogChoice) -- code to be executed end )