Advertisement
abs_0

Teleport organizer

Jun 28th, 2018
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.84 KB | None | 0 0
  1. -- Objects
  2.  
  3.  
  4. local TeleportOrganizer = Instance.new("ScreenGui")
  5. local GuiBody = Instance.new("Frame")
  6. local WindowContainer = Instance.new("Frame")
  7. local NameBoxFrame = Instance.new("Frame")
  8. local NameBox = Instance.new("TextBox")
  9. local AddButton = Instance.new("TextButton")
  10. local CopyLua = Instance.new("TextButton")
  11. local ListScrollingFrame = Instance.new("ScrollingFrame")
  12. local ListLocations = Instance.new("TextLabel")
  13. local ClearText = Instance.new("TextButton")
  14. local Title = Instance.new("TextLabel")
  15. local Close = Instance.new("TextButton")
  16. local TitleFrame = Instance.new("Frame")
  17.  
  18.  
  19. -- Properties
  20.  
  21.  
  22. TeleportOrganizer.Name = "TeleportOrganizer"
  23. TeleportOrganizer.Parent = game.Players.abs_0.PlayerGui
  24. TeleportOrganizer.ResetOnSpawn = false
  25.  
  26. GuiBody.Name = "GuiBody"
  27. GuiBody.Parent = TeleportOrganizer
  28. GuiBody.BackgroundColor3 = Color3.new(0.258824, 0.262745, 0.262745)
  29. GuiBody.BorderColor3 = Color3.new(1, 1, 1)
  30. GuiBody.BorderSizePixel = 0
  31. GuiBody.Position = UDim2.new(0.190130621, 0, 0.213983044, 0)
  32. GuiBody.Size = UDim2.new(0, 200, 0, 270)
  33. GuiBody.ZIndex = 0
  34.  
  35. WindowContainer.Name = "WindowContainer"
  36. WindowContainer.Parent = GuiBody
  37. WindowContainer.Active = true
  38. WindowContainer.BackgroundColor3 = Color3.new(0.258824, 0.262745, 0.262745)
  39. WindowContainer.BorderSizePixel = 0
  40. WindowContainer.Position = UDim2.new(0, 0, 0, 43)
  41. WindowContainer.Size = UDim2.new(0, 200, 0, 227)
  42. WindowContainer.ZIndex = 0
  43.  
  44. NameBoxFrame.Name = "NameBoxFrame"
  45. NameBoxFrame.Parent = WindowContainer
  46. NameBoxFrame.Active = true
  47. NameBoxFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  48. NameBoxFrame.BackgroundTransparency = 0.89999997615814
  49. NameBoxFrame.BorderColor3 = Color3.new(1, 1, 1)
  50. NameBoxFrame.BorderSizePixel = 0
  51. NameBoxFrame.Position = UDim2.new(0.354999989, 0, 0.0176211428, 0)
  52. NameBoxFrame.Selectable = true
  53. NameBoxFrame.Size = UDim2.new(0, 118, 0, 31)
  54. NameBoxFrame.ZIndex = 0
  55.  
  56. NameBox.Name = "NameBox"
  57. NameBox.Parent = WindowContainer
  58. NameBox.BackgroundColor3 = Color3.new(0, 0, 0)
  59. NameBox.BackgroundTransparency = 1
  60. NameBox.BorderColor3 = Color3.new(1, 1, 1)
  61. NameBox.BorderSizePixel = 0
  62. NameBox.Position = UDim2.new(0.400000006, 0, 0.0176211428, 0)
  63. NameBox.Size = UDim2.new(0, 108, 0, 31)
  64. NameBox.ZIndex = 0
  65. NameBox.Font = Enum.Font.SourceSans
  66. NameBox.Text = "Name..."
  67. NameBox.TextColor3 = Color3.new(1, 1, 1)
  68. NameBox.TextSize = 15
  69. NameBox.TextWrapped = true
  70. NameBox.TextXAlignment = Enum.TextXAlignment.Left
  71.  
  72. AddButton.Name = "AddButton"
  73. AddButton.Parent = WindowContainer
  74. AddButton.Active = true
  75. AddButton.AnchorPoint = Vector2.new(0.5, 0.5)
  76. AddButton.BackgroundColor3 = Color3.new(1, 1, 1)
  77. AddButton.BackgroundTransparency = 0.89999997615814
  78. AddButton.BorderColor3 = Color3.new(1, 1, 1)
  79. AddButton.BorderSizePixel = 0
  80. AddButton.Position = UDim2.new(0, 34, 0, 19)
  81. AddButton.Selectable = false
  82. AddButton.Size = UDim2.new(0, 48, 0, 31)
  83. AddButton.ZIndex = 0
  84. AddButton.AutoButtonColor = false
  85. AddButton.Font = Enum.Font.SourceSans
  86. AddButton.Text = "ADD"
  87. AddButton.TextColor3 = Color3.new(1, 1, 1)
  88. AddButton.TextSize = 14
  89.  
  90. CopyLua.Name = "CopyLua"
  91. CopyLua.Parent = WindowContainer
  92. CopyLua.Active = true
  93. CopyLua.AnchorPoint = Vector2.new(0.5, 0.5)
  94. CopyLua.BackgroundColor3 = Color3.new(1, 1, 1)
  95. CopyLua.BackgroundTransparency = 0.89999997615814
  96. CopyLua.BorderColor3 = Color3.new(1, 1, 1)
  97. CopyLua.BorderSizePixel = 0
  98. CopyLua.Position = UDim2.new(0.735000014, 0, 0.883259892, 0)
  99. CopyLua.Selectable = false
  100. CopyLua.Size = UDim2.new(0, 84, 0, 31)
  101. CopyLua.ZIndex = 0
  102. CopyLua.AutoButtonColor = false
  103. CopyLua.Font = Enum.Font.SourceSans
  104. CopyLua.Text = "COPY"
  105. CopyLua.TextColor3 = Color3.new(1, 1, 1)
  106. CopyLua.TextSize = 14
  107.  
  108. ListScrollingFrame.Name = "ListScrollingFrame"
  109. ListScrollingFrame.Parent = WindowContainer
  110. ListScrollingFrame.Active = true
  111. ListScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  112. ListScrollingFrame.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  113. ListScrollingFrame.BorderSizePixel = 0
  114. ListScrollingFrame.Position = UDim2.new(0.0500000007, 0, 0.211453751, 0)
  115. ListScrollingFrame.Size = UDim2.new(0, 179, 0, 125)
  116. ListScrollingFrame.ZIndex = 0
  117.  
  118. ListLocations.Name = "ListLocations"
  119. ListLocations.Parent = ListScrollingFrame
  120. ListLocations.Active = true
  121. ListLocations.BackgroundColor3 = Color3.new(1, 1, 1)
  122. ListLocations.BorderSizePixel = 0
  123. ListLocations.Size = UDim2.new(1, 0, 3.13235283, 0)
  124. ListLocations.ZIndex = 0
  125. ListLocations.Font = Enum.Font.SourceSans
  126. ListLocations.Text = ""
  127. ListLocations.TextColor3 = Color3.new(0, 0, 0)
  128. ListLocations.TextSize = 14
  129. ListLocations.TextWrapped = true
  130. ListLocations.TextXAlignment = Enum.TextXAlignment.Left
  131. ListLocations.TextYAlignment = Enum.TextYAlignment.Top
  132.  
  133. ClearText.Name = "ClearText"
  134. ClearText.Parent = WindowContainer
  135. ClearText.Active = true
  136. ClearText.AnchorPoint = Vector2.new(0.5, 0.5)
  137. ClearText.BackgroundColor3 = Color3.new(1, 1, 1)
  138. ClearText.BackgroundTransparency = 0.89999997615814
  139. ClearText.BorderColor3 = Color3.new(1, 1, 1)
  140. ClearText.BorderSizePixel = 0
  141. ClearText.Position = UDim2.new(0.25999999, 0, 0.883259892, 0)
  142. ClearText.Selectable = false
  143. ClearText.Size = UDim2.new(0, 84, 0, 31)
  144. ClearText.ZIndex = 0
  145. ClearText.AutoButtonColor = false
  146. ClearText.Font = Enum.Font.SourceSans
  147. ClearText.Text = "CLEAR"
  148. ClearText.TextColor3 = Color3.new(1, 1, 1)
  149. ClearText.TextSize = 14
  150.  
  151. Title.Name = "Title"
  152. Title.Parent = GuiBody
  153. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  154. Title.BackgroundTransparency = 1
  155. Title.BorderSizePixel = 0
  156. Title.Size = UDim2.new(0.944999993, 0, 0.0222222228, 30)
  157. Title.ZIndex = 0
  158. Title.Font = Enum.Font.SourceSans
  159. Title.Text = "TELEPORT ORGANIZER"
  160. Title.TextColor3 = Color3.new(1, 1, 1)
  161. Title.TextSize = 15
  162.  
  163. Close.Name = "Close"
  164. Close.Parent = GuiBody
  165. Close.AnchorPoint = Vector2.new(1, 0)
  166. Close.BackgroundColor3 = Color3.new(1, 0, 0)
  167. Close.BorderSizePixel = 0
  168. Close.Position = UDim2.new(0.944999993, 0, 0.0296296366, 0)
  169. Close.Size = UDim2.new(0, 20, 0, 20)
  170. Close.ZIndex = 0
  171. Close.Font = Enum.Font.SourceSansBold
  172. Close.Text = ""
  173. Close.TextColor3 = Color3.new(1, 1, 1)
  174. Close.TextSize = 14
  175.  
  176. TitleFrame.Name = "TitleFrame"
  177. TitleFrame.Parent = GuiBody
  178. TitleFrame.BackgroundColor3 = Color3.new(0.972549, 0.972549, 0.972549)
  179. TitleFrame.BackgroundTransparency = 0.89999997615814
  180. TitleFrame.BorderSizePixel = 0
  181. TitleFrame.Size = UDim2.new(1, 0, 0.0222222228, 30)
  182.  
  183.  
  184. -- Scripts
  185.  
  186.  
  187. --Draggable
  188.  
  189. GuiBody.Active = true
  190. GuiBody.Draggable = true
  191.  
  192. -- Add location
  193.  
  194. local CF = function()
  195.     return game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  196. end
  197.  
  198. AddButton.MouseButton1Click:Connect(function()
  199.     local name = NameBox.Text
  200.     if name ~= "Name..." then
  201.         local x,y,z = math.floor(CF().X),math.floor(CF().Y),math.floor(CF().Z)
  202.        
  203.         ListLocations.Text =
  204.             ListLocations.Text
  205.             .. "-- "..name
  206.             .. "\n"
  207.             .. "CFrame.new("..tostring(x)..", "..tostring(y)..", "..tostring(z)..")"
  208.             .. "\n\n"
  209.     end
  210. end)
  211.  
  212. -- Button effects
  213.  
  214. function buttonEffect(button)
  215.     local clickColor = 180
  216.    
  217.     button.MouseButton1Down:Connect(function()
  218.         button.BackgroundColor3 = Color3.fromRGB(clickColor, clickColor, clickColor)
  219.     end)
  220.    
  221.     button.MouseButton1Up:Connect(function()
  222.         button.BackgroundColor3 = Color3.new(1, 1, 1)
  223.     end)
  224. end
  225.  
  226. buttons = {AddButton, CopyLua, ClearText}
  227. for i,v in pairs(buttons) do
  228.     buttonEffect(v)
  229. end
  230.  
  231. -- Copy text
  232.  
  233. local copy
  234. if Clipboard ~= nil then
  235.     copy = Clipboard.set
  236. elseif Synapse ~= nil then
  237.     copy = function(str)
  238.         Synapse:Copy(str)
  239.     end
  240. elseif setclipboard ~= nil then    
  241.     copy = setclipboard
  242. else
  243.     copy = function() end
  244. end
  245. copy(ListLocations.Text)
  246.  
  247. -- Clear text
  248.  
  249. ClearText.MouseButton1Click:Connect(function()
  250.     ListLocations.Text = ""
  251. end)
  252.  
  253. -- Revert text
  254.  
  255. NameBox.FocusLost:Connect(function()
  256.     if NameBox.Text == "" then
  257.         NameBox.Text = "Name..."
  258.     end
  259. end)
  260.  
  261. -- Close gui
  262.  
  263. Close.MouseButton1Click:Connect(function()
  264.     TeleportOrganizer:Destroy()
  265. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement