1 | |
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) |