Hello. I have been trying to make a story game and I want it so that when you pick the option "infected", it pauses for a bit so you can read what the character says and then kicks you, displaying the ending. I have been trying to make it work, but it still malfunctions. When I click the dialog option, the script does not run. Please help! My code:
script.Parent.DialogChoiceSelected:connect(function(player, choice)
if (choice == script.Parent.infected) then
player:Kick("You got the 'Infected' Ending")
end
end)
(btw the script is in the dialog object)

3 comments
It didn't work. Nothing happened. No errors.
It didn't work. Nothing happened. No errors.
Could you add me on discord? I'm a little confused on why it didn't work. LoxiGoose#9553