yWolf_BR

Untitled

Jun 4th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.03 KB | None | 0 0
  1. --[[
  2. Made By Gostrondude
  3. --]]
  4.  
  5. --//Instances:
  6.  
  7. local grabCords = Instance.new("ScreenGui")
  8. local drag = Instance.new("Frame")
  9. local main = Instance.new("Frame")
  10. local cords = Instance.new("TextLabel")
  11. local grab = Instance.new("TextButton")
  12. local bottom = Instance.new("TextLabel")
  13. local copy = Instance.new("TextButton")
  14. local bottom2 = Instance.new("TextLabel")
  15.  
  16. --//Properties:
  17.  
  18. grabCords.Parent = game.CoreGui
  19. grabCords.Name = "grabCords"
  20. grabCords.Enabled = true
  21. grabCords.ResetOnSpawn = true
  22.  
  23. drag.Name = "drag"
  24. drag.Parent = grabCords
  25. drag.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  26. drag.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  27. drag.Position = UDim2.new(0.431770831, 0, 0.390663385, 0)
  28. drag.Size = UDim2.new(0, 262, 0, 18)
  29. drag.Active = true
  30. drag.Draggable = true
  31.  
  32. main.Name = "main"
  33. main.Parent = drag
  34. main.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  35. main.Position = UDim2.new(0, 0, 1, 0)
  36. main.Size = UDim2.new(0, 262, 0, 124)
  37.  
  38. cords.Name = "cords"
  39. cords.Parent = main
  40. cords.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  41. cords.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  42. cords.Position = UDim2.new(0, 0, 0.0823529437, 0)
  43. cords.Size = UDim2.new(0, 262, 0, 47)
  44. cords.Font = Enum.Font.SourceSans
  45. cords.Text = ""
  46. cords.TextColor3 = Color3.new(1, 1, 1)
  47. cords.TextScaled = true
  48. cords.TextSize = 14
  49. cords.TextWrapped = true
  50.  
  51. grab.Name = "grab"
  52. grab.Parent = main
  53. grab.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  54. grab.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  55. grab.Position = UDim2.new(0.0343511403, 0, 0.533721089, 0)
  56. grab.Size = UDim2.new(0, 119, 0, 40)
  57. grab.Font = Enum.Font.SourceSans
  58. grab.Text = "Grab Current Coordinates"
  59. grab.TextColor3 = Color3.new(1, 1, 1)
  60. grab.TextScaled = true
  61. grab.TextSize = 20
  62. grab.TextWrapped = true
  63.  
  64. bottom.Name = "bottom"
  65. bottom.Parent = main
  66. bottom.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  67. bottom.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  68. bottom.Position = UDim2.new(0, 0, 0.9374156, 0)
  69. bottom.Size = UDim2.new(0, 262, 0, 19)
  70. bottom.Font = Enum.Font.SourceSans
  71. bottom.Text = "Open/Close Is Z"
  72. bottom.TextColor3 = Color3.new(1, 1, 1)
  73. bottom.TextSize = 12
  74. bottom.TextXAlignment = Enum.TextXAlignment.Left
  75.  
  76. copy.Name = "copy"
  77. copy.Parent = main
  78. copy.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  79. copy.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  80. copy.Position = UDim2.new(0.511450291, 0, 0.533721089, 0)
  81. copy.Size = UDim2.new(0, 119, 0, 40)
  82. copy.Font = Enum.Font.SourceSans
  83. copy.Text = "Copy To Clipboard"
  84. copy.TextColor3 = Color3.new(1, 1, 1)
  85. copy.TextScaled = true
  86. copy.TextSize = 20
  87. copy.TextWrapped = true
  88.  
  89. bottom2.Name = "bottom2"
  90. bottom2.Parent = main
  91. bottom2.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  92. bottom2.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
  93. bottom2.Position = UDim2.new(0.652671754, 0, 0.9374156, 0)
  94. bottom2.Size = UDim2.new(0, 91, 0, 19)
  95. bottom2.Font = Enum.Font.SourceSans
  96. bottom2.Text = "Made By Gostrondude"
  97. bottom2.TextColor3 = Color3.new(1, 1, 1)
  98. bottom2.TextSize = 12
  99. bottom2.TextXAlignment = Enum.TextXAlignment.Left
  100.  
  101. --//Scripts:
  102.  
  103. --//Open/Close Function:
  104.  
  105. local open = true
  106. function onKeyPress(inputObject, gameProcessedEvent)
  107. if inputObject.KeyCode == Enum.KeyCode.Z and gameProcessedEvent == false then
  108. if open == true then
  109. open = false
  110. drag:TweenPosition(UDim2.new(0.432, 0,0.391, 0), "In", "Quad", 1.5)
  111. else
  112. open = true
  113. drag:TweenPosition(UDim2.new(-1, 0,0.391, 0), "Out", "Quad", 1.5)
  114. end
  115. end
  116. end
  117.  
  118. --//Grabbing Function:
  119.  
  120. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  121.  
  122. grab.MouseButton1Down:Connect(function()
  123. cords.Text = tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
  124. wait(0.25)
  125. print('Coordinates: '..tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.Position))
  126. end)
  127.  
  128. copy.MouseButton1Down:Connect(function()
  129. setclipboard("Coordinates: "..cords.Text)
  130. end)
Advertisement
Add Comment
Please, Sign In to add comment