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 dialog that teleports the player?

function check(Player, Choice)
	if Choice.Name == "Teleport" then 
		Player.Character.Torso.CFrame = CFrame.new(-29.06, 1.551, -25.72)
	end
end

script.Parent.DialogChoiceSelected:connect(check)

I don't know why it doesn't work at all.

1 answer

Try this, hope it helps

wait()
function check(Player, Choice)
	    if Choice.Name == "Teleport" then
	        Player.Character.HumanoidRootPart.CFrame = CFrame.new(-29.06, 1.551, -25.72)
    end
	end
	 
	script.Parent.DialogChoiceSelected:connect(check)
print ("Teleported")

1 comment

0

Doesn't work, I don't think roblox can detect dialog responses correctly

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