Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how to make a dialog shop that teleports u?

script.Parent.DialogChoiceSelected:connect(function(player, choice)
 if choice == script.Parent.DialogChoice.Sure then
  if player.leaderstats.Gold.Value >= 100 then
   player.leaderstats.Gold.Value = player.leaderstats.Gold.Value - 100
script.Parent.Parent.Parent.Parent.Character.HumaniodRootPart.CFrame = CFrame.new(0, 0.5, 4.7)
end
end
end)

1 answer

✓ Accepted answer

i think u maked wrong teleportation:

script.Parent.Parent.Parent.Parent.Character:moveTo(Vector3.new(0,0.5,4.7)) -- teleports

This discussion is preserved as it was. New answers, comments, and votes are closed.