Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I make a dialogue option teleport a player? [Solved]

Literally no clue as to how I can do this, any help?

2 answers

You must insert a script into the Dialogue object, not the Dialogue Option object, but the Dialogue object. It will read the dialogue choice's click and execute code.

script.Parent.DialogChoiceSelected:connect(function(player, choice)
	if (choice == script.Parent.Choice1) then --Change 'Choice1' to the name of the choice that teleports the player
		player.Character:MoveTo(Vector3.new(0,0,0)) -- Change the (0,0,0) to the correct position
	end
end)

3 comments

0

Cool, thanks very much.

0

Be sure to up-vote people who answer your questions correctly!

0

I would if I could, but I can't because people downvoted my question so that my reputation is -1.....

This discussion is preserved as it was. New answers, comments, and votes are closed.