-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdance.lua
More file actions
88 lines (79 loc) · 3.3 KB
/
dance.lua
File metadata and controls
88 lines (79 loc) · 3.3 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
-- if it not work change placeid = 16033173781
-- keybind - C [god macro and hard to control)
-- keybind - X (normal first person macro easy to control)
-- keybind - Z (auto macro it easy to escape)
if game.PlaceId == 2788229376 then
if getgenv().L_15 == true then
game.StarterGui:SetCore("SendNotification", {
Title = "Speed Glitch",
Text = "Already Executed"
})
return
end
getgenv().L_15 = true -- don't change me
getgenv().Notification = true
getgenv().AutoMacro = true
getgenv().Macro = true
getgenv().AutoMacroKey = Enum.KeyCode.Z
getgenv().MacroKey = Enum.KeyCode.X
getgenv().MacroMode = "Mouse" -- Keyboard, Mouse
getgenv().GodMacro = true
getgenv().GodMacroKey = Enum.KeyCode.C
getgenv().GodMacroAuto = false
local function SendNotification(title, text)
if getgenv().Notification then
game.StarterGui:SetCore("SendNotification", {
Title = title,
Text = text
})
end
end
local function PerformMacro(macroName, macroToggle, macroKey, macroMode, macroFunc)
if getgenv()[macroName] == true then
game:GetService("UserInputService").InputBegan:Connect(function(input, chatting)
if input.UserInputType == Enum.UserInputType.Keyboard and not chatting then
if input.KeyCode == macroKey then
if not getgenv()[macroToggle] then
SendNotification(macroName, macroName .. ": On")
getgenv()[macroToggle] = true
spawn(macroFunc)
else
SendNotification(macroName, macroName .. ": Off")
getgenv()[macroToggle] = false
end
end
end
end)
end
end
local function PerformAutoMacro()
while getgenv().AutoMacro do
wait()
game:GetService("VirtualInputManager"):SendKeyEvent(true, "S", false, game)
end
end
local function PerformRegularMacro()
while getgenv().Macro do
wait()
game:GetService("VirtualInputManager"):SendKeyEvent(true, "I", false, game)
wait()
game:GetService("VirtualInputManager"):SendKeyEvent(true, "O", false, game)
end
end
local function PerformGodMacro()
while getgenv().GodMacro do
wait()
game:GetService("VirtualInputManager"):SendKeyEvent(true, "I", false, game)
wait()
game:GetService("VirtualInputManager"):SendKeyEvent(true, "O", false, game)
end
end
PerformMacro("AutoMacro", "AutoMacroToggle", getgenv().AutoMacroKey, getgenv().MacroMode, PerformAutoMacro)
PerformMacro("Macro", "MacroToggle", getgenv().MacroKey, getgenv().MacroMode, PerformRegularMacro)
PerformMacro("GodMacro", "GodMacroToggle", getgenv().GodMacroKey, getgenv().MacroMode, PerformGodMacro)
if getgenv().GodMacroAuto then
game:service'Players'.LocalPlayer.Character:findFirstChildOfClass'Humanoid'.Running:Connect(function()
Animation:Stop()
end)
end
end