Advertisement
trollhackerdude

tp ui

Jul 3rd, 2019
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.40 KB | None | 0 0
  1. -- by trollhackerdude
  2. -- my syn x is broken and I wanted to make something so here, this ugly crap
  3. -- ik its really buggy but who gives a shit?
  4. -- Instances:
  5. local tpui = Instance.new("ScreenGui")
  6. local Frame = Instance.new("Frame")
  7. local TextLabel = Instance.new("TextLabel")
  8. local TextButton = Instance.new("TextButton")
  9. local TextBox = Instance.new("TextBox")
  10. local credit = Instance.new("TextLabel")
  11. local close = Instance.new("TextButton")
  12. local open = Instance.new("TextButton")
  13. --Properties:
  14. tpui.Name = "tpui"
  15. tpui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  16.  
  17. Frame.Parent = tpui
  18. Frame.BackgroundColor3 = Color3.new(0.513726, 0.513726, 0.513726)
  19. Frame.Position = UDim2.new(0.316843331, 0, 0.380382776, 0)
  20. Frame.Size = UDim2.new(0, 312, 0, 159)
  21. Frame.Visible = false
  22.  
  23. TextLabel.Parent = Frame
  24. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  25. TextLabel.Position = UDim2.new(-0.00366950035, 0, -0.00326502323, 0)
  26. TextLabel.Size = UDim2.new(0, 312, 0, 31)
  27. TextLabel.Font = Enum.Font.SourceSans
  28. TextLabel.Text = "trolls TP GUI"
  29. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  30. TextLabel.TextScaled = true
  31. TextLabel.TextSize = 14
  32. TextLabel.TextWrapped = true
  33.  
  34. TextButton.Parent = Frame
  35. TextButton.BackgroundColor3 = Color3.new(0.666667, 0.666667, 0.666667)
  36. TextButton.Position = UDim2.new(0.178524494, 0, 0.57860136, 0)
  37. TextButton.Size = UDim2.new(0, 200, 0, 50)
  38. TextButton.Font = Enum.Font.SourceSans
  39. TextButton.Text = "Teleport"
  40. TextButton.TextColor3 = Color3.new(0.952941, 0.952941, 0)
  41. TextButton.TextScaled = true
  42. TextButton.TextSize = 14
  43. TextButton.TextWrapped = true
  44.  
  45. TextBox.Parent = Frame
  46. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  47. TextBox.Position = UDim2.new(0.178524524, 0, 0.315480411, 0)
  48. TextBox.Size = UDim2.new(0, 200, 0, 33)
  49. TextBox.Font = Enum.Font.SourceSans
  50. TextBox.PlaceholderText = "Name here!"
  51. TextBox.Text = ""
  52. TextBox.TextColor3 = Color3.new(0, 0, 0)
  53. TextBox.TextSize = 14
  54.  
  55. credit.Name = "credit"
  56. credit.Parent = Frame
  57. credit.BackgroundColor3 = Color3.new(1, 1, 1)
  58. credit.BackgroundTransparency = 1
  59. credit.Position = UDim2.new(0.179487184, 0, 0.886792481, 0)
  60. credit.Size = UDim2.new(0, 200, 0, 18)
  61. credit.Font = Enum.Font.SourceSans
  62. credit.Text = "by: trollhackerdude"
  63. credit.TextColor3 = Color3.new(0, 0, 0)
  64. credit.TextScaled = true
  65. credit.TextSize = 14
  66. credit.TextWrapped = true
  67.  
  68. close.Name = "close"
  69. close.Parent = Frame
  70. close.BackgroundColor3 = Color3.new(1, 0, 0)
  71. close.Position = UDim2.new(0.858895123, 0, -0.00450697541, 0)
  72. close.Size = UDim2.new(0, 44, 0, 30)
  73. close.Font = Enum.Font.SourceSans
  74. close.Text = "Close noob"
  75. close.TextColor3 = Color3.new(0, 0, 0)
  76. close.TextScaled = true
  77. close.TextSize = 14
  78. close.TextWrapped = true
  79.  
  80. open.Name = "open"
  81. open.Parent = tpui
  82. open.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  83. open.Position = UDim2.new(0, 0, 0.509569407, 0)
  84. open.Size = UDim2.new(0, 112, 0, 50)
  85. open.Font = Enum.Font.SourceSans
  86. open.Text = "Open noob"
  87. open.TextColor3 = Color3.new(0, 0, 0)
  88. open.TextScaled = true
  89. open.TextSize = 14
  90. open.TextWrapped = true
  91. -- Scripts:
  92. function SCRIPT_RMVY75_FAKESCRIPT() -- TextButton.LocalScript
  93.     local script = Instance.new('LocalScript')
  94.     script.Parent = TextButton
  95.     local name = script.Parent.Parent.TextBox
  96.     local plr = game.Players.LocalPlayer
  97.    
  98.     script.Parent.MouseButton1Click:Connect(function()
  99.         plr.Character.HumanoidRootPart.CFrame = CFrame.new(game.Players[name.Text].Character.HumanoidRootPart.Position)
  100.     end)
  101.  
  102. end
  103. coroutine.resume(coroutine.create(SCRIPT_RMVY75_FAKESCRIPT)) -- scaling for ui lol
  104. function SCRIPT_JEQV82_FAKESCRIPT() -- Frame.scale
  105.     local script = Instance.new('LocalScript')
  106.     script.Parent = Frame
  107.     GUI = script.Parent
  108.     ps = GUI.Size
  109.     GUI.Position = UDim2.new((1-ps.X.Scale)/2,0,(1-ps.Y.Scale)/2,0)
  110.  
  111. end
  112. coroutine.resume(coroutine.create(SCRIPT_JEQV82_FAKESCRIPT))
  113. function SCRIPT_YDYH77_FAKESCRIPT() -- close.LocalScript
  114.     local script = Instance.new('LocalScript')
  115.     script.Parent = close
  116.     script.Parent.MouseButton1Click:Connect(function()
  117.         script.Parent.Parent.Visible = false
  118.     end)
  119.  
  120. end
  121. coroutine.resume(coroutine.create(SCRIPT_YDYH77_FAKESCRIPT))
  122. function SCRIPT_QEXV71_FAKESCRIPT() -- open.LocalScript
  123.     local script = Instance.new('LocalScript')
  124.     script.Parent = open
  125.     script.Parent.MouseButton1Click:Connect(function()
  126.         script.Parent.Parent.Frame.Visible = true
  127.     end)
  128.  
  129. end
  130. coroutine.resume(coroutine.create(SCRIPT_QEXV71_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement