Advertisement
DarkHorse89

Coordinates Grabber By Juice

May 29th, 2023 (edited)
914
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.52 KB | Source Code | 1 0
  1. local coordgui = Instance.new("ScreenGui")
  2. local main = Instance.new("Frame")
  3. local title = Instance.new("TextLabel")
  4. local grab = Instance.new("TextButton")
  5. local copy = Instance.new("TextButton")
  6. local teleport = Instance.new("TextButton")
  7. local close = Instance.new("TextButton")
  8. local cords = Instance.new("TextLabel")
  9. --Properties:
  10. coordgui.Name = "coordgui"
  11. coordgui.Parent = game.CoreGui
  12.  
  13. main.Name = "main"
  14. main.Parent = coordgui
  15. main.BackgroundColor3 = Color3.new(1, 1, 1)
  16. main.Position = UDim2.new(0.352638364, 0, 0.405797124, 0)
  17. main.Size = UDim2.new(0, 228, 0, 170)
  18. main.Style = Enum.FrameStyle.DropShadow
  19. main.Active = true
  20. main.Draggable = true
  21.  
  22. title.Name = "title"
  23. title.Parent = main
  24. title.BackgroundColor3 = Color3.new(0, 0, 0)
  25. title.Position = UDim2.new(-0.0517418832, 0, -0.054933358, 0)
  26. title.Size = UDim2.new(0, 235, 0, 19)
  27. title.Font = Enum.Font.SciFi
  28. title.Text = "Coordinates Grabber Gui"
  29. title.TextColor3 = Color3.new(1, 1, 1)
  30. title.TextSize = 14
  31.  
  32. grab.Name = "grab"
  33. grab.Parent = main
  34. grab.BackgroundColor3 = Color3.new(0, 0, 0)
  35. grab.Position = UDim2.new(0.0381504558, 0, 0.500263834, 0)
  36. grab.Size = UDim2.new(0, 128, 0, 31)
  37. grab.Font = Enum.Font.SciFi
  38. grab.Text = "Grab Coordinates"
  39. grab.TextColor3 = Color3.new(1, 1, 1)
  40. grab.TextSize = 14
  41.  
  42. copy.Name = "copy"
  43. copy.Parent = main
  44. copy.BackgroundColor3 = Color3.new(0, 0, 0)
  45. copy.Position = UDim2.new(0.697107434, 0, 0.495215261, 0)
  46. copy.Size = UDim2.new(0, 52, 0, 32)
  47. copy.Font = Enum.Font.SciFi
  48. copy.Text = "Copy"
  49. copy.TextColor3 = Color3.new(1, 1, 1)
  50. copy.TextSize = 14
  51.  
  52. teleport.Name = "teleport"
  53. teleport.Parent = main
  54. teleport.BackgroundColor3 = Color3.new(0, 0, 0)
  55. teleport.Position = UDim2.new(0.25, 0, 0.75, 0)
  56. teleport.Size = UDim2.new(0, 60, 0, 32)
  57. teleport.Font = Enum.Font.SciFi
  58. teleport.Text = "Teleport"
  59. teleport.TextColor3 = Color3.new(1, 1, 1)
  60. teleport.TextSize = 14
  61.  
  62. close.Name = "close"
  63. close.Parent = main
  64. close.BackgroundColor3 = Color3.new(0, 0, 0)
  65. close.Position = UDim2.new(0.55, 0, 0.75, 0)
  66. close.Size = UDim2.new(0, 52, 0, 32)
  67. close.Font = Enum.Font.SciFi
  68. close.Text = "Close"
  69. close.TextColor3 = Color3.new(1, 1, 1)
  70. close.TextSize = 14
  71.  
  72. cords.Name = "cords"
  73. cords.Parent = main
  74. cords.BackgroundColor3 = Color3.new(0, 0, 0)
  75. cords.Position = UDim2.new(0.0420129336, 0, 0.199266031, 0)
  76. cords.Size = UDim2.new(0, 194, 0, 37)
  77. cords.Font = Enum.Font.SciFi
  78. cords.Text = ""
  79. cords.TextColor3 = Color3.new(1, 1, 1)
  80. cords.TextSize = 14
  81.  
  82. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  83.  
  84. grab.MouseButton1Down:Connect(function()
  85.     cords.Text = tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
  86.     wait(0.25)
  87.     print(''..tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.Position))
  88. end)
  89.  
  90. close.MouseButton1Down:Connect(function()
  91.     coordgui:Destroy()
  92. end)
  93.  
  94. function mysplit(inputstr, sep)
  95.     if sep == nil then
  96.         sep = "%s"
  97.     end
  98.     local t={}
  99.     for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
  100.         table.insert(t, str)
  101.     end
  102.     return t
  103. end
  104.  
  105. teleport.MouseButton1Down:Connect(function()
  106.     teleportTo = cords.Text
  107.     if teleportTo and teleportTo ~= "" and teleportTo ~= " " then
  108.         teleportTo = tostring(teleportTo)
  109.         coordsToTeleport = mysplit(teleportTo, ", ")
  110.         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(coordsToTeleport[1], coordsToTeleport[2], coordsToTeleport[3])
  111.     end
  112. end)
  113.  
  114. copy.MouseButton1Down:Connect(function()
  115.     setclipboard(""..cords.Text)
  116. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement