This repository has been archived by the owner on Sep 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Aimbot V2 GUI.lua
298 lines (243 loc) · 7.27 KB
/
Aimbot V2 GUI.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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
--// Cache
local loadstring, game, getgenv, setclipboard = loadstring, game, getgenv, setclipboard
--// Loaded check
if getgenv().Aimbot then return end
--// Load Aimbot V2 (Raw)
loadstring(game:HttpGet("https://raw.githubusercontent.com/Exunys/Aimbot-V2/main/Resources/Scripts/Raw%20Main.lua"))()
--// Variables
local Aimbot = getgenv().Aimbot
local Settings, FOVSettings, Functions = Aimbot.Settings, Aimbot.FOVSettings, Aimbot.Functions
local Library = loadstring(game:GetObjects("rbxassetid://7657867786")[1].Source)() -- Pepsi's UI Library
local Parts = {"Head", "HumanoidRootPart", "Torso", "Left Arm", "Right Arm", "Left Leg", "Right Leg", "LeftHand", "RightHand", "LeftLowerArm", "RightLowerArm", "LeftUpperArm", "RightUpperArm", "LeftFoot", "LeftLowerLeg", "UpperTorso", "LeftUpperLeg", "RightFoot", "RightLowerLeg", "LowerTorso", "RightUpperLeg"}
--// Frame
Library.UnloadCallback = Functions.Exit
local MainFrame = Library:CreateWindow({
Name = "Aimbot V2",
Themeable = {
Image = "7059346386",
Info = "Made by Exunys\nPowered by Pepsi's UI Library",
Credit = false
},
Background = "",
Theme = [[{"__Designer.Colors.section":"ADC7FF","__Designer.Colors.topGradient":"1B242F","__Designer.Settings.ShowHideKey":"Enum.KeyCode.RightShift","__Designer.Colors.otherElementText":"54637D","__Designer.Colors.hoveredOptionBottom":"38667D","__Designer.Background.ImageAssetID":"","__Designer.Colors.unhoveredOptionTop":"407495","__Designer.Colors.innerBorder":"2C4168","__Designer.Colors.unselectedOption":"4E6EA0","__Designer.Background.UseBackgroundImage":true,"__Designer.Files.WorkspaceFile":"Aimbot V2","__Designer.Colors.main":"23A0FF","__Designer.Colors.outerBorder":"162943","__Designer.Background.ImageColor":"FFFFFF","__Designer.Colors.tabText":"C9DFF1","__Designer.Colors.elementBorder":"111D26","__Designer.Colors.sectionBackground":"0E141C","__Designer.Colors.selectedOption":"558AC2","__Designer.Colors.background":"11182A","__Designer.Colors.bottomGradient":"202B42","__Designer.Background.ImageTransparency":95,"__Designer.Colors.hoveredOptionTop":"4885A0","__Designer.Colors.elementText":"7692B8","__Designer.Colors.unhoveredOptionBottom":"5471C4"}]]
})
--// Tabs
local SettingsTab = MainFrame:CreateTab({
Name = "Settings"
})
local FOVSettingsTab = MainFrame:CreateTab({
Name = "FOV Settings"
})
local FunctionsTab = MainFrame:CreateTab({
Name = "Functions"
})
--// Settings - Sections
local Values = SettingsTab:CreateSection({
Name = "Values"
})
local Checks = SettingsTab:CreateSection({
Name = "Checks"
})
local ThirdPerson = SettingsTab:CreateSection({
Name = "Third Person"
})
--// FOV Settings - Sections
local FOV_Values = FOVSettingsTab:CreateSection({
Name = "Values"
})
local FOV_Appearance = FOVSettingsTab:CreateSection({
Name = "Appearance"
})
--// Functions - Sections
local FunctionsSection = FunctionsTab:CreateSection({
Name = "Functions"
})
--// Settings / Values
Values:AddToggle({
Name = "Enabled",
Value = Settings.Enabled,
Callback = function(New, Old)
Settings.Enabled = New
end
}).Default = Settings.Enabled
Values:AddToggle({
Name = "Toggle",
Value = Settings.Toggle,
Callback = function(New, Old)
Settings.Toggle = New
end
}).Default = Settings.Toggle
Settings.LockPart = Parts[1]; Values:AddDropdown({
Name = "Lock Part",
Value = Parts[1],
Callback = function(New, Old)
Settings.LockPart = New
end,
List = Parts,
Nothing = "Head"
}).Default = Parts[1]
Values:AddTextbox({ -- Using a Textbox instead of a Keybind because the UI Library doesn't support Mouse inputs like Left Click / Right Click...
Name = "Hotkey",
Value = Settings.TriggerKey,
Callback = function(New, Old)
Settings.TriggerKey = New
end
}).Default = Settings.TriggerKey
--[[
Values:AddKeybind({
Name = "Hotkey",
Value = Settings.TriggerKey,
Callback = function(New, Old)
Settings.TriggerKey = stringmatch(tostring(New), "Enum%.[UserInputType]*[KeyCode]*%.(.+)")
end,
}).Default = Settings.TriggerKey
]]
Values:AddSlider({
Name = "Sensitivity",
Value = Settings.Sensitivity,
Callback = function(New, Old)
Settings.Sensitivity = New
end,
Min = 0,
Max = 1,
Decimals = 2
}).Default = Settings.Sensitivity
--// Settings / Checks
Checks:AddToggle({
Name = "Team Check",
Value = Settings.TeamCheck,
Callback = function(New, Old)
Settings.TeamCheck = New
end
}).Default = Settings.TeamCheck
Checks:AddToggle({
Name = "Wall Check",
Value = Settings.WallCheck,
Callback = function(New, Old)
Settings.WallCheck = New
end
}).Default = Settings.WallCheck
Checks:AddToggle({
Name = "Alive Check",
Value = Settings.AliveCheck,
Callback = function(New, Old)
Settings.AliveCheck = New
end
}).Default = Settings.AliveCheck
--// Settings / ThirdPerson
ThirdPerson:AddToggle({
Name = "Enable Third Person",
Value = Settings.ThirdPerson,
Callback = function(New, Old)
Settings.ThirdPerson = New
end
}).Default = Settings.ThirdPerson
ThirdPerson:AddSlider({
Name = "Sensitivity",
Value = Settings.ThirdPersonSensitivity,
Callback = function(New, Old)
Settings.ThirdPersonSensitivity = New
end,
Min = 0.1,
Max = 5,
Decimals = 1
}).Default = Settings.ThirdPersonSensitivity
--// FOV Settings / Values
FOV_Values:AddToggle({
Name = "Enabled",
Value = FOVSettings.Enabled,
Callback = function(New, Old)
FOVSettings.Enabled = New
end
}).Default = FOVSettings.Enabled
FOV_Values:AddToggle({
Name = "Visible",
Value = FOVSettings.Visible,
Callback = function(New, Old)
FOVSettings.Visible = New
end
}).Default = FOVSettings.Visible
FOV_Values:AddSlider({
Name = "Amount",
Value = FOVSettings.Amount,
Callback = function(New, Old)
FOVSettings.Amount = New
end,
Min = 10,
Max = 300
}).Default = FOVSettings.Amount
--// FOV Settings / Appearance
FOV_Appearance:AddToggle({
Name = "Filled",
Value = FOVSettings.Filled,
Callback = function(New, Old)
FOVSettings.Filled = New
end
}).Default = FOVSettings.Filled
FOV_Appearance:AddSlider({
Name = "Transparency",
Value = FOVSettings.Transparency,
Callback = function(New, Old)
FOVSettings.Transparency = New
end,
Min = 0,
Max = 1,
Decimal = 1
}).Default = FOVSettings.Transparency
FOV_Appearance:AddSlider({
Name = "Sides",
Value = FOVSettings.Sides,
Callback = function(New, Old)
FOVSettings.Sides = New
end,
Min = 3,
Max = 60
}).Default = FOVSettings.Sides
FOV_Appearance:AddSlider({
Name = "Thickness",
Value = FOVSettings.Thickness,
Callback = function(New, Old)
FOVSettings.Thickness = New
end,
Min = 1,
Max = 50
}).Default = FOVSettings.Thickness
FOV_Appearance:AddColorpicker({
Name = "Color",
Value = FOVSettings.Color,
Callback = function(New, Old)
FOVSettings.Color = New
end
}).Default = FOVSettings.Color
FOV_Appearance:AddColorpicker({
Name = "Locked Color",
Value = FOVSettings.LockedColor,
Callback = function(New, Old)
FOVSettings.LockedColor = New
end
}).Default = FOVSettings.LockedColor
--// Functions / Functions
FunctionsSection:AddButton({
Name = "Reset Settings",
Callback = function()
Functions.ResetSettings()
Library.ResetAll()
end
})
FunctionsSection:AddButton({
Name = "Restart",
Callback = Functions.Restart
})
FunctionsSection:AddButton({
Name = "Exit",
Callback = function()
Functions:Exit()
Library.Unload()
end
})
FunctionsSection:AddButton({
Name = "Copy Script Page",
Callback = function()
setclipboard("https://github.com/Exunys/Aimbot-V2")
end
})