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
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

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

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")
0
Doesn't work, I don't think roblox can detect dialog responses correctly moo90100 0 — 5y
Ad

Answer this question