-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSCR guard.lua
More file actions
36 lines (36 loc) · 1.01 KB
/
SCR guard.lua
File metadata and controls
36 lines (36 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
local vim = game:GetService('VirtualInputManager')
input = {
hold = function(key, time)
print("Holding key", key)
vim:SendKeyEvent(true, key, false, nil)
task.wait(time)
vim:SendKeyEvent(false, key, false, nil)
print("Finished holding key", key)
end,
press = function(key)
print("Pressing key", key)
vim:SendKeyEvent(true, key, false, nil)
task.wait(0.005)
vim:SendKeyEvent(false, key, false, nil)
end,
start = function(key)
print("starting key", key)
vim:SendKeyEvent(true, key, false, nil)
end,
stop = function(key)
print("stopping key", key)
vim:SendKeyEvent(false, key, false, nil)
end
}
while true do
input.press(Enum.KeyCode.E)
task.wait(0.1)
input.press(Enum.KeyCode.T)
task.wait(0.1)
input.press(Enum.KeyCode.Y)
task.wait(0.1)
input.press(Enum.KeyCode.Q)
task.wait(0.1)
input.press(Enum.KeyCode.R)
task.wait(0.1)
end