Facebook
From cccc, 7 Months ago, written in Lua.
Embed
Download Paste or View Raw
Hits: 233
  1. local Converted = {
  2.  ["_UI1"] = Instance.new("ScreenGui");
  3.  ["_Frame"] = Instance.new("Frame");
  4.  ["_UICorner"] = Instance.new("UICorner");
  5.  ["_UIScale"] = Instance.new("UIScale");
  6.  ["_cframe"] = Instance.new("TextButton");
  7.  ["_title"] = Instance.new("TextLabel");
  8.  ["_position"] = Instance.new("TextButton");
  9.  ["_textbox"] = Instance.new("TextBox");
  10. }
  11.  
  12.  
  13. Converted["_UI1"].ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  14. Converted["_UI1"].Name = "UI1"
  15. Converted["_UI1"].Parent = game.Players.LocalPlayer.PlayerGui
  16.  
  17. Converted["_Frame"].BackgroundColor3 = Color3.fromRGB(69.00000348687172, 68.00000354647636, 69.00000348687172)
  18. Converted["_Frame"].BorderSizePixel = 0
  19. Converted["_Frame"].Position = UDim2.new(0.394079566, 0, 0.277511954, 0)
  20. Converted["_Frame"].Size = UDim2.new(0, 230, 0, 185)
  21. Converted["_Frame"].Parent = Converted["_UI1"]
  22. Converted["_Frame"].Draggable = true
  23. Converted["_Frame"].Active = true
  24.  
  25. Converted["_UICorner"].CornerRadius = UDim.new(0, 10)
  26. Converted["_UICorner"].Parent = Converted["_Frame"]
  27.  
  28. Converted["_UIScale"].Parent = Converted["_Frame"]
  29.  
  30. Converted["_cframe"].Font = Enum.Font.GothamBlack
  31. Converted["_cframe"].Text = "Copy CFrame"
  32. Converted["_cframe"].TextColor3 = Color3.fromRGB(42.000001296401024, 0, 69.00000348687172)
  33. Converted["_cframe"].TextScaled = true
  34. Converted["_cframe"].TextSize = 14
  35. Converted["_cframe"].TextWrapped = true
  36. Converted["_cframe"].BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  37. Converted["_cframe"].BackgroundTransparency = 1
  38. Converted["_cframe"].Position = UDim2.new(-0.087378636, 0, 0.729729712, 0)
  39. Converted["_cframe"].Size = UDim2.new(0, 136, 0, 50)
  40. Converted["_cframe"].Name = "cframe"
  41. Converted["_cframe"].Parent = Converted["_Frame"]
  42.  
  43. Converted["_title"].Font = Enum.Font.DenkOne
  44. Converted["_title"].Text = "CFrame & Position Tools v1.0.0"
  45. Converted["_title"].TextColor3 = Color3.fromRGB(255, 170.0000050663948, 0)
  46. Converted["_title"].TextSize = 20
  47. Converted["_title"].TextWrapped = true
  48. Converted["_title"].BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  49. Converted["_title"].BackgroundTransparency = 1
  50. Converted["_title"].Position = UDim2.new(0.0145631069, 0, 0, 0)
  51. Converted["_title"].Size = UDim2.new(0, 200, 0, 50)
  52. Converted["_title"].Name = "title"
  53. Converted["_title"].Parent = Converted["_Frame"]
  54.  
  55. Converted["_position"].Font = Enum.Font.GothamBlack
  56. Converted["_position"].Text = "Copy Position"
  57. Converted["_position"].TextColor3 = Color3.fromRGB(42.000001296401024, 0, 69.00000348687172)
  58. Converted["_position"].TextScaled = true
  59. Converted["_position"].TextSize = 14
  60. Converted["_position"].TextWrapped = true
  61. Converted["_position"].BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  62. Converted["_position"].BackgroundTransparency = 1
  63. Converted["_position"].Position = UDim2.new(0.505728154, 0, 0.729729712, 0)
  64. Converted["_position"].Size = UDim2.new(0, 106, 0, 50)
  65. Converted["_position"].Name = "position"
  66. Converted["_position"].Parent = Converted["_Frame"]
  67.  
  68. Converted["_textbox"].CursorPosition = -1
  69. Converted["_textbox"].Font = Enum.Font.GothamBlack
  70. Converted["_textbox"].PlaceholderColor3 = Color3.fromRGB(42.000001296401024, 0, 69.00000348687172)
  71. Converted["_textbox"].PlaceholderText = "Enter in something's path EG: game.Workspace.Part.CFrame/Position or nothing to copy your cf/pos"
  72. Converted["_textbox"].Text = ""
  73. Converted["_textbox"].TextColor3 = Color3.fromRGB(42.000001296401024, 42.000001296401024, 42.000001296401024)
  74. Converted["_textbox"].TextScaled = true
  75. Converted["_textbox"].TextSize = 14
  76. Converted["_textbox"].TextWrapped = true
  77. Converted["_textbox"].BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  78. Converted["_textbox"].BackgroundTransparency = 1
  79. Converted["_textbox"].Position = UDim2.new(0.0331262139, 0, 0.362162173, 0)
  80. Converted["_textbox"].Size = UDim2.new(0, 200, 0, 50)
  81. Converted["_textbox"].Name = "textbox"
  82. Converted["_textbox"].Parent = Converted["_Frame"]
  83.  
  84. local textbox = Converted["_textbox"]
  85. Converted["_cframe"].MouseButton1Click:Connect(function()
  86.  if textbox.Text ~= "" then
  87.   if textbox.Text:find(".") then
  88.    local success, result = pcall(function()
  89.     return loadstring("return " .. textbox.Text)()
  90.    end)
  91.    if success and typeof(result) == "CFrame" then
  92.     local cframeToCopy = result
  93.     setclipboard(tostring(cframeToCopy))
  94.    end
  95.   end
  96.  elseif textbox.Text == "" then
  97.   setclipboard(tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame))
  98.  end
  99. end)
  100.  
  101. local textbox = Converted["_textbox"]
  102. Converted["_position"].MouseButton1Click:Connect(function()
  103.  if textbox.Text ~= "" then
  104.   if textbox.Text:find(".") then
  105.    local success, result = pcall(function()
  106.     return loadstring("return " .. textbox.Text)()
  107.    end)
  108.    if success and typeof(result) == "Vector3" then
  109.     local posToCopy = result
  110.     setclipboard(tostring(posToCopy))
  111.    end
  112.   end
  113.  elseif textbox.Text == "" then
  114.   setclipboard(tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.Position))
  115.  end
  116. end)