Q to copy current cframe

public
vxpreen Jul 23, 2024 Never 36
Clone
Lua paste1.lua 22 lines (18 loc) | 741 Bytes
1
-- loadstring(game:HttpGet("https://pastecode.dev/raw/betpc2hn/paste1.lua"))()
2
3
local userInputService = game:GetService("UserInputService")
4
local player = game.Players.LocalPlayer
5
local character = player.Character or player.CharacterAdded:Wait()
6
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
7
8
local copiedCFrame = nil
9
10
local function onKeyPress(input)
11
if input.KeyCode == Enum.KeyCode.Q then
12
copiedCFrame = humanoidRootPart.CFrame
13
setclipboard(tostring(copiedCFrame))
14
player:SendNotification({
15
Title = "CFrame Copied!",
16
Text = "Now You Can Paste",
17
Duration = 3
18
})
19
end
20
end
21
22
userInputService.InputBegan:Connect(onKeyPress)