Copy Current CFrame GUI

public
vxpreen Jul 23, 2024 Never 104
Clone
Lua paste1.lua 22 lines (17 loc) | 930 Bytes
1
-- loadstring(game:HttpGet("https://pastecode.dev/raw/ylswai5l/paste1.lua"))()
2
3
-- I gave up on making textbox input shi couldn't figure out how to get the right format and it still be wrong
4
5
local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/wizard"))()
6
7
local Window = Library:NewWindow("CFrame")
8
9
local Section = Window:NewSection("Copy")
10
11
Section:CreateButton("Copy Current CFrame", function()
12
local player = game.Players.LocalPlayer
13
local character = player.Character or player.CharacterAdded:Wait()
14
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
15
local copiedCFrame = humanoidRootPart.CFrame
16
setclipboard(tostring(copiedCFrame))
17
game:GetService("StarterGui"):SetCore("SendNotification", {
18
Title = "CFrame Copied!",
19
Text = "Copied to your clipboard.",
20
Duration = 1
21
})
22
end)