So i'm trying to figure out how to teleport a player when they select a specific choice for the dialog. What's wrong with this script, and how do I fix this? (I also put the script under dialog for the record).
Dialog=script.Parent
Dialog.DialogChoiceSelected:connect(function(Choice, Player)
if Choice == Dialog.DialogChoice1.DialogChoice2.DialogChoice3 then
Player.Character:MoveTo(1,1,1)
end
end)
Another thing to add is that two scripts pop up and then remove themselves when i'm using this script.

6 comments
^ It didn't work. I wasn't teleported to 1,1,1 and all I got were two scripts.
Did you get an error message?
Nope. Just two scripts with one named TimeoutScript and one named ReenableDialogScript
You're using MoveTo wrong. You need to give the MoveTo method a Vector3 argument, but you're giving it 3 number arguments.
Ah, foolish me overlooked that. Will edit.
And lastly, the event parameters are switched.