· 6 years ago · Dec 25, 2019, 06:30 PM
1wait() -- Bit of time for my slow ass computer.
2local players = game:GetService("Players")
3local plr,char,hum = players.LocalPlayer,nil,nil
4local cam = workspace.CurrentCamera
5local playerGui = plr:WaitForChild("PlayerGui")
6local uis = game:GetService("UserInputService")
7local mouse = plr:GetMouse()
8
9local cheat_key = (game:GetService("RunService"):IsStudio() and "Cheat") or tostring(math.random())
10local root = (game:GetService("RunService"):IsStudio() and playerGui) or game:GetService("CoreGui")
11
12local function Update_Character()
13 repeat char = plr.Character wait() until char
14 hum = plr.Character:WaitForChild("Humanoid")
15end
16Update_Character()
17plr.CharacterAdded:Connect(Update_Character)
18
19local function Character_Exists() -- Check if the character exists.
20 if plr.Character then
21 return true
22 end
23 return false
24end
25local function CreateInstance(cls,props)
26 local inst = Instance.new(cls)
27 for i,v in pairs(props) do
28 inst[i] = v
29 end
30 return inst
31end
32
33local function Create_UI() -- Create the user interface.
34 if playerGui:FindFirstChild(cheat_key) then
35 return {
36 playerGui:FindFirstChild(cheat_key).Main,
37 playerGui:FindFirstChild(cheat_key).Misc
38 }
39 else
40 local function Generate_UI()
41local Cheat = Instance.new("ScreenGui")
42local Main = Instance.new("Frame")
43local TabSelection = Instance.new("Frame")
44local Aimbot_Button = Instance.new("ImageButton")
45local Text = Instance.new("TextLabel")
46local Visuals_Button = Instance.new("ImageButton")
47local Text_2 = Instance.new("TextLabel")
48local Tabs = Instance.new("ImageLabel")
49local Aimbot_Tab = Instance.new("Frame")
50local Aimbot = Instance.new("Frame")
51local Title = Instance.new("TextLabel")
52local Active = Instance.new("Frame")
53local Button = Instance.new("TextButton")
54local Text_3 = Instance.new("TextLabel")
55local BindExe = Instance.new("Frame")
56local Text_4 = Instance.new("TextLabel")
57local Input = Instance.new("TextBox")
58local FOV = Instance.new("Frame")
59local Title_2 = Instance.new("TextLabel")
60local Size = Instance.new("Frame")
61local Text_5 = Instance.new("TextLabel")
62local Input_2 = Instance.new("TextBox")
63local Transparency = Instance.new("Frame")
64local Text_6 = Instance.new("TextLabel")
65local Input_3 = Instance.new("TextBox")
66local SilentAim = Instance.new("Frame")
67local Title_3 = Instance.new("TextLabel")
68local Active_2 = Instance.new("Frame")
69local Button_2 = Instance.new("TextButton")
70local Text_7 = Instance.new("TextLabel")
71local TriggerBot = Instance.new("Frame")
72local Title_4 = Instance.new("TextLabel")
73local Active_3 = Instance.new("Frame")
74local Button_3 = Instance.new("TextButton")
75local Text_8 = Instance.new("TextLabel")
76local Options = Instance.new("Frame")
77local Title_5 = Instance.new("TextLabel")
78local Target = Instance.new("Frame")
79local Text_9 = Instance.new("TextLabel")
80local Input_4 = Instance.new("TextBox")
81local Visuals_Tab = Instance.new("Frame")
82local Chams = Instance.new("Frame")
83local Title_6 = Instance.new("TextLabel")
84local Active_4 = Instance.new("Frame")
85local Button_4 = Instance.new("TextButton")
86local Text_10 = Instance.new("TextLabel")
87local Transparency_2 = Instance.new("Frame")
88local Text_11 = Instance.new("TextLabel")
89local Input_5 = Instance.new("TextBox")
90local ESP = Instance.new("Frame")
91local Title_7 = Instance.new("TextLabel")
92local Active_5 = Instance.new("Frame")
93local Button_5 = Instance.new("TextButton")
94local Text_12 = Instance.new("TextLabel")
95local Modal = Instance.new("TextButton")
96local Title_8 = Instance.new("Frame")
97local Name = Instance.new("TextLabel")
98local ToggleMenu = Instance.new("TextButton")
99local Misc = Instance.new("Frame")
100local FOV_2 = Instance.new("ImageLabel")
101local AimTarget = Instance.new("TextLabel")
102
103--Properties:
104
105Cheat.Name = "Cheat"
106Cheat.Parent = root
107Cheat.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
108
109Main.Name = "Main"
110Main.Parent = Cheat
111Main.AnchorPoint = Vector2.new(0.5, 0.5)
112Main.BackgroundColor3 = Color3.fromRGB(62, 62, 62)
113Main.BorderColor3 = Color3.fromRGB(182, 182, 182)
114Main.Position = UDim2.new(0.5, 0, 0.5, 0)
115Main.Size = UDim2.new(0, 670, 0, 410)
116
117TabSelection.Name = "TabSelection"
118TabSelection.Parent = Main
119TabSelection.AnchorPoint = Vector2.new(0.5, 0)
120TabSelection.BackgroundColor3 = Color3.fromRGB(37, 37, 37)
121TabSelection.BorderColor3 = Color3.fromRGB(94, 94, 94)
122TabSelection.Position = UDim2.new(0.5, 0, 0, 25)
123TabSelection.Size = UDim2.new(0, 660, 0, 65)
124
125Aimbot_Button.Name = "Aimbot_Button"
126Aimbot_Button.Parent = TabSelection
127Aimbot_Button.BackgroundColor3 = Color3.fromRGB(71, 71, 71)
128Aimbot_Button.BackgroundTransparency = 0.900
129Aimbot_Button.BorderColor3 = Color3.fromRGB(67, 67, 67)
130Aimbot_Button.Size = UDim2.new(0, 110, 1, 0)
131Aimbot_Button.ZIndex = 2
132Aimbot_Button.ImageTransparency = 1.000
133
134Text.Name = "Text"
135Text.Parent = Aimbot_Button
136Text.AnchorPoint = Vector2.new(0.5, 0.5)
137Text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
138Text.BackgroundTransparency = 1.000
139Text.BorderSizePixel = 0
140Text.Position = UDim2.new(0.5, 0, 0.5, 0)
141Text.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
142Text.Font = Enum.Font.Code
143Text.Text = "Aimbot"
144Text.TextColor3 = Color3.fromRGB(157, 157, 157)
145Text.TextSize = 22.000
146Text.TextStrokeTransparency = 0.750
147
148Visuals_Button.Name = "Visuals_Button"
149Visuals_Button.Parent = TabSelection
150Visuals_Button.BackgroundColor3 = Color3.fromRGB(71, 71, 71)
151Visuals_Button.BackgroundTransparency = 0.900
152Visuals_Button.BorderColor3 = Color3.fromRGB(67, 67, 67)
153Visuals_Button.Position = UDim2.new(0, 110, 0, 0)
154Visuals_Button.Size = UDim2.new(0, 110, 1, 0)
155Visuals_Button.ZIndex = 2
156Visuals_Button.ImageTransparency = 1.000
157
158Text_2.Name = "Text"
159Text_2.Parent = Visuals_Button
160Text_2.AnchorPoint = Vector2.new(0.5, 0.5)
161Text_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
162Text_2.BackgroundTransparency = 1.000
163Text_2.BorderSizePixel = 0
164Text_2.Position = UDim2.new(0.5, 0, 0.5, 0)
165Text_2.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
166Text_2.Font = Enum.Font.Code
167Text_2.Text = "Visuals"
168Text_2.TextColor3 = Color3.fromRGB(157, 157, 157)
169Text_2.TextSize = 22.000
170Text_2.TextStrokeTransparency = 0.750
171
172Tabs.Name = "Tabs"
173Tabs.Parent = Main
174Tabs.AnchorPoint = Vector2.new(0.5, 0)
175Tabs.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
176Tabs.BorderSizePixel = 0
177Tabs.Position = UDim2.new(0.5, 0, 0, 90)
178Tabs.Size = UDim2.new(0, 660, 0, 316)
179Tabs.Image = "http://www.roblox.com/asset/?id=4534112392"
180Tabs.ImageColor3 = Color3.fromRGB(188, 188, 188)
181Tabs.ScaleType = Enum.ScaleType.Tile
182Tabs.TileSize = UDim2.new(0.300000012, 0, 0.600000024, 0)
183
184Aimbot_Tab.Name = "Aimbot_Tab"
185Aimbot_Tab.Parent = Tabs
186Aimbot_Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
187Aimbot_Tab.BackgroundTransparency = 1.000
188Aimbot_Tab.BorderSizePixel = 0
189Aimbot_Tab.Size = UDim2.new(1, 0, 1, 0)
190
191Aimbot.Name = "Aimbot"
192Aimbot.Parent = Aimbot_Tab
193Aimbot.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
194Aimbot.BackgroundTransparency = 0.200
195Aimbot.BorderColor3 = Color3.fromRGB(0, 0, 0)
196Aimbot.BorderSizePixel = 0
197Aimbot.Position = UDim2.new(0, 15, 0, 15)
198Aimbot.Size = UDim2.new(0, 200, 0, 75)
199
200Title.Name = "Title"
201Title.Parent = Aimbot
202Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
203Title.BorderSizePixel = 0
204Title.Position = UDim2.new(0, 20, 0, 0)
205Title.Font = Enum.Font.SourceSans
206Title.Text = "Aim assistance"
207Title.TextColor3 = Color3.fromRGB(203, 203, 203)
208Title.TextSize = 14.000
209Title.TextXAlignment = Enum.TextXAlignment.Left
210
211Active.Name = "Active"
212Active.Parent = Aimbot
213Active.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
214Active.BackgroundTransparency = 1.000
215Active.Position = UDim2.new(0, 12, 0, 14)
216Active.Size = UDim2.new(0, 0, 0, 15)
217
218Button.Name = "Button"
219Button.Parent = Active
220Button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
221Button.BorderSizePixel = 0
222Button.Size = UDim2.new(0, 12, 0, 12)
223Button.Font = Enum.Font.SourceSans
224Button.Text = ""
225Button.TextColor3 = Color3.fromRGB(0, 0, 0)
226Button.TextSize = 14.000
227
228Text_3.Name = "Text"
229Text_3.Parent = Active
230Text_3.AnchorPoint = Vector2.new(0.5, 0)
231Text_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
232Text_3.BorderSizePixel = 0
233Text_3.Position = UDim2.new(0, 18, 0.5, -2)
234Text_3.Font = Enum.Font.SourceSans
235Text_3.Text = "Active"
236Text_3.TextColor3 = Color3.fromRGB(203, 203, 203)
237Text_3.TextSize = 14.000
238Text_3.TextXAlignment = Enum.TextXAlignment.Left
239
240BindExe.Name = "BindExe"
241BindExe.Parent = Aimbot
242BindExe.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
243BindExe.BackgroundTransparency = 1.000
244BindExe.Position = UDim2.new(0, 12, 0, 50)
245BindExe.Size = UDim2.new(0, 0, 0, 15)
246
247Text_4.Name = "Text"
248Text_4.Parent = BindExe
249Text_4.AnchorPoint = Vector2.new(0.5, 0)
250Text_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
251Text_4.BorderSizePixel = 0
252Text_4.Position = UDim2.new(0, 0, 0.5, -17)
253Text_4.Font = Enum.Font.SourceSans
254Text_4.Text = "Execution key"
255Text_4.TextColor3 = Color3.fromRGB(203, 203, 203)
256Text_4.TextSize = 14.000
257Text_4.TextXAlignment = Enum.TextXAlignment.Left
258
259Input.Name = "Input"
260Input.Parent = BindExe
261Input.BackgroundColor3 = Color3.fromRGB(71, 71, 71)
262Input.BorderSizePixel = 0
263Input.Size = UDim2.new(0, 125, 0, 13)
264Input.Font = Enum.Font.SourceSans
265Input.PlaceholderColor3 = Color3.fromRGB(178, 178, 178)
266Input.Text = ""
267Input.TextColor3 = Color3.fromRGB(203, 203, 203)
268Input.TextSize = 14.000
269Input.TextWrapped = true
270
271FOV.Name = "FOV"
272FOV.Parent = Aimbot_Tab
273FOV.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
274FOV.BackgroundTransparency = 0.200
275FOV.BorderColor3 = Color3.fromRGB(0, 0, 0)
276FOV.BorderSizePixel = 0
277FOV.Position = UDim2.new(0, 15, 0, 100)
278FOV.Size = UDim2.new(0, 200, 0, 115)
279
280Title_2.Name = "Title"
281Title_2.Parent = FOV
282Title_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
283Title_2.BorderSizePixel = 0
284Title_2.Position = UDim2.new(0, 20, 0, 0)
285Title_2.Font = Enum.Font.SourceSans
286Title_2.Text = "Field of view"
287Title_2.TextColor3 = Color3.fromRGB(203, 203, 203)
288Title_2.TextSize = 14.000
289Title_2.TextXAlignment = Enum.TextXAlignment.Left
290
291Size.Name = "Size"
292Size.Parent = FOV
293Size.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
294Size.BackgroundTransparency = 1.000
295Size.Position = UDim2.new(0, 12, 0, 30)
296Size.Size = UDim2.new(0, 0, 0, 15)
297
298Text_5.Name = "Text"
299Text_5.Parent = Size
300Text_5.AnchorPoint = Vector2.new(0.5, 0)
301Text_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
302Text_5.BorderSizePixel = 0
303Text_5.Position = UDim2.new(0, 0, 0.5, -17)
304Text_5.Font = Enum.Font.SourceSans
305Text_5.Text = "Size"
306Text_5.TextColor3 = Color3.fromRGB(203, 203, 203)
307Text_5.TextSize = 14.000
308Text_5.TextXAlignment = Enum.TextXAlignment.Left
309
310Input_2.Name = "Input"
311Input_2.Parent = Size
312Input_2.BackgroundColor3 = Color3.fromRGB(71, 71, 71)
313Input_2.BorderSizePixel = 0
314Input_2.Size = UDim2.new(0, 125, 0, 13)
315Input_2.Font = Enum.Font.SourceSans
316Input_2.PlaceholderColor3 = Color3.fromRGB(178, 178, 178)
317Input_2.Text = ""
318Input_2.TextColor3 = Color3.fromRGB(203, 203, 203)
319Input_2.TextSize = 14.000
320Input_2.TextWrapped = true
321
322Transparency.Name = "Transparency"
323Transparency.Parent = FOV
324Transparency.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
325Transparency.BackgroundTransparency = 1.000
326Transparency.Position = UDim2.new(0, 12, 0, 70)
327Transparency.Size = UDim2.new(0, 0, 0, 15)
328
329Text_6.Name = "Text"
330Text_6.Parent = Transparency
331Text_6.AnchorPoint = Vector2.new(0.5, 0)
332Text_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
333Text_6.BorderSizePixel = 0
334Text_6.Position = UDim2.new(0, 0, 0.5, -17)
335Text_6.Font = Enum.Font.SourceSans
336Text_6.Text = "Transparency"
337Text_6.TextColor3 = Color3.fromRGB(203, 203, 203)
338Text_6.TextSize = 14.000
339Text_6.TextXAlignment = Enum.TextXAlignment.Left
340
341Input_3.Name = "Input"
342Input_3.Parent = Transparency
343Input_3.BackgroundColor3 = Color3.fromRGB(71, 71, 71)
344Input_3.BorderSizePixel = 0
345Input_3.Size = UDim2.new(0, 125, 0, 13)
346Input_3.Font = Enum.Font.SourceSans
347Input_3.PlaceholderColor3 = Color3.fromRGB(178, 178, 178)
348Input_3.Text = ""
349Input_3.TextColor3 = Color3.fromRGB(203, 203, 203)
350Input_3.TextSize = 14.000
351Input_3.TextWrapped = true
352
353SilentAim.Name = "SilentAim"
354SilentAim.Parent = Aimbot_Tab
355SilentAim.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
356SilentAim.BackgroundTransparency = 0.200
357SilentAim.BorderColor3 = Color3.fromRGB(0, 0, 0)
358SilentAim.BorderSizePixel = 0
359SilentAim.Position = UDim2.new(0, 15, 0, 230)
360SilentAim.Size = UDim2.new(0, 200, 0, 40)
361
362Title_3.Name = "Title"
363Title_3.Parent = SilentAim
364Title_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
365Title_3.BorderSizePixel = 0
366Title_3.Position = UDim2.new(0, 20, 0, 0)
367Title_3.Font = Enum.Font.SourceSans
368Title_3.Text = "Silent aim"
369Title_3.TextColor3 = Color3.fromRGB(203, 203, 203)
370Title_3.TextSize = 14.000
371Title_3.TextXAlignment = Enum.TextXAlignment.Left
372
373Active_2.Name = "Active"
374Active_2.Parent = SilentAim
375Active_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
376Active_2.BackgroundTransparency = 1.000
377Active_2.Position = UDim2.new(0, 12, 0, 14)
378Active_2.Size = UDim2.new(0, 0, 0, 15)
379
380Button_2.Name = "Button"
381Button_2.Parent = Active_2
382Button_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
383Button_2.BorderSizePixel = 0
384Button_2.Size = UDim2.new(0, 12, 0, 12)
385Button_2.Font = Enum.Font.SourceSans
386Button_2.Text = ""
387Button_2.TextColor3 = Color3.fromRGB(0, 0, 0)
388Button_2.TextSize = 14.000
389
390Text_7.Name = "Text"
391Text_7.Parent = Active_2
392Text_7.AnchorPoint = Vector2.new(0.5, 0)
393Text_7.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
394Text_7.BorderSizePixel = 0
395Text_7.Position = UDim2.new(0, 18, 0.5, -2)
396Text_7.Font = Enum.Font.SourceSans
397Text_7.Text = "Active"
398Text_7.TextColor3 = Color3.fromRGB(203, 203, 203)
399Text_7.TextSize = 14.000
400Text_7.TextXAlignment = Enum.TextXAlignment.Left
401
402TriggerBot.Name = "TriggerBot"
403TriggerBot.Parent = Aimbot_Tab
404TriggerBot.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
405TriggerBot.BackgroundTransparency = 0.200
406TriggerBot.BorderColor3 = Color3.fromRGB(0, 0, 0)
407TriggerBot.BorderSizePixel = 0
408TriggerBot.Position = UDim2.new(0, 230, 0, 15)
409TriggerBot.Size = UDim2.new(0, 200, 0, 35)
410
411Title_4.Name = "Title"
412Title_4.Parent = TriggerBot
413Title_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
414Title_4.BorderSizePixel = 0
415Title_4.Position = UDim2.new(0, 20, 0, 0)
416Title_4.Font = Enum.Font.SourceSans
417Title_4.Text = "Trigger bot"
418Title_4.TextColor3 = Color3.fromRGB(203, 203, 203)
419Title_4.TextSize = 14.000
420Title_4.TextXAlignment = Enum.TextXAlignment.Left
421
422Active_3.Name = "Active"
423Active_3.Parent = TriggerBot
424Active_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
425Active_3.BackgroundTransparency = 1.000
426Active_3.Position = UDim2.new(0, 12, 0, 14)
427Active_3.Size = UDim2.new(0, 0, 0, 15)
428
429Button_3.Name = "Button"
430Button_3.Parent = Active_3
431Button_3.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
432Button_3.BorderSizePixel = 0
433Button_3.Size = UDim2.new(0, 12, 0, 12)
434Button_3.Font = Enum.Font.SourceSans
435Button_3.Text = ""
436Button_3.TextColor3 = Color3.fromRGB(0, 0, 0)
437Button_3.TextSize = 14.000
438
439Text_8.Name = "Text"
440Text_8.Parent = Active_3
441Text_8.AnchorPoint = Vector2.new(0.5, 0)
442Text_8.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
443Text_8.BorderSizePixel = 0
444Text_8.Position = UDim2.new(0, 18, 0.5, -2)
445Text_8.Font = Enum.Font.SourceSans
446Text_8.Text = "Active"
447Text_8.TextColor3 = Color3.fromRGB(203, 203, 203)
448Text_8.TextSize = 14.000
449Text_8.TextXAlignment = Enum.TextXAlignment.Left
450
451Options.Name = "Options"
452Options.Parent = Aimbot_Tab
453Options.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
454Options.BackgroundTransparency = 0.200
455Options.BorderColor3 = Color3.fromRGB(0, 0, 0)
456Options.BorderSizePixel = 0
457Options.Position = UDim2.new(0, 445, 0, 15)
458Options.Size = UDim2.new(0, 200, 0, 75)
459
460Title_5.Name = "Title"
461Title_5.Parent = Options
462Title_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
463Title_5.BorderSizePixel = 0
464Title_5.Position = UDim2.new(0, 20, 0, 0)
465Title_5.Font = Enum.Font.SourceSans
466Title_5.Text = "Options"
467Title_5.TextColor3 = Color3.fromRGB(203, 203, 203)
468Title_5.TextSize = 14.000
469Title_5.TextXAlignment = Enum.TextXAlignment.Left
470
471Target.Name = "Target"
472Target.Parent = Options
473Target.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
474Target.BackgroundTransparency = 1.000
475Target.Position = UDim2.new(0, 12, 0, 30)
476Target.Size = UDim2.new(0, 0, 0, 15)
477
478Text_9.Name = "Text"
479Text_9.Parent = Target
480Text_9.AnchorPoint = Vector2.new(0.5, 0)
481Text_9.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
482Text_9.BorderSizePixel = 0
483Text_9.Position = UDim2.new(0, 0, 0.5, -17)
484Text_9.Font = Enum.Font.SourceSans
485Text_9.Text = "Body target"
486Text_9.TextColor3 = Color3.fromRGB(203, 203, 203)
487Text_9.TextSize = 14.000
488Text_9.TextXAlignment = Enum.TextXAlignment.Left
489
490Input_4.Name = "Input"
491Input_4.Parent = Target
492Input_4.BackgroundColor3 = Color3.fromRGB(71, 71, 71)
493Input_4.BorderSizePixel = 0
494Input_4.Size = UDim2.new(0, 125, 0, 13)
495Input_4.Font = Enum.Font.SourceSans
496Input_4.PlaceholderColor3 = Color3.fromRGB(178, 178, 178)
497Input_4.Text = ""
498Input_4.TextColor3 = Color3.fromRGB(203, 203, 203)
499Input_4.TextSize = 14.000
500Input_4.TextWrapped = true
501
502Visuals_Tab.Name = "Visuals_Tab"
503Visuals_Tab.Parent = Tabs
504Visuals_Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
505Visuals_Tab.BackgroundTransparency = 1.000
506Visuals_Tab.BorderSizePixel = 0
507Visuals_Tab.Size = UDim2.new(1, 0, 1, 0)
508Visuals_Tab.Visible = false
509
510Chams.Name = "Chams"
511Chams.Parent = Visuals_Tab
512Chams.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
513Chams.BackgroundTransparency = 0.200
514Chams.BorderColor3 = Color3.fromRGB(0, 0, 0)
515Chams.BorderSizePixel = 0
516Chams.Position = UDim2.new(0, 15, 0, 15)
517Chams.Size = UDim2.new(0, 200, 0, 115)
518
519Title_6.Name = "Title"
520Title_6.Parent = Chams
521Title_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
522Title_6.BorderSizePixel = 0
523Title_6.Position = UDim2.new(0, 20, 0, 0)
524Title_6.Font = Enum.Font.SourceSans
525Title_6.Text = "Chams"
526Title_6.TextColor3 = Color3.fromRGB(203, 203, 203)
527Title_6.TextSize = 14.000
528Title_6.TextXAlignment = Enum.TextXAlignment.Left
529
530Active_4.Name = "Active"
531Active_4.Parent = Chams
532Active_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
533Active_4.BackgroundTransparency = 1.000
534Active_4.Position = UDim2.new(0, 12, 0, 14)
535Active_4.Size = UDim2.new(0, 0, 0, 15)
536
537Button_4.Name = "Button"
538Button_4.Parent = Active_4
539Button_4.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
540Button_4.BorderSizePixel = 0
541Button_4.Size = UDim2.new(0, 12, 0, 12)
542Button_4.Font = Enum.Font.SourceSans
543Button_4.Text = ""
544Button_4.TextColor3 = Color3.fromRGB(0, 0, 0)
545Button_4.TextSize = 14.000
546
547Text_10.Name = "Text"
548Text_10.Parent = Active_4
549Text_10.AnchorPoint = Vector2.new(0.5, 0)
550Text_10.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
551Text_10.BorderSizePixel = 0
552Text_10.Position = UDim2.new(0, 18, 0.5, -2)
553Text_10.Font = Enum.Font.SourceSans
554Text_10.Text = "Active"
555Text_10.TextColor3 = Color3.fromRGB(203, 203, 203)
556Text_10.TextSize = 14.000
557Text_10.TextXAlignment = Enum.TextXAlignment.Left
558
559Transparency_2.Name = "Transparency"
560Transparency_2.Parent = Chams
561Transparency_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
562Transparency_2.BackgroundTransparency = 1.000
563Transparency_2.Position = UDim2.new(0, 12, 0, 50)
564Transparency_2.Size = UDim2.new(0, 0, 0, 15)
565
566Text_11.Name = "Text"
567Text_11.Parent = Transparency_2
568Text_11.AnchorPoint = Vector2.new(0.5, 0)
569Text_11.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
570Text_11.BorderSizePixel = 0
571Text_11.Position = UDim2.new(0, 0, 0.5, -17)
572Text_11.Font = Enum.Font.SourceSans
573Text_11.Text = "Transparency"
574Text_11.TextColor3 = Color3.fromRGB(203, 203, 203)
575Text_11.TextSize = 14.000
576Text_11.TextXAlignment = Enum.TextXAlignment.Left
577
578Input_5.Name = "Input"
579Input_5.Parent = Transparency_2
580Input_5.BackgroundColor3 = Color3.fromRGB(71, 71, 71)
581Input_5.BorderSizePixel = 0
582Input_5.Size = UDim2.new(0, 125, 0, 13)
583Input_5.Font = Enum.Font.SourceSans
584Input_5.PlaceholderColor3 = Color3.fromRGB(178, 178, 178)
585Input_5.Text = ""
586Input_5.TextColor3 = Color3.fromRGB(203, 203, 203)
587Input_5.TextSize = 14.000
588Input_5.TextWrapped = true
589
590ESP.Name = "ESP"
591ESP.Parent = Visuals_Tab
592ESP.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
593ESP.BackgroundTransparency = 0.200
594ESP.BorderColor3 = Color3.fromRGB(0, 0, 0)
595ESP.BorderSizePixel = 0
596ESP.Position = UDim2.new(0, 15, 0, 145)
597ESP.Size = UDim2.new(0, 200, 0, 35)
598
599Title_7.Name = "Title"
600Title_7.Parent = ESP
601Title_7.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
602Title_7.BorderSizePixel = 0
603Title_7.Position = UDim2.new(0, 20, 0, 0)
604Title_7.Font = Enum.Font.SourceSans
605Title_7.Text = "ESP"
606Title_7.TextColor3 = Color3.fromRGB(203, 203, 203)
607Title_7.TextSize = 14.000
608Title_7.TextXAlignment = Enum.TextXAlignment.Left
609
610Active_5.Name = "Active"
611Active_5.Parent = ESP
612Active_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
613Active_5.BackgroundTransparency = 1.000
614Active_5.Position = UDim2.new(0, 12, 0, 14)
615Active_5.Size = UDim2.new(0, 0, 0, 15)
616
617Button_5.Name = "Button"
618Button_5.Parent = Active_5
619Button_5.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
620Button_5.BorderSizePixel = 0
621Button_5.Size = UDim2.new(0, 12, 0, 12)
622Button_5.Font = Enum.Font.SourceSans
623Button_5.Text = ""
624Button_5.TextColor3 = Color3.fromRGB(0, 0, 0)
625Button_5.TextSize = 14.000
626
627Text_12.Name = "Text"
628Text_12.Parent = Active_5
629Text_12.AnchorPoint = Vector2.new(0.5, 0)
630Text_12.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
631Text_12.BorderSizePixel = 0
632Text_12.Position = UDim2.new(0, 18, 0.5, -2)
633Text_12.Font = Enum.Font.SourceSans
634Text_12.Text = "Active"
635Text_12.TextColor3 = Color3.fromRGB(203, 203, 203)
636Text_12.TextSize = 14.000
637Text_12.TextXAlignment = Enum.TextXAlignment.Left
638
639Modal.Name = "Modal"
640Modal.Parent = Main
641Modal.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
642Modal.BackgroundTransparency = 1.000
643Modal.BorderSizePixel = 0
644Modal.Modal = true
645Modal.Font = Enum.Font.SourceSans
646Modal.Text = ""
647Modal.TextColor3 = Color3.fromRGB(0, 0, 0)
648Modal.TextSize = 14.000
649Modal.TextTransparency = 1.000
650
651Title_8.Name = "Title"
652Title_8.Parent = Main
653Title_8.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
654Title_8.BackgroundTransparency = 1.000
655Title_8.BorderSizePixel = 0
656Title_8.Size = UDim2.new(1, 0, 0, 25)
657
658Name.Name = "Name"
659Name.Parent = Title_8
660Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
661Name.BorderSizePixel = 0
662Name.Position = UDim2.new(0, 10, 0.5, 0)
663Name.Font = Enum.Font.SourceSans
664Name.Text = "The dalbayob annihilator [EARLY VERSION]"
665Name.TextColor3 = Color3.fromRGB(203, 203, 203)
666Name.TextSize = 18.000
667Name.TextStrokeTransparency = 0.900
668Name.TextXAlignment = Enum.TextXAlignment.Left
669
670ToggleMenu.Name = "ToggleMenu"
671ToggleMenu.Parent = Title_8
672ToggleMenu.BackgroundColor3 = Color3.fromRGB(106, 106, 106)
673ToggleMenu.BorderSizePixel = 0
674ToggleMenu.Position = UDim2.new(1, -40, 0, 2)
675ToggleMenu.Size = UDim2.new(0, 35, 0, 21)
676ToggleMenu.Font = Enum.Font.SourceSans
677ToggleMenu.Text = "X"
678ToggleMenu.TextColor3 = Color3.fromRGB(203, 203, 203)
679ToggleMenu.TextSize = 20.000
680
681Misc.Name = "Misc"
682Misc.Parent = Cheat
683Misc.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
684Misc.BackgroundTransparency = 1.000
685Misc.BorderSizePixel = 0
686Misc.Size = UDim2.new(1, 0, 1, 0)
687Misc.ZIndex = 0
688
689FOV_2.Name = "FOV"
690FOV_2.Parent = Misc
691FOV_2.AnchorPoint = Vector2.new(0.5, 0.5)
692FOV_2.BackgroundTransparency = 1.000
693FOV_2.Position = UDim2.new(0.5, 0, 0.5, 0)
694FOV_2.Size = UDim2.new(0, 100, 0, 100)
695FOV_2.Image = "rbxassetid://3260808247"
696FOV_2.ImageTransparency = 0.500
697
698AimTarget.Name = "AimTarget"
699AimTarget.Parent = Misc
700AimTarget.AnchorPoint = Vector2.new(0.5, 0)
701AimTarget.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
702AimTarget.BackgroundTransparency = 0.500
703AimTarget.BorderSizePixel = 0
704AimTarget.Position = UDim2.new(0.5, 0, 1, -140)
705AimTarget.Size = UDim2.new(0, 60, 0, 25)
706AimTarget.Visible = false
707AimTarget.Font = Enum.Font.Gotham
708AimTarget.TextColor3 = Color3.fromRGB(188, 188, 188)
709AimTarget.TextSize = 20.000
710AimTarget.TextStrokeTransparency = 0.500
711AimTarget.TextWrapped = true
712 return {Main,Misc}
713 end
714 return Generate_UI()
715 end
716end
717
718local New_UI = Create_UI()
719UI = New_UI[1]
720Misc = New_UI[2]
721local UI_TabSelection = UI.TabSelection
722local UI_Tabs = UI.Tabs
723
724local Button_Off_Color = Color3.fromRGB(0,0,0)
725local Button_On_Color = Color3.fromRGB(172,172,172)
726local function Bind_Button(button,SUBJECTS,func) -- Bind a button.
727 local function Update_Button()
728 button.Button.BackgroundColor3 = (SUBJECTS[1][SUBJECTS[2]] and Button_On_Color) or Button_Off_Color
729 end
730 Update_Button()
731 button.Button.MouseButton1Click:Connect(function()
732 SUBJECTS[1][SUBJECTS[2]] = not SUBJECTS[1][SUBJECTS[2]] -- Reverse the boolean.
733 Update_Button()
734 if func then func() end
735 end)
736end
737
738local function Bind_InputBox(input,SUBJECTS,inputType,func) -- Bind an input box. Input types are : "string","number","key"
739 input.Input.Text = (inputType == "key" and string.char(SUBJECTS[1][SUBJECTS[2]].Value):upper()) or SUBJECTS[1][SUBJECTS[2]]
740 local function input_IsValid(bool,customInputOverride)
741 if bool then
742 SUBJECTS[1][SUBJECTS[2]] = customInputOverride or input.Input.Text
743 if func then func() end
744 else
745 input.Input.Text = "Invalid"
746 end
747 end
748 input.Input.FocusLost:Connect(function()
749 if inputType == "string" then
750 input_IsValid(true)
751 elseif inputType == "number" then
752 if tonumber(input.Input.Text) then
753 input_IsValid(true)
754 else
755 input_IsValid(false)
756 end
757 elseif inputType == "key" then
758 if string.len(input.Input.Text) == 1 then
759 input.Input.Text = string.upper(input.Input.Text)
760 end
761 local returnedEnum
762 local s = pcall(function()
763 returnedEnum = Enum.KeyCode[input.Input.Text]
764 end)
765 if s then
766 input_IsValid(true,returnedEnum)
767 else
768 input_IsValid(false)
769 end
770 end
771 end)
772end
773
774local function New_Tab(TabName) -- View new Tab.
775 for i,v in pairs(UI_Tabs:GetChildren()) do
776 if v.Name == TabName then
777 v.Visible = true
778 else
779 v.Visible = false
780 end
781 end
782end
783local function Bind_TabSelector(button,TabName)
784 button.MouseButton1Click:Connect(function()
785 New_Tab(TabName)
786 end)
787end
788
789local function Toggle_Menu()
790 UI.Visible = not UI.Visible
791end
792UI.Title.ToggleMenu.MouseButton1Click:Connect(Toggle_Menu)
793
794local function ui_setDraggable(dragger,gui)
795 local dragging,dragInput,dragStart,startPos
796 local function update(input)
797 local delta = input.Position - dragStart
798 gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
799 end
800 gui.InputBegan:Connect(function(input)
801 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
802 dragging = true
803 dragStart = input.Position
804 startPos = gui.Position
805
806 input.Changed:Connect(function()
807 if input.UserInputState == Enum.UserInputState.End then
808 dragging = false
809 end
810 end)
811 end
812 end)
813 gui.InputChanged:Connect(function(input)
814 if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
815 dragInput = input
816 end
817 end)
818 uis.InputChanged:Connect(function(input)
819 if input == dragInput and dragging then
820 update(input)
821 end
822 end)
823end
824ui_setDraggable(UI.Title,UI)
825
826local function Notify(text,title)
827 game:GetService("StarterGui"):SetCore("SendNotification",
828 {
829 Title = title or "Dalbayob Annihilator",
830 Text = text,
831 Icon = "http://www.roblox.com/asset/?id=2939916389"
832 }
833 )
834end
835
836local UI_Target = Misc.AimTarget
837local function Set_UI_Target(name)
838 if name then
839 UI_Target.Text = name
840 else
841 UI_Target.Visible = false
842 end
843end
844
845--////////////////////////////////////////// USER SETTINGS //////////////////////////////////////////---
846user_settings = {
847 main = {
848 menu_toggle = {
849 key = Enum.KeyCode.Insert;
850 func = function() Toggle_Menu() end -- Don't touch.
851 }
852 };
853 aim_options = {
854 target = "Head";
855 };
856 aimbot = {
857 active = true;
858 bind_exe = {
859 key = Enum.KeyCode.T,
860 func = function() Aimbot_Exe() end -- Don't touch.
861 }
862 };
863 silent_aim = {
864 active = true;
865 };
866 trigger_bot = {
867 respect_body_target = false;
868 };
869 chams = {
870 active = true,
871 transparency = 0.5,
872 neutral_color = Color3.fromRGB(200,200,200),
873 friendly_color = Color3.fromRGB(85,255,0),
874 enemy_color = Color3.fromRGB(255,0,0),
875 };
876 esp = {
877 active = true;
878 };
879 fov = {
880 fov_size = 200;
881 fov_transparency = 0.5
882 }
883}
884--////////////////////////////////////////// SHARED FUNCTIONS //////////////////////////////////////////---
885local FOV = Misc.FOV
886local function Is_In_FOV(x,y)
887 local circle_x,circle_y = FOV.Size.X.Offset,FOV.Size.Y.Offset
888 local radius = circle_x/2
889 local d = math.sqrt((x-mouse.X)^2 + (y-mouse.Y)^2)
890 return d<=radius
891end
892local FOV_RenderStep
893local function update_FOV()
894 FOV.Size = UDim2.new(0,user_settings.fov.fov_size,0,user_settings.fov.fov_size)
895 FOV.Position = UDim2.new(0,mouse.X,0,mouse.Y)
896 FOV.ImageTransparency = user_settings.fov.fov_transparency
897end
898FOV_RenderStep = game:GetService("RunService").RenderStepped:Connect(update_FOV)
899
900local function Check_For_Player_In_FOV()
901 local plrs = {}
902 for i,arrayPlayer in pairs(players:GetPlayers()) do
903 if arrayPlayer.Character and arrayPlayer ~= players.LocalPlayer then
904 for i,bodypart in pairs(arrayPlayer.Character:GetChildren()) do
905 if bodypart:IsA("BasePart") then
906 local point = cam:WorldToScreenPoint(bodypart.Position)
907 if Is_In_FOV(point.X,point.Y) then
908 table.insert(plrs,arrayPlayer)
909 break
910 end
911 end
912 end
913 end
914 end
915 return Get_nearest_player(plrs)
916end
917
918function Get_nearest_player(plrs) -- Get nearest player from an array of players.
919 if plr.Character then
920 local lowest = math.huge
921 local nearestPlr
922 for i,v in pairs(plrs) do
923 if v and v.Character then
924 local distance = v:DistanceFromCharacter(plr.Character.HumanoidRootPart.Position)
925 if distance < lowest then
926 lowest = distance
927 nearestPlr = v
928 end
929 end
930 end
931 return nearestPlr
932 end
933end
934
935--////////////////////////////////////////// FIELD OF VIEW //////////////////////////////////////////---
936
937Bind_InputBox(
938 UI_Tabs.Aimbot_Tab.FOV:FindFirstChild("Size"),
939 {
940 user_settings.fov,"fov_size"
941 },
942 "number" -- INPUT TYPE
943)
944Bind_InputBox(
945 UI_Tabs.Aimbot_Tab.FOV:FindFirstChild("Transparency"),
946 {
947 user_settings.fov,"fov_transparency"
948 },
949 "number" -- INPUT TYPE
950)
951--////////////////////////////////////////// AIM-OPTIONS //////////////////////////////////////////---
952
953Bind_InputBox(
954 UI_Tabs.Aimbot_Tab.Options:FindFirstChild("Target"),
955 {
956 user_settings.aim_options,"target"
957 },
958 "string" -- INPUT TYPE
959)
960
961--////////////////////////////////////////// AIM-BOT //////////////////////////////////////////---
962local Aimbot_RenderStep
963local Aimbot_On = false
964local Aimbot_Target
965local function Aimbot_Toggle(bool)
966 if bool then
967 Aimbot_On = true
968 Aimbot_RenderStep = game:GetService("RunService").RenderStepped:Connect(Aimbot_Render_Update)
969 Set_UI_Target(Aimbot_Target.Name)
970 else
971 Aimbot_On = false
972 Aimbot_RenderStep:Disconnect()
973 Aimbot_Target = nil
974 Set_UI_Target(nil)
975 end
976end
977function Aimbot_Render_Update()
978 if Character_Exists() then
979 if Aimbot_Target then
980 if Aimbot_Target.Character then
981 if Aimbot_Target.Character:FindFirstChild(user_settings.aim_options.target) then
982 cam.CFrame = CFrame.new(cam.CFrame.p,Aimbot_Target.Character:FindFirstChild(user_settings.aim_options.target).CFrame.p) -- Update
983 end
984 if Aimbot_Target:FindFirstChildOfClass("Humanoid") then
985 Aimbot_Target:FindFirstChildOfClass("Humanoid").Died:Connect(function()
986 Aimbot_Toggle(false)
987 end)
988 end
989 else
990 Aimbot_Toggle(false)
991 end
992 end
993 end
994end
995function Aimbot_Exe()
996 if user_settings.aimbot.active and not Aimbot_On then
997 local player_check = Check_For_Player_In_FOV()
998 if player_check then
999 Aimbot_Target = player_check
1000 Aimbot_Toggle(true)
1001 end
1002 elseif Aimbot_On then
1003 Aimbot_On = false
1004 Aimbot_Target = nil
1005 end
1006end
1007
1008Bind_Button(
1009 UI_Tabs.Aimbot_Tab.Aimbot:FindFirstChild("Active"),
1010 {
1011 user_settings.aimbot,"active"
1012 },nil
1013)
1014Bind_InputBox(
1015 UI_Tabs.Aimbot_Tab.Aimbot:FindFirstChild("BindExe"),
1016 {
1017 user_settings.aimbot.bind_exe,"key"
1018 },
1019 "key" -- INPUT TYPE
1020)
1021Bind_TabSelector(
1022 UI_TabSelection.Aimbot_Button,
1023 "Aimbot_Tab"
1024)
1025--////////////////////////////////////////// SILENT AIM //////////////////////////////////////////---
1026local function SilentAim_Exe()
1027 if user_settings.silent_aim.active then
1028 local player_check = Check_For_Player_In_FOV()
1029 if player_check then
1030 if player_check.Character then
1031 if player_check.Character:FindFirstChild(user_settings.aim_options.target) then
1032 local prevCF = cam.CFrame
1033 cam.CFrame = CFrame.new(
1034 cam.CFrame.p,
1035 player_check.Character:FindFirstChild(user_settings.aim_options.target).CFrame.p
1036 )
1037 --game:GetService("RunService").RenderStepped:Wait()
1038 wait()
1039 cam.CFrame = prevCF
1040 end
1041 end
1042 end
1043 end
1044end
1045mouse.Button1Down:Connect(SilentAim_Exe)
1046
1047Bind_Button(
1048 UI_Tabs.Aimbot_Tab.SilentAim:FindFirstChild("Active"),
1049 {
1050 user_settings.silent_aim,"active"
1051 }
1052)
1053--////////////////////////////////////////// TRIGGER BOT //////////////////////////////////////////---
1054local function TriggerBot_Exe()
1055 local target = mouse.Target
1056 if target then
1057 if players:FindFirstChild(target.Parent.Name) then
1058 pcall(function()
1059 mouse1press()
1060 end)
1061 end
1062 end
1063end
1064local TriggerBot_Event
1065local function Toggle_TriggerBot_Event(bool)
1066 if bool then
1067 TriggerBot_Event = game:GetService("RunService").RenderStepped:Connect(TriggerBot_Exe)
1068 else
1069 if TriggerBot_Event then
1070 TriggerBot_Event:Disconnect()
1071 end
1072 end
1073end
1074
1075Bind_Button(
1076 UI_Tabs.Aimbot_Tab.TriggerBot:FindFirstChild("Active"),
1077 {
1078 user_settings.trigger_bot,"active"
1079 },function () Toggle_TriggerBot_Event(user_settings.trigger_bot.active) end
1080)
1081--////////////////////////////////////////// CHAMS //////////////////////////////////////////---
1082
1083local Chams_Container = Instance.new("Folder")
1084Chams_Container.Name = "ChamsContainer"
1085Chams_Container.Parent = root
1086local function Chams_Player(player,bool) -- Toggle Chams on a certain player.
1087 if bool and player ~= players.LocalPlayer then
1088 if player.Character then
1089 local function Create_BHA_Container()
1090 if Chams_Container:FindFirstChild(player.Name) then
1091 return Chams_Container:FindFirstChild(player.Name)
1092 else
1093 local BHA_Container = Instance.new("Folder")
1094 BHA_Container.Name = player.Name
1095 BHA_Container.Parent = Chams_Container
1096 return BHA_Container
1097 end
1098 end
1099 local BHA_Container = Create_BHA_Container()
1100 BHA_Container:ClearAllChildren()
1101 local function Create_BHA_For_BodyPart(bodypart)
1102 local BHA = Instance.new("BoxHandleAdornment")
1103 BHA.AlwaysOnTop = true
1104 BHA.Color3 = user_settings.chams.neutral_color
1105 BHA.Size = bodypart.Size
1106 BHA.Transparency = user_settings.chams.transparency
1107 BHA.ZIndex = 0
1108 BHA.Adornee = bodypart
1109 BHA.Parent = BHA_Container
1110 end
1111 for i,bodypart in pairs(player.Character:GetChildren()) do
1112 if bodypart:IsA("BasePart") then
1113 Create_BHA_For_BodyPart(bodypart)
1114 end
1115 end
1116 player.Character.ChildAdded:Connect(function(child)
1117 if child:IsA("BasePart") then
1118 Create_BHA_For_BodyPart(child)
1119 end
1120 end)
1121 local humanoid = player.Character:FindFirstChildOfClass("Humanoid") or player.Character:WaitForChild("Humanoid")
1122 workspace.DescendantRemoving:connect(function(des)
1123 if des == char then
1124 Chams_Player(player,false)
1125 end
1126 end)
1127 humanoid.Died:connect(function()
1128 Chams_Player(player,false)
1129 end)
1130 end
1131 elseif not bool then
1132 for i,container in pairs(Chams_Container:GetChildren()) do
1133 if container.Name == player.Name then
1134 container:Destroy()
1135 end
1136 end
1137 end
1138end
1139local function Refresh_Chams_For_Player(player)
1140 Chams_Player(player,false)
1141 if user_settings.chams.active then
1142 Chams_Player(player,true)
1143 end
1144end
1145
1146Bind_Button(
1147 UI_Tabs.Visuals_Tab.Chams:FindFirstChild("Active"),
1148 {
1149 user_settings.chams,"active"
1150 },
1151 function()
1152 for i,arrayPlayer in pairs(players:GetPlayers()) do
1153 Refresh_Chams_For_Player(arrayPlayer)
1154 end
1155 end
1156)
1157Bind_InputBox(
1158 UI_Tabs.Visuals_Tab.Chams:FindFirstChild("Transparency"),
1159 {
1160 user_settings.chams,"transparency"
1161 },
1162 "number", -- INPUT TYPE
1163 function()
1164 for i,arrayPlayer in pairs(players:GetPlayers()) do
1165 Refresh_Chams_For_Player(arrayPlayer)
1166 end
1167 end
1168)
1169Bind_TabSelector(
1170 UI_TabSelection.Visuals_Button,
1171 "Visuals_Tab"
1172)
1173
1174--////////////////////////////////////////// ESP //////////////////////////////////////////---
1175
1176local ESP_Container = Instance.new("Folder")
1177ESP_Container.Name = "ESPContainer"
1178ESP_Container.Parent = root
1179local function ESP_Player(player,bool) -- Toggle ESP on a certain player.
1180 if bool and player ~= players.LocalPlayer then
1181 if player.Character then
1182 local function Create_ESP_Container()
1183 if ESP_Container:FindFirstChild(player.Name) then
1184 return ESP_Container:FindFirstChild(player.Name)
1185 else
1186 local New_ESP_Container = Instance.new("Folder")
1187 New_ESP_Container.Name = player.Name
1188 New_ESP_Container.Parent = ESP_Container
1189 return New_ESP_Container
1190 end
1191 end
1192 local New_ESP_Container = Create_ESP_Container()
1193 New_ESP_Container:ClearAllChildren()
1194 local function Generate_ESP_UI()
1195 local ESP = Instance.new("BillboardGui")
1196 local Name = Instance.new("TextLabel")
1197 local Health = Instance.new("Frame")
1198 local Fill = Instance.new("Frame")
1199 ESP.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
1200 ESP.Active = true
1201 ESP.AlwaysOnTop = true
1202 ESP.Size = UDim2.new(0, 200, 0, 30)
1203 ESP.ExtentsOffsetWorldSpace = Vector3.new(0, 3, 0)
1204 Name.Name = "Name"
1205 Name.Parent = ESP
1206 Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1207 Name.BackgroundTransparency = 1.000
1208 Name.Size = UDim2.new(1, 0, 0.5, 0)
1209 Name.Font = Enum.Font.SourceSansSemibold
1210 Name.TextColor3 = Color3.fromRGB(255, 255, 255)
1211 Name.TextSize = 18
1212 Name.TextStrokeTransparency = 0
1213 Health.Name = "Health"
1214 Health.Parent = ESP
1215 Health.AnchorPoint = Vector2.new(0.5, 0)
1216 Health.BackgroundColor3 = Color3.fromRGB(77, 77, 77)
1217 Health.BorderColor3 = Color3.fromRGB(0, 0, 0)
1218 Health.Position = UDim2.new(0.5, 0, 0.600000024, 0)
1219 Health.Size = UDim2.new(0.400000006, 0, 0.25, 0)
1220 Fill.Name = "Fill"
1221 Fill.Parent = Health
1222 Fill.BackgroundColor3 = Color3.fromRGB(85, 255, 127)
1223 Fill.BorderSizePixel = 0
1224 Fill.Size = UDim2.new(0.5, 0, 1, 0)
1225 return {ESP,Name,Fill}
1226 end
1227 local ESP_UI = Generate_ESP_UI()
1228 local ESP,ESP_Name,ESP_Fill = ESP_UI[1],ESP_UI[2],ESP_UI[3]
1229 ESP.Name = player.Name
1230 ESP.Adornee = player.Character:FindFirstChild("HumanoidRootPart")
1231 ESP.Parent = New_ESP_Container
1232 ESP_Name.Text = player.Name
1233 local humanoid = player.Character:FindFirstChildOfClass("Humanoid") or player.Character:WaitForChild("Humanoid")
1234 local function Update_Fill()
1235 ESP_Fill.Size = UDim2.new(humanoid.Health/humanoid.MaxHealth,0,1,0)
1236 end
1237 Update_Fill()
1238 humanoid.Changed:Connect(function(change)
1239 if change == "Health" or change == "Health_XML" or change == "MaxHealth" then
1240 Update_Fill()
1241 end
1242 end)
1243 workspace.DescendantRemoving:connect(function(des)
1244 if des == char then
1245 ESP_Player(player,false)
1246 end
1247 end)
1248 humanoid.Died:connect(function()
1249 ESP_Player(player,false)
1250 end)
1251 end
1252 elseif not bool then
1253 for i,container in pairs(ESP_Container:GetChildren()) do
1254 if container.Name == player.Name then
1255 container:Destroy()
1256 end
1257 end
1258 end
1259end
1260local function Refresh_ESP_For_Player(player)
1261 ESP_Player(player,false)
1262 if user_settings.esp.active then
1263 ESP_Player(player,true)
1264 end
1265end
1266
1267Bind_Button(
1268 UI_Tabs.Visuals_Tab.ESP:FindFirstChild("Active"),
1269 {
1270 user_settings.esp,"active"
1271 },
1272 function()
1273 for i,arrayPlayer in pairs(players:GetPlayers()) do
1274 Refresh_ESP_For_Player(arrayPlayer)
1275 end
1276 end
1277)
1278
1279
1280--////////////////////////////////////////// USER-INPUT AND EVENTS //////////////////////////////////////////---
1281uis.InputBegan:Connect(function(input)
1282 local key = input.KeyCode
1283 for i,v in pairs(user_settings) do
1284 for i,c in pairs(v) do
1285 if typeof(c) == "table" then
1286 if c["key"] then
1287 if key == c["key"] then
1288 if c["func"] then
1289 c.func()
1290 end
1291 end
1292 end
1293 end
1294 end
1295 end
1296end)
1297
1298local function Player_Events(player) -- A series of events for a player.
1299 local function Character()
1300 if user_settings.chams.active then
1301 Chams_Player(player,true)
1302 end
1303 if user_settings.esp.active then
1304 ESP_Player(player,true)
1305 end
1306 end
1307 player.CharacterAdded:Connect(Character)
1308 if player.Character then
1309 local humanoid = player.Character:WaitForChild("Humanoid",5)
1310 if humanoid then
1311 if humanoid.Health > 0 then
1312 Character()
1313 end
1314 end
1315 end
1316 player.Changed:Connect(function(change)
1317 if change == "Team" or change == "Neutral" or change == "TeamColor" then
1318 Refresh_Chams_For_Player(player)
1319 Refresh_ESP_For_Player(player)
1320 end
1321 end)
1322end
1323for i,eventPlayer in pairs(players:GetPlayers()) do -- Existing players.
1324 if plr.Name ~= eventPlayer.Name then
1325 Player_Events(eventPlayer)
1326 end
1327end
1328players.PlayerAdded:Connect(function(player) -- New player.
1329 Player_Events(player)
1330end)
1331players.PlayerRemoving:Connect(function(player) -- Leaving player.
1332 Chams_Player(player,false)
1333end)
1334
1335Notify("has been loaded! XD :D")