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
5 years ago
1script.Parent.DialogChoiceSelected:connect(function(player, choice)
2 if choice == script.Parent.DialogChoice.Sure then
3  if player.leaderstats.Gold.Value >= 100 then
4   player.leaderstats.Gold.Value = player.leaderstats.Gold.Value - 100
5script.Parent.Parent.Parent.Parent.Character.HumaniodRootPart.CFrame = CFrame.new(0, 0.5, 4.7)
6end
7end
8end)

1 answer

Log in to vote
1
Answered by 5 years ago

i think u maked wrong teleportation:

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

Answer this question