Gostrondude

Untitled

Oct 22nd, 2018
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.47 KB | None | 0 0
  1. --[[
  2. This is literaly just for me to see if i know how to use tostring.
  3. And now i know that i am capeable of using it
  4. --]]
  5.  
  6. --//Instances:
  7.  
  8. local grabCords = Instance.new("ScreenGui")
  9. local drag = Instance.new("Frame")
  10. local main = Instance.new("Frame")
  11. local cords = Instance.new("TextLabel")
  12. local grab = Instance.new("TextButton")
  13. local bottom = Instance.new("TextLabel")
  14. local copy = Instance.new("TextButton")
  15. local loop = Instance.new("TextLabel")
  16. local loopOn = Instance.new("TextButton")
  17. local tp = Instance.new("TextButton")
  18. local create = Instance.new("TextButton")
  19.  
  20. --//Properties:
  21.  
  22. grabCords.Parent = game.CoreGui
  23. grabCords.Name = "grabCords"
  24. grabCords.Enabled = true
  25. grabCords.ResetOnSpawn = true
  26.  
  27. drag.Name = "drag"
  28. drag.Parent = grabCords
  29. drag.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  30. drag.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  31. drag.Position = UDim2.new(0.431770831, 0, 0.390663385, 0)
  32. drag.Size = UDim2.new(0, 262, 0, 18)
  33. drag.Active = true
  34. drag.Draggable = true
  35.  
  36. main.Name = "main"
  37. main.Parent = drag
  38. main.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  39. main.Position = UDim2.new(0.000946253538, 0, 1.02538908, 0)
  40. main.Size = UDim2.new(0, 262, 0, 170)
  41.  
  42. cords.Name = "cords"
  43. cords.Parent = main
  44. cords.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  45. cords.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  46. cords.Position = UDim2.new(0, 0, 0.0823529437, 0)
  47. cords.Size = UDim2.new(0, 262, 0, 47)
  48. cords.Font = Enum.Font.SourceSans
  49. cords.Text = ""
  50. cords.TextColor3 = Color3.new(1, 1, 1)
  51. cords.TextScaled = true
  52. cords.TextSize = 14
  53. cords.TextWrapped = true
  54.  
  55. grab.Name = "grab"
  56. grab.Parent = main
  57. grab.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  58. grab.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  59. grab.Position = UDim2.new(0.0305343512, 0, 0.417647064, 0)
  60. grab.Size = UDim2.new(0, 74, 0, 40)
  61. grab.Font = Enum.Font.SourceSans
  62. grab.Text = "Grab Current Coordinates"
  63. grab.TextColor3 = Color3.new(1, 1, 1)
  64. grab.TextScaled = true
  65. grab.TextSize = 20
  66. grab.TextWrapped = true
  67.  
  68. bottom.Name = "bottom"
  69. bottom.Parent = main
  70. bottom.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  71. bottom.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  72. bottom.Position = UDim2.new(0, 0, 0.888235271, 0)
  73. bottom.Size = UDim2.new(0, 262, 0, 19)
  74. bottom.Font = Enum.Font.SourceSans
  75. bottom.Text = "Open/Close Is Z"
  76. bottom.TextColor3 = Color3.new(1, 1, 1)
  77. bottom.TextSize = 12
  78. bottom.TextXAlignment = Enum.TextXAlignment.Left
  79.  
  80. copy.Name = "copy"
  81. copy.Parent = main
  82. copy.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  83. copy.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  84. copy.Position = UDim2.new(0.362595379, 0, 0.417647094, 0)
  85. copy.Size = UDim2.new(0, 74, 0, 40)
  86. copy.Font = Enum.Font.SourceSans
  87. copy.Text = "Copy To Clipboard"
  88. copy.TextColor3 = Color3.new(1, 1, 1)
  89. copy.TextScaled = true
  90. copy.TextSize = 20
  91. copy.TextWrapped = true
  92.  
  93. loop.Name = "loop"
  94. loop.Parent = main
  95. loop.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  96. loop.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  97. loop.Position = UDim2.new(0.0305343494, 0, 0.735294104, 0)
  98. loop.Size = UDim2.new(0, 102, 0, 19)
  99. loop.Font = Enum.Font.SourceSans
  100. loop.Text = "Loop Grab:"
  101. loop.TextColor3 = Color3.new(1, 1, 1)
  102. loop.TextSize = 14
  103. loop.TextXAlignment = Enum.TextXAlignment.Left
  104.  
  105. loopOn.Name = "loopOn"
  106. loopOn.Parent = main
  107. loopOn.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  108. loopOn.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  109. loopOn.Position = UDim2.new(0.278625965, 0, 0.735294104, 0)
  110. loopOn.Size = UDim2.new(0, 37, 0, 19)
  111. loopOn.Font = Enum.Font.SourceSans
  112. loopOn.Text = "Off"
  113. loopOn.TextColor3 = Color3.new(1, 0, 0)
  114. loopOn.TextSize = 20
  115. loopOn.TextWrapped = true
  116.  
  117. tp.Name = "tp"
  118. tp.Parent = main
  119. tp.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  120. tp.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  121. tp.Position = UDim2.new(0.687022865, 0, 0.417647094, 0)
  122. tp.Size = UDim2.new(0, 74, 0, 40)
  123. tp.Font = Enum.Font.SourceSans
  124. tp.Text = "Teleport To Cords"
  125. tp.TextColor3 = Color3.new(1, 1, 1)
  126. tp.TextScaled = true
  127. tp.TextSize = 20
  128. tp.TextWrapped = true
  129.  
  130. create.Name = "create"
  131. create.Parent = main
  132. create.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  133. create.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  134. create.Position = UDim2.new(0.687022924, 0, 0.723529398, 0)
  135. create.Size = UDim2.new(0, 74, 0, 22)
  136. create.Font = Enum.Font.SourceSans
  137. create.Text = "Create Part"
  138. create.TextColor3 = Color3.new(1, 1, 1)
  139. create.TextScaled = true
  140. create.TextSize = 20
  141. create.TextWrapped = true
  142.  
  143. --//Scripts:
  144.  
  145. --//Open/Close Function:
  146.  
  147. local open = true
  148. function onKeyPress(inputObject, gameProcessedEvent)
  149. if inputObject.KeyCode == Enum.KeyCode.Z and gameProcessedEvent == false then
  150. if open == true then
  151. open = false
  152. drag:TweenPosition(UDim2.new(0.432, 0,0.391, 0), "In", "Quad", 1.5)
  153. else
  154. open = true
  155. drag:TweenPosition(UDim2.new(-1, 0,0.391, 0), "Out", "Quad", 1.5)
  156. end
  157. end
  158. end
  159.  
  160. --//Grabbing Function:
  161.  
  162. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  163.  
  164. grab.MouseButton1Down:Connect(function()
  165. cords.Text = tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame)
  166. wait(0.25)
  167. print('Coordinates: '..tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame))
  168. end)
  169.  
  170. copy.MouseButton1Down:Connect(function()
  171. setclipboard("Coordinates: "..cords.Text)
  172. end)
  173.  
  174. create.MouseButton1Down:Connect(function()
  175. local yeah = true
  176. if yeah == true then
  177. local Saved = Instance.new("Part")
  178. Saved.Anchored = true
  179. Saved.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
  180. Saved.Transparency = 1
  181. Saved.Name = "RobloxIsGay123"
  182. Saved.Parent = workspace
  183. else
  184. game.Workspace.RobloxIsGay123:Destroy()
  185. end
  186. end)
  187.  
  188. tp.MouseButton1Down:Connect(function()
  189. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.RobloxIsGay123.CFrame
  190. end)
  191.  
  192. loopOn.MouseButton1Down:Connect(function()
  193. local on = false
  194. while wait() do
  195. if on ~= false then
  196. cords.Text = tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame)
  197. wait(0.25)
  198. print('Coordinates: '..tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame))
  199. loopOn.TextColor3 = Color3.new(0, 255, 0)
  200. loopOn.Text = "On"
  201. else
  202. cords.Text = ""
  203. wait()
  204. loopOn.TextColor3 = Color3.new(255, 0, 0)
  205. loopOn.Text = "Off"
  206. end
  207. end
  208. end)
Advertisement
Add Comment
Please, Sign In to add comment