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.
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.
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")
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Doesn't work, I don't think roblox can detect dialog responses correctly