Advertisement
Scriptorz5

Coordinates GUI

Sep 14th, 2018
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. PS = game:GetService("Players")
  2.  
  3. MainCoordinatesGUI = Instance.new("ScreenGui", PS.LocalPlayer.PlayerGui)
  4. MainText = Instance.new("TextLabel", MainCoordinatesGUI)
  5. RefreshCoordinates = Instance.new("TextButton", MainCoordinatesGUI)
  6. CopyCoordinates = Instance.new("TextButton", MainCoordinatesGUI)
  7.  
  8. MainCoordinatesGUI.Name = "Main Coordinates GUI"
  9.  
  10. MainText.Name = "MainText"
  11. MainText.Position = UDim2.new(0, 0,0.1, 0)
  12. MainText.Size = UDim2.new(0, 249,0, 26)
  13. MainText.Text = "Coordinates"
  14. MainText.BackgroundColor3 = Color3.new(207, 207, 207)
  15. MainText.BackgroundTransparency = 0.5
  16. MainText.BorderSizePixel = 0
  17. MainText.Font = "Code"
  18. MainText.TextScaled = true
  19.  
  20. RefreshCoordinates.Name = "RefreshCoordinates"
  21. RefreshCoordinates.Position = UDim2.new(0, 0,0.15, 0)
  22. RefreshCoordinates.Size = UDim2.new(0, 169,0, 19)
  23. RefreshCoordinates.Text = "Refresh Coordinates"
  24. RefreshCoordinates.BackgroundColor3 = Color3.new(207, 207, 207)
  25. RefreshCoordinates.BackgroundTransparency = 0.5
  26. RefreshCoordinates.BorderSizePixel = 0
  27. RefreshCoordinates.Font = "Code"
  28. RefreshCoordinates.TextScaled = true
  29. RefreshCoordinates.MouseButton1Click:connect(function()
  30. RefreshCoordinates.Text = "Refreshed!"
  31. MainText.Text = tostring(PS.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position)
  32. wait(1)
  33. RefreshCoordinates.Text = "Refresh Coordinates"
  34. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement