HouseV3rm

Teleport to Coordinates in X# of Teleports

Oct 21st, 2020 (edited)
715
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local S = Instance.new("ScreenGui")
  2. local L = Instance.new("Frame")
  3. local D = Instance.new("Frame")
  4. local T = Instance.new("TextButton")
  5. local A = Instance.new("TextBox")
  6. local X = Instance.new("TextBox")
  7. local Z = Instance.new("TextBox")
  8. local Y = Instance.new("TextBox")
  9. local V = Instance.new("TextLabel")
  10. local H = Instance.new("TextLabel")
  11. local C = Instance.new("TextButton")
  12.  
  13. --- This sets the PlaceHolderText to the players current CFrame ---
  14. local P = game.Players.LocalPlayer.Character.HumanoidRootPart
  15. local CF = P.CFrame
  16. local Cx, Cy, Cz, m11, m12, m13, m21, m22, m23, m31, m32, m33 = CF:components()
  17. --- This sets the PlaceHolderText to the players current CFrame ---
  18.  
  19. S.Name = "S"
  20. S.Parent = game:WaitForChild("CoreGui")
  21. S.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  22.  
  23. L.Name = "L"
  24. L.Parent = S
  25. L.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  26. L.BorderColor3 = Color3.fromRGB(110, 110, 110)
  27. L.Position = UDim2.new(0.321100891, 0, 0.282937378, 0)
  28. L.Size = UDim2.new(0, 350, 0, 200)
  29. L.Active = true
  30. L.Draggable = true
  31.  
  32. D.Name = "D"
  33. D.Parent = L
  34. D.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  35. D.BorderColor3 = Color3.fromRGB(110, 110, 110)
  36. D.Position = UDim2.new(0.042857144, 0, 0.200000003, 0)
  37. D.Size = UDim2.new(0, 320, 0, 145)
  38.  
  39. T.Name = "T"
  40. T.Parent = D
  41. T.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  42. T.BorderColor3 = Color3.fromRGB(84, 92, 38)
  43. T.Position = UDim2.new(0.513, 0, 0.551724136, 0)
  44. T.Size = UDim2.new(0, 140, 0, 50)
  45. T.Font = Enum.Font.Gotham
  46. T.Text = "Teleport"
  47. T.TextColor3 = Color3.fromRGB(255, 255, 255)
  48. T.TextSize = 15.000
  49. T.MouseButton1Click:connect(function()
  50. N = tonumber(A.Text)
  51. for i=1,N do
  52.     if i==1 then
  53.         N = tonumber(A.Text)
  54.         sX,sY,sZ = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame:components()
  55.         eX,eY,eZ = X.Text,Y.Text,Z.Text
  56.         aX,aY,aZ = (eX-sX)/N,(eY-sY)/N,(eZ-sZ)/N
  57.     elseif i==N then
  58.         P.CFrame = CFrame.new(X.Text, Y.Text, Z.Text)
  59.         print(P.CFrame)
  60.     else
  61.         P.CFrame = CFrame.new((sX+aX*i),(sY+aY*i),(sZ+aZ*i))
  62.         print(P.CFrame)
  63.         wait()
  64.     end
  65. end
  66. end)
  67.  
  68. A.Name = "A"
  69. A.Parent = D
  70. A.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  71. A.BorderColor3 = Color3.fromRGB(96, 12, 12)
  72. A.Position = UDim2.new(0.046875, 0, 0.551724136, 0)
  73. A.Size = UDim2.new(0, 140, 0, 50)
  74. A.Font = Enum.Font.Gotham
  75. A.PlaceholderText = "2 Minimum"
  76. A.Text = "# of TP"
  77. A.TextColor3 = Color3.fromRGB(255, 255, 255)
  78. A.TextSize = 14.000
  79.  
  80. X.Name = "X"
  81. X.Parent = D
  82. X.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  83. X.BorderColor3 = Color3.fromRGB(96, 12, 12)
  84. X.Position = UDim2.new(0.046875, 0, 0.103448279, 0)
  85. X.Size = UDim2.new(0, 86, 0, 50)
  86. X.Font = Enum.Font.Gotham
  87. X.PlaceholderText = Cx
  88. X.Text = ""
  89. X.TextColor3 = Color3.fromRGB(255, 255, 255)
  90. X.TextSize = 14.000
  91.  
  92. Z.Name = "Z"
  93. Z.Parent = D
  94. Z.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  95. Z.BorderColor3 = Color3.fromRGB(96, 12, 12)
  96. Z.Position = UDim2.new(0.681249976, 0, 0.103448279, 0)
  97. Z.Size = UDim2.new(0, 86, 0, 50)
  98. Z.Font = Enum.Font.Gotham
  99. Z.PlaceholderText = Cz
  100. Z.Text = ""
  101. Z.TextColor3 = Color3.fromRGB(255, 255, 255)
  102. Z.TextSize = 14.000
  103.  
  104. Y.Name = "Y"
  105. Y.Parent = D
  106. Y.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  107. Y.BorderColor3 = Color3.fromRGB(96, 12, 12)
  108. Y.Position = UDim2.new(0.365624994, 0, 0.103448279, 0)
  109. Y.Size = UDim2.new(0, 85, 0, 50)
  110. Y.Font = Enum.Font.Gotham
  111. Y.PlaceholderText = Cy
  112. Y.Text = ""
  113. Y.TextColor3 = Color3.fromRGB(255, 255, 255)
  114. Y.TextSize = 14.000
  115.  
  116. V.Name = "V"
  117. V.Parent = L
  118. V.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  119. V.BackgroundTransparency = 1.000
  120. V.BorderSizePixel = 0
  121. V.Position = UDim2.new(0.042857144, 0, 0, 0)
  122. V.Size = UDim2.new(0, 140, 0, 40)
  123. V.Font = Enum.Font.GothamBold
  124. V.Text = "o u s e V 3 r m"
  125. V.TextColor3 = Color3.fromRGB(255, 255, 255)
  126. V.TextSize = 14.000
  127.  
  128. H.Name = "H"
  129. H.Parent = L
  130. H.BackgroundColor3 = Color3.fromRGB(186, 3, 3)
  131. H.BackgroundTransparency = 1.000
  132. H.BorderSizePixel = 0
  133. H.Position = UDim2.new(0.042857144, 0, 0, 0)
  134. H.Size = UDim2.new(0, 25, 0, 40)
  135. H.Font = Enum.Font.GothamBold
  136. H.Text = "H"
  137. H.TextColor3 = Color3.fromRGB(186, 3, 3)
  138. H.TextSize = 16.000
  139.  
  140. C.Name = "C"
  141. C.Parent = L
  142. C.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  143. C.BackgroundTransparency = 1.000
  144. C.BorderSizePixel = 0
  145. C.Position = UDim2.new(0.885714352, 0, 0, 0)
  146. C.Size = UDim2.new(0, 40, 0, 40)
  147. C.Font = Enum.Font.GothamBold
  148. C.Text = "X"
  149. C.TextColor3 = Color3.fromRGB(255, 255, 255)
  150. C.TextSize = 14.000
  151. C.MouseButton1Click:connect(function()
  152. S:Destroy()
  153. end)
  154.  
  155. --- This auto-updates the PlaceHolderText to the players current CFrame ---
  156. while true do
  157.   function update ()
  158.     local P = game.Players.LocalPlayer.Character.HumanoidRootPart
  159.     local CF = P.CFrame
  160.     local Cx, Cy, Cz, m11, m12, m13, m21, m22, m23, m31, m32, m33 = CF:components()
  161.     X.PlaceholderText = math.floor(Cx+0.5)
  162.     Y.PlaceholderText = math.floor(Cy+0.5)
  163.     Z.PlaceholderText = math.floor(Cz+0.5)
  164.   end
  165.   pcall ( update )
  166.   wait()
  167. end
  168. --- This auto-updates the PlaceHolderText to the players current CFrame ---
RAW Paste Data