1 | function check(Player, Choice) |
2 | if Choice.Name = = "Teleport" then |
3 | Player.Character.Torso.CFrame = CFrame.new(- 29.06 , 1.551 , - 25.72 ) |
4 | end |
5 | end |
6 |
7 | script.Parent.DialogChoiceSelected:connect(check) |
I don't know why it doesn't work at all.
Try this, hope it helps
1 | wait() |
2 | function 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) |
9 | print ( "Teleported" ) |