This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Keystrokes.lua
192 lines (172 loc) · 6.07 KB
/
Keystrokes.lua
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
-- Gui to Lua
-- Version: 3.2
-- Instances:
local Keystrokes = Instance.new("ScreenGui")
local Main = Instance.new("Frame")
local W = Instance.new("TextLabel")
local S = Instance.new("TextLabel")
local A = Instance.new("TextLabel")
local D = Instance.new("TextLabel")
local Space = Instance.new("TextLabel")
local MouseButton1 = Instance.new("TextLabel")
local MouseButton2 = Instance.new("TextLabel")
local CPS = Instance.new("TextLabel")
local FPS = Instance.new("TextLabel")
if syn and syn.protect_gui then
syn.protect_gui(Keystrokes)
end
--Properties:
Keystrokes.Name = "Keystrokes"
Keystrokes.Parent = (gethui and gethui()) or (get_hidden_ui and get_hidden_ui()) or game.CoreGui
Keystrokes.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
Main.Name = "Main"
Main.Parent = Keystrokes
Main.Active = true
Main.AnchorPoint = Vector2.new(0.5, 0.5)
Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Main.BackgroundTransparency = 1.000
Main.BorderSizePixel = 0
Main.Position = UDim2.new(0.5, 0, 0.5, 0)
Main.Size = UDim2.new(0, 110, 0, 207)
W.Name = "W"
W.Parent = Main
W.AnchorPoint = Vector2.new(0.5, 0)
W.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
W.BackgroundTransparency = 0.600
W.BorderSizePixel = 0
W.Position = UDim2.new(0.5, 0, 0, 0)
W.Size = UDim2.new(0, 34, 0, 35)
W.Font = Enum.Font.Gotham
W.Text = "W"
W.TextColor3 = Color3.fromRGB(255, 255, 255)
W.TextSize = 16.000
S.Name = "S"
S.Parent = Main
S.AnchorPoint = Vector2.new(0.5, 0)
S.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
S.BackgroundTransparency = 0.600
S.BorderSizePixel = 0
S.Position = UDim2.new(0.5, 0, 0, 39)
S.Size = UDim2.new(0, 34, 0, 35)
S.Font = Enum.Font.Gotham
S.Text = "S"
S.TextColor3 = Color3.fromRGB(255, 255, 255)
S.TextSize = 16.000
A.Name = "A"
A.Parent = Main
A.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
A.BackgroundTransparency = 0.600
A.BorderSizePixel = 0
A.Position = UDim2.new(0, 0, 0, 39)
A.Size = UDim2.new(0, 34, 0, 35)
A.Font = Enum.Font.Gotham
A.Text = "A"
A.TextColor3 = Color3.fromRGB(255, 255, 255)
A.TextSize = 16.000
D.Name = "D"
D.Parent = Main
D.AnchorPoint = Vector2.new(1, 0)
D.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
D.BackgroundTransparency = 0.600
D.BorderSizePixel = 0
D.Position = UDim2.new(1, 0, 0, 39)
D.Size = UDim2.new(0, 34, 0, 35)
D.Font = Enum.Font.Gotham
D.Text = "D"
D.TextColor3 = Color3.fromRGB(255, 255, 255)
D.TextSize = 16.000
Space.Name = "Space"
Space.Parent = Main
Space.AnchorPoint = Vector2.new(0.5, 0)
Space.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Space.BackgroundTransparency = 0.600
Space.BorderSizePixel = 0
Space.Position = UDim2.new(0.5, 0, 0, 116)
Space.Size = UDim2.new(0, 110, 0, 25)
Space.Font = Enum.Font.Gotham
Space.Text = "────"
Space.TextColor3 = Color3.fromRGB(255, 255, 255)
Space.TextSize = 18.000
MouseButton1.Name = "MouseButton1"
MouseButton1.Parent = Main
MouseButton1.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
MouseButton1.BackgroundTransparency = 0.600
MouseButton1.BorderSizePixel = 0
MouseButton1.Position = UDim2.new(0, 0, 0, 78)
MouseButton1.Size = UDim2.new(0, 53, 0, 35)
MouseButton1.Font = Enum.Font.Gotham
MouseButton1.Text = "LMB"
MouseButton1.TextColor3 = Color3.fromRGB(255, 255, 255)
MouseButton1.TextSize = 16.000
MouseButton2.Name = "MouseButton2"
MouseButton2.Parent = Main
MouseButton2.AnchorPoint = Vector2.new(1, 0)
MouseButton2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
MouseButton2.BackgroundTransparency = 0.600
MouseButton2.BorderSizePixel = 0
MouseButton2.Position = UDim2.new(1, 0, 0, 78)
MouseButton2.Size = UDim2.new(0, 53, 0, 35)
MouseButton2.Font = Enum.Font.Gotham
MouseButton2.Text = "RMB"
MouseButton2.TextColor3 = Color3.fromRGB(255, 255, 255)
MouseButton2.TextSize = 16.000
CPS.Name = "CPS"
CPS.Parent = Main
CPS.AnchorPoint = Vector2.new(0.5, 0)
CPS.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
CPS.BackgroundTransparency = 0.600
CPS.BorderSizePixel = 0
CPS.Position = UDim2.new(0.5, 0, 0, 144)
CPS.Size = UDim2.new(0, 110, 0, 25)
CPS.Font = Enum.Font.Gotham
CPS.Text = "0 | 0 CPS"
CPS.TextColor3 = Color3.fromRGB(255, 255, 255)
CPS.TextSize = 16.000
FPS.Name = "FPS"
FPS.Parent = Main
FPS.AnchorPoint = Vector2.new(0.5, 0)
FPS.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
FPS.BackgroundTransparency = 0.600
FPS.BorderSizePixel = 0
FPS.Position = UDim2.new(0.5, 0, 0, 172)
FPS.Size = UDim2.new(0, 110, 0, 25)
FPS.Font = Enum.Font.Gotham
FPS.Text = "0 FPS"
FPS.TextColor3 = Color3.fromRGB(255, 255, 255)
FPS.TextSize = 16.000
-- Scripts:
local function YAZCKSA_fake_script() -- Keystrokes.LocalScript
local script = Instance.new('LocalScript', Keystrokes)
local UIS = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")
local CPS,FPS = {['MouseButton1'] = 0,['MouseButton2'] = 0},0
script.Parent.Main.Draggable = true
UIS.InputBegan:Connect(function(i,gp)
local input = (i.UserInputType.Name == "Keyboard" and "KeyCode") or (i.KeyCode.Name == "Unknown" and "UserInputType")
if not gp and script.Parent.Main:FindFirstChild(i[input].Name) then
TweenService:Create(script.Parent.Main[i[input].Name],TweenInfo.new(0.15,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{BackgroundColor3 = Color3.fromRGB(255,255,255),TextColor3 = Color3.fromRGB(0,0,0)}):Play()
if i.UserInputType.Name == "MouseButton1" or i.UserInputType.Name == "MouseButton2" then
CPS[i.UserInputType.Name] += 1
wait(1)
CPS[i.UserInputType.Name] -= 1
end
end
end)
UIS.InputEnded:Connect(function(i,gp)
local input = (i.UserInputType.Name == "Keyboard" and "KeyCode") or (i.KeyCode.Name == "Unknown" and "UserInputType")
if not gp and script.Parent.Main:FindFirstChild(i[input].Name) then
TweenService:Create(script.Parent.Main[i[input].Name],TweenInfo.new(0.15,Enum.EasingStyle.Sine,Enum.EasingDirection.In),{BackgroundColor3 = Color3.fromRGB(0,0,0),TextColor3 = Color3.fromRGB(255,255,255)}):Play()
end
end)
RunService.RenderStepped:Connect(function()
spawn(function()
FPS += 1
wait(1)
FPS -= 1
end)
script.Parent.Main.CPS.Text = CPS["MouseButton1"].." | "..CPS["MouseButton2"].." CPS"
script.Parent.Main.FPS.Text = FPS.." FPS"
end)
end
coroutine.wrap(YAZCKSA_fake_script)()