How to make a Dialog Teleport script (yes that old script in the 2010’s) somehow it dosent work for me.
More information? Is it like a dialogue where you choose yes/no to go somewhere? I’ve never done it before but I’m guessing if yes is selected it calls a function that teleports the player/players to a location. Is this correct?
you mean like using this?
yea like that. it suppose to function like
When clicked choice1 cframe player (cframe numbers)
When clicked choice1 cframe player (cframe numbers)
something like that
local dialog = script.Parent
local function onChoiceSelected(player: Player, choice)
if choice == your_choice then
player.Character:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(0, 10, 0)
end
end
dialog.DialogChoiceSelected:Connect(onChoiceSelected)
This will teleport the player if they choose the the correct choice. Note that choice
is an Instance
and you need to set it.
ok so… do you put it on the dialog where the choice is? the error on the console said “dialogchoiceselected” isnt apart of dialogchoice
DialogChoiceSelected
is an event in the Dialog
instance, not DialogChoice
. I’ve sent you the link to the docs so I suggest you read it as it answers your question.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.