Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to make a dialog shop that teleports u?

Asked by
hokyboy 270 Moderation Voter
4 years ago
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

Log in to vote
1
Answered by 4 years ago

i think u maked wrong teleportation:

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

Answer this question