1 | script.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 |
5 | script.Parent.Parent.Parent.Parent.Character.HumaniodRootPart.CFrame = CFrame.new( 0 , 0.5 , 4.7 ) |
6 | end |
7 | end |
8 | end ) |
i think u maked wrong teleportation:
1 | script.Parent.Parent.Parent.Parent.Character:moveTo(Vector 3. new( 0 , 0.5 , 4.7 )) -- teleports |