Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make a dialog that teleports the player?

Asked by 5 years ago
1function check(Player, Choice)
2    if Choice.Name == "Teleport" then
3        Player.Character.Torso.CFrame = CFrame.new(-29.06, 1.551, -25.72)
4    end
5end
6 
7script.Parent.DialogChoiceSelected:connect(check)

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

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Try this, hope it helps

1wait()
2function check(Player, Choice)
3        if Choice.Name == "Teleport" then
4            Player.Character.HumanoidRootPart.CFrame = CFrame.new(-29.06, 1.551, -25.72)
5    end
6    end
7 
8    script.Parent.DialogChoiceSelected:connect(check)
9print ("Teleported")
0
Doesn't work, I don't think roblox can detect dialog responses correctly moo90100 0 — 5y
Ad

Answer this question