-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfakemacro
More file actions
47 lines (28 loc) · 842 Bytes
/
fakemacro
File metadata and controls
47 lines (28 loc) · 842 Bytes
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
37
38
39
40
41
42
43
44
45
46
47
plr = game:GetService('Players').LocalPlayer
function announce(text)
game.StarterGui:SetCore("SendNotification", {
Title = "SeanUtilities";
Text = text;
Duration = 10;
})
end
announce("FKMacro has loaded, Keybind: ".. _G.Keybind)
announce("Executing twice breaks the script!!")
down = false
function onButton1Down(mouse)
down = true
while down do
if not down then break end
local char = plr.Character
char.HumanoidRootPart.Velocity = char.HumanoidRootPart.CFrame.lookVector * 140
wait()
end
end
function onButton1Up(mouse)
down = false
end
function onSelected(mouse)
mouse.KeyDown:connect(function(k) if k:lower()==_G.Keybind then onButton1Down(mouse)end end)
mouse.KeyUp:connect(function(k) if k:lower()==_G.Keybind then onButton1Up(mouse)end end)
end
onSelected(game.Players.LocalPlayer:GetMouse())