forked from CreatedHeroISMyFavoriteHero/VapeV4ForRoblox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnyGame.lua
More file actions
4115 lines (3977 loc) · 147 KB
/
AnyGame.lua
File metadata and controls
4115 lines (3977 loc) · 147 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
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
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--[[
Credits
Infinite Yield - Blink (backtrack), Freecam and SpinBot (spin / fling)
Please notify me if you need credits
]]
local GuiLibrary = shared.GuiLibrary
local players = game:GetService("Players")
local textservice = game:GetService("TextService")
local lplr = players.LocalPlayer
local workspace = game:GetService("Workspace")
local lighting = game:GetService("Lighting")
local cam = workspace.CurrentCamera
workspace:GetPropertyChangedSignal("CurrentCamera"):connect(function()
cam = (workspace.CurrentCamera or workspace:FindFirstChild("Camera") or Instance.new("Camera"))
end)
local targetinfo = shared.VapeTargetInfo
local uis = game:GetService("UserInputService")
local localmouse = lplr:GetMouse()
local v3check = syn and syn.toast_notification and "V3" or ""
local betterisfile = function(file)
local suc, res = pcall(function() return readfile(file) end)
return suc and res ~= nil
end
local function GetURL(scripturl)
if shared.VapeDeveloper then
if not betterisfile("vape/"..scripturl) then
error("File not found : vape/"..scripturl)
end
return readfile("vape/"..scripturl)
else
local res = game:HttpGet("https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/"..scripturl, true)
assert(res ~= "404: Not Found", "File not found")
return res
end
end
local requestfunc = syn and syn.request or http and http.request or http_request or fluxus and fluxus.request or request or function(tab)
if tab.Method == "GET" then
return {
Body = game:HttpGet(tab.Url, true),
Headers = {},
StatusCode = 200
}
else
return {
Body = "bad exploit",
Headers = {},
StatusCode = 404
}
end
end
local queueteleport = syn and syn.queue_on_teleport or queue_on_teleport or fluxus and fluxus.queue_on_teleport or function() end
local getasset = getsynasset or getcustomasset or function(location) return "rbxasset://"..location end
local entity = loadstring(GetURL("Libraries/entityHandler.lua"))()
shared.vapeentity = entity
local RunLoops = {RenderStepTable = {}, StepTable = {}, HeartTable = {}}
do
function RunLoops:BindToRenderStep(name, num, func)
if RunLoops.RenderStepTable[name] == nil then
RunLoops.RenderStepTable[name] = game:GetService("RunService").RenderStepped:connect(func)
end
end
function RunLoops:UnbindFromRenderStep(name)
if RunLoops.RenderStepTable[name] then
RunLoops.RenderStepTable[name]:Disconnect()
RunLoops.RenderStepTable[name] = nil
end
end
function RunLoops:BindToStepped(name, num, func)
if RunLoops.StepTable[name] == nil then
RunLoops.StepTable[name] = game:GetService("RunService").Stepped:connect(func)
end
end
function RunLoops:UnbindFromStepped(name)
if RunLoops.StepTable[name] then
RunLoops.StepTable[name]:Disconnect()
RunLoops.StepTable[name] = nil
end
end
function RunLoops:BindToHeartbeat(name, num, func)
if RunLoops.HeartTable[name] == nil then
RunLoops.HeartTable[name] = game:GetService("RunService").Heartbeat:connect(func)
end
end
function RunLoops:UnbindFromHeartbeat(name)
if RunLoops.HeartTable[name] then
RunLoops.HeartTable[name]:Disconnect()
RunLoops.HeartTable[name] = nil
end
end
end
local function createwarning(title, text, delay)
pcall(function()
local frame = GuiLibrary["CreateNotification"](title, text, delay, "assets/WarningNotification.png")
frame.Frame.BackgroundColor3 = Color3.fromRGB(236, 129, 44)
frame.Frame.Frame.BackgroundColor3 = Color3.fromRGB(236, 129, 44)
end)
end
local function friendCheck(plr, recolor)
if GuiLibrary["ObjectsThatCanBeSaved"]["Use FriendsToggle"]["Api"]["Enabled"] then
local friend = (table.find(GuiLibrary["ObjectsThatCanBeSaved"]["FriendsListTextCircleList"]["Api"]["ObjectList"], plr.Name) and GuiLibrary["ObjectsThatCanBeSaved"]["FriendsListTextCircleList"]["Api"]["ObjectListEnabled"][table.find(GuiLibrary["ObjectsThatCanBeSaved"]["FriendsListTextCircleList"]["Api"]["ObjectList"], plr.Name)] and true or nil)
if recolor then
return (friend and GuiLibrary["ObjectsThatCanBeSaved"]["Recolor visualsToggle"]["Api"]["Enabled"] and true or nil)
else
return friend
end
end
return nil
end
local function getPlayerColor(plr)
return (friendCheck(plr, true) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Hue"], GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Sat"], GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"]) or tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color)
end
local function getcustomassetfunc(path)
if not isfile(path) then
spawn(function()
local textlabel = Instance.new("TextLabel")
textlabel.Size = UDim2.new(1, 0, 0, 36)
textlabel.Text = "Downloading "..path
textlabel.BackgroundTransparency = 1
textlabel.TextStrokeTransparency = 0
textlabel.TextSize = 30
textlabel.Font = Enum.Font.SourceSans
textlabel.TextColor3 = Color3.new(1, 1, 1)
textlabel.Position = UDim2.new(0, 0, 0, -36)
textlabel.Parent = GuiLibrary["MainGui"]
repeat wait() until isfile(path)
textlabel:Remove()
end)
local req = requestfunc({
Url = "https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/"..path:gsub("vape/assets", "assets"),
Method = "GET"
})
writefile(path, req.Body)
end
return getasset(path)
end
shared.vapeteamcheck = function(plr)
return (not GuiLibrary["ObjectsThatCanBeSaved"]["Teams by colorToggle"]["Api"]["Enabled"]) or plr.Team ~= lplr.Team or lplr.Team == nil
end
local function targetCheck(plr)
local ForceField = not plr.Character.FindFirstChildWhichIsA(plr.Character, "ForceField")
local state = plr.Humanoid.GetState(plr.Humanoid)
return state ~= Enum.HumanoidStateType.Dead and state ~= Enum.HumanoidStateType.Physics and ForceField
end
do
GuiLibrary["ObjectsThatCanBeSaved"]["FriendsListTextCircleList"]["Api"].FriendRefresh.Event:connect(function()
entity.fullEntityRefresh()
end)
entity.isPlayerTargetable = function(plr)
return lplr ~= plr and shared.vapeteamcheck(plr) and friendCheck(plr) == nil
end
entity.fullEntityRefresh()
end
local function isAlive(plr, alivecheck)
if plr then
local ind, tab = entity.getEntityFromPlayer(plr)
return ((not alivecheck) or tab and tab.Humanoid:GetState() ~= Enum.HumanoidStateType.Dead) and tab
end
return entity.isAlive
end
local function vischeck(char, checktable)
local rayparams = checktable.IgnoreObject or RaycastParams.new()
if not checktable.IgnoreObject then
rayparams.FilterDescendantsInstances = {lplr.Character, char, cam, table.unpack(checktable.IgnoreTable or {})}
end
local ray = workspace.Raycast(workspace, checktable.Origin, CFrame.lookAt(checktable.Origin, char[checktable.AimPart].Position).lookVector * (checktable.Origin - char[checktable.AimPart].Position).Magnitude, rayparams)
return not ray
end
local function runcode(func)
func()
end
local function GetAllNearestHumanoidToPosition(player, distance, amount, checktab)
local returnedplayer = {}
local currentamount = 0
checktab = checktab or {}
if entity.isAlive then
for i, v in pairs(entity.entityList) do -- loop through players
if not v.Targetable then continue end
if targetCheck(v) and currentamount < amount then -- checks
if checktab.WallCheck then
if not vischeck(v.Character, checktab) then continue end
end
local mag = (entity.character.HumanoidRootPart.Position - v.RootPart.Position).magnitude
if mag <= distance then -- mag check
table.insert(returnedplayer, v)
currentamount = currentamount + 1
end
end
end
end
return returnedplayer
end
local function GetNearestHumanoidToPosition(player, distance, checktab)
local closest, returnedplayer, targetpart = distance, nil, nil
checktab = checktab or {}
if entity.isAlive then
for i, v in pairs(entity.entityList) do -- loop through players
if not v.Targetable then continue end
if targetCheck(v) then -- checks
if checktab.WallCheck then
if not vischeck(v.Character, checktab) then continue end
end
local mag = (entity.character.HumanoidRootPart.Position - v.RootPart.Position).magnitude
if mag <= closest then -- mag check
closest = mag
returnedplayer = v
end
end
end
end
return returnedplayer
end
local function GetNearestHumanoidToMouse(player, distance, checktab)
local closest, returnedplayer = distance, nil
checktab = checktab or {}
if entity.isAlive then
for i, v in pairs(entity.entityList) do -- loop through players
if not v.Targetable then continue end
if targetCheck(v) then -- checks
if checktab.WallCheck then
if not vischeck(v.Character, checktab) then continue end
end
local vec, vis = cam.WorldToScreenPoint(cam, v.Character[checktab.AimPart].Position)
local mag = (uis.GetMouseLocation(uis) - Vector2.new(vec.X, vec.Y)).magnitude
if vis and mag <= closest then -- mag check
closest = mag
returnedplayer = v
end
end
end
end
return returnedplayer
end
local function CalculateObjectPosition(pos)
local newpos = cam:WorldToViewportPoint(cam.CFrame:pointToWorldSpace(cam.CFrame:pointToObjectSpace(pos)))
return Vector2.new(newpos.X, newpos.Y)
end
local function CalculateLine(startVector, endVector, obj)
local Distance = (startVector - endVector).Magnitude
obj.Size = UDim2.new(0, Distance, 0, 2)
obj.Position = UDim2.new(0, (startVector.X + endVector.X) / 2, 0, ((startVector.Y + endVector.Y) / 2) - 36)
obj.Rotation = math.atan2(endVector.Y - startVector.Y, endVector.X - startVector.X) * (180 / math.pi)
end
local function findTouchInterest(tool)
for i,v in pairs(tool:GetDescendants()) do
if v:IsA("TouchTransmitter") then
return v
end
end
return nil
end
GuiLibrary["SelfDestructEvent"].Event:connect(function()
entity.selfDestruct()
end)
local radarcam = Instance.new("Camera")
radarcam.FieldOfView = 45
local Radar = GuiLibrary.CreateCustomWindow({
["Name"] = "Radar",
["Icon"] = "vape/assets/RadarIcon1.png",
["IconSize"] = 16
})
local RadarColor = Radar.CreateColorSlider({
["Name"] = "Player Color",
["Function"] = function(val) end
})
local RadarFrame = Instance.new("Frame")
RadarFrame.BackgroundColor3 = Color3.new(0, 0, 0)
RadarFrame.BorderSizePixel = 0
RadarFrame.BackgroundTransparency = 0.5
RadarFrame.Size = UDim2.new(0, 250, 0, 250)
RadarFrame.Parent = Radar.GetCustomChildren()
local RadarBorder1 = RadarFrame:Clone()
RadarBorder1.Size = UDim2.new(0, 6, 0, 250)
RadarBorder1.Parent = RadarFrame
local RadarBorder2 = RadarBorder1:Clone()
RadarBorder2.Position = UDim2.new(0, 6, 0, 0)
RadarBorder2.Size = UDim2.new(0, 238, 0, 6)
RadarBorder2.Parent = RadarFrame
local RadarBorder3 = RadarBorder1:Clone()
RadarBorder3.Position = UDim2.new(1, -6, 0, 0)
RadarBorder3.Size = UDim2.new(0, 6, 0, 250)
RadarBorder3.Parent = RadarFrame
local RadarBorder4 = RadarBorder1:Clone()
RadarBorder4.Position = UDim2.new(0, 6, 1, -6)
RadarBorder4.Size = UDim2.new(0, 238, 0, 6)
RadarBorder4.Parent = RadarFrame
local RadarBorder5 = RadarBorder1:Clone()
RadarBorder5.Position = UDim2.new(0, 0, 0.5, -1)
RadarBorder5.BackgroundColor3 = Color3.new(1, 1, 1)
RadarBorder5.Size = UDim2.new(0, 250, 0, 2)
RadarBorder5.Parent = RadarFrame
local RadarBorder6 = RadarBorder1:Clone()
RadarBorder6.Position = UDim2.new(0.5, -1, 0, 0)
RadarBorder6.BackgroundColor3 = Color3.new(1, 1, 1)
RadarBorder6.Size = UDim2.new(0, 2, 0, 124)
RadarBorder6.Parent = RadarFrame
local RadarBorder7 = RadarBorder1:Clone()
RadarBorder7.Position = UDim2.new(0.5, -1, 0, 126)
RadarBorder7.BackgroundColor3 = Color3.new(1, 1, 1)
RadarBorder7.Size = UDim2.new(0, 2, 0, 124)
RadarBorder7.Parent = RadarFrame
local RadarMainFrame = Instance.new("Frame")
RadarMainFrame.BackgroundTransparency = 1
RadarMainFrame.Size = UDim2.new(0, 250, 0, 250)
RadarMainFrame.Parent = RadarFrame
Radar.GetCustomChildren().Parent:GetPropertyChangedSignal("Size"):connect(function()
RadarFrame.Position = UDim2.new(0, 0, 0, (Radar.GetCustomChildren().Parent.Size.Y.Offset == 0 and 45 or 0))
end)
players.PlayerRemoving:connect(function(plr)
if RadarMainFrame:FindFirstChild(plr.Name) then
RadarMainFrame[plr.Name]:Remove()
end
end)
GuiLibrary["ObjectsThatCanBeSaved"]["GUIWindow"]["Api"].CreateCustomToggle({
["Name"] = "Radar",
["Icon"] = "vape/assets/RadarIcon2.png",
["Function"] = function(callback)
Radar.SetVisible(callback)
if callback then
RunLoops:BindToRenderStep("Radar", 1, function()
local v278 = (CFrame.new(0, 0, 0):inverse() * cam.CFrame).p * 0.2 * Vector3.new(1, 1, 1);
local v279, v280, v281 = cam.CFrame:ToOrientation();
local u90 = v280 * 180 / math.pi;
local v277 = 0 - u90;
local v276 = v278 + Vector3.new();
radarcam.CFrame = CFrame.new(v276 + Vector3.new(0, 50, 0)) * CFrame.Angles(0, -v277 * (math.pi / 180), 0) * CFrame.Angles(-90 * (math.pi / 180), 0, 0)
for i,plr in pairs(players:GetChildren()) do
local thing
if RadarMainFrame:FindFirstChild(plr.Name) then
thing = RadarMainFrame[plr.Name]
if thing.Visible then
thing.Visible = false
end
else
thing = Instance.new("Frame")
thing.BackgroundTransparency = 0
thing.Size = UDim2.new(0, 4, 0, 4)
thing.BorderSizePixel = 1
thing.BorderColor3 = Color3.new(0, 0, 0)
thing.BackgroundColor3 = Color3.new(0, 0, 0)
thing.Visible = false
thing.Name = plr.Name
thing.Parent = RadarMainFrame
end
local aliveplr = isAlive(plr)
if aliveplr then
local v238, v239 = radarcam:WorldToViewportPoint((CFrame.new(0, 0, 0):inverse() * aliveplr.RootPart.CFrame).p * 0.2)
thing.Visible = true
thing.BackgroundColor3 = getPlayerColor(plr) or Color3.fromHSV(RadarColor["Hue"], RadarColor["Sat"], RadarColor["Value"])
thing.Position = UDim2.new(math.clamp(v238.X, 0.03, 0.97), -2, math.clamp(v238.Y, 0.03, 0.97), -2)
end
end
end)
else
RunLoops:UnbindFromRenderStep("Radar")
RadarMainFrame:ClearAllChildren()
end
end,
["Priority"] = 1
})
local function Cape(char, texture)
for i,v in pairs(char:GetDescendants()) do
if v.Name == "Cape" then
v:Remove()
end
end
local hum = char:WaitForChild("Humanoid")
local torso = nil
if hum.RigType == Enum.HumanoidRigType.R15 then
torso = char:WaitForChild("UpperTorso")
else
torso = char:WaitForChild("Torso")
end
local p = Instance.new("Part", torso.Parent)
p.Name = "Cape"
p.Anchored = false
p.CanCollide = false
p.TopSurface = 0
p.BottomSurface = 0
p.FormFactor = "Custom"
p.Size = Vector3.new(0.2,0.2,0.2)
p.Transparency = 1
local decal = Instance.new("Decal", p)
decal.Texture = texture
decal.Face = "Back"
local msh = Instance.new("BlockMesh", p)
msh.Scale = Vector3.new(9,17.5,0.5)
local motor = Instance.new("Motor", p)
motor.Part0 = p
motor.Part1 = torso
motor.MaxVelocity = 0.01
motor.C0 = CFrame.new(0,2,0) * CFrame.Angles(0,math.rad(90),0)
motor.C1 = CFrame.new(0,1,0.45) * CFrame.Angles(0,math.rad(90),0)
local wave = false
repeat wait(1/44)
decal.Transparency = torso.Transparency
local ang = 0.1
local oldmag = torso.Velocity.magnitude
local mv = 0.002
if wave then
ang = ang + ((torso.Velocity.magnitude/10) * 0.05) + 0.05
wave = false
else
wave = true
end
ang = ang + math.min(torso.Velocity.magnitude/11, 0.5)
motor.MaxVelocity = math.min((torso.Velocity.magnitude/111), 0.04) --+ mv
motor.DesiredAngle = -ang
if motor.CurrentAngle < -0.2 and motor.DesiredAngle > -0.2 then
motor.MaxVelocity = 0.04
end
repeat wait() until motor.CurrentAngle == motor.DesiredAngle or math.abs(torso.Velocity.magnitude - oldmag) >= (torso.Velocity.magnitude/10) + 1
if torso.Velocity.magnitude < 0.1 then
wait(0.1)
end
until not p or p.Parent ~= torso.Parent
end
local mousefunctions = mouse1release and mouse1press and (isrbxactive or iswindowactive) and true or false
runcode(function()
local aimfov = {["Value"] = 1}
local aimfovshow = {["Enabled"] = false}
local aimvischeck = {["Enabled"] = false}
local aimwallbang = {["Enabled"] = false}
local aimautofire = {["Enabled"] = false}
local aimsmartignore = {["Enabled"] = false}
local aimsmartab = {}
local aimfovframecolor = {["Value"] = 0.44}
local aimheadshotchance = {["Value"] = 1}
local aimassisttarget
local aimhitchance = {["Value"] = 1}
local aimmethod = {["Value"] = "FindPartOnRayWithIgnoreList"}
local aimmode = {["Value"] = "Legit"}
local aimmethodmode = {["Value"] = "Whitelist"}
local aimignoredscripts = {["ObjectList"] = {}}
local aimbound
local shoottime = tick()
local recentlyshotplr
local recentlyshottick = tick()
local aimfovframe
local pressed = false
local filterobj
local tar = nil
local AimAssist = {["Enabled"] = false}
local function isNotHoveringOverGui()
local mousepos = uis:GetMouseLocation() - Vector2.new(0, 36)
for i,v in pairs(lplr.PlayerGui:GetGuiObjectsAtPosition(mousepos.X, mousepos.Y)) do
if v.Active and v.Visible and v:FindFirstAncestorOfClass("ScreenGui").Enabled then
return false
end
end
for i,v in pairs(game:GetService("CoreGui"):GetGuiObjectsAtPosition(mousepos.X, mousepos.Y)) do
if v.Active and v.Visible and v:FindFirstAncestorOfClass("ScreenGui").Enabled then
return false
end
end
return true
end
local silentaimfunctions = {
FindPartOnRayWithIgnoreList = function(Args)
local origin = Args[1].Origin
local tar = (math.floor(Random.new().NextNumber(Random.new(), 0, 1) * 100)) <= aimheadshotchance["Value"] and "Head" or "HumanoidRootPart"
local plr
if aimmode["Value"] == "Legit" then
plr = GetNearestHumanoidToMouse(aimassisttarget["Players"]["Enabled"], aimfov["Value"], {
WallCheck = aimvischeck["Enabled"],
AimPart = tar,
Origin = origin,
IgnoreTable = aimsmartab
})
else
plr = GetNearestHumanoidToPosition(aimassisttarget["Players"]["Enabled"], aimfov["Value"], {
WallCheck = aimvischeck["Enabled"],
AimPart = tar,
Origin = origin,
IgnoreTable = aimsmartab
})
end
if not plr then
return
end
tar = plr.Character[tar]
recentlyshotplr = plr
recentlyshottick = tick() + 1
local direction = CFrame.lookAt(origin, tar.Position)
if aimwallbang["Enabled"] then
return {tar, tar.Position, direction.lookVector * Args[1].Direction.Magnitude, tar.Material}
end
Args[1] = Ray.new(origin, direction.lookVector * Args[1].Direction.Magnitude)
return
end,
Raycast = function(Args)
local origin = Args[1]
local ignoreobject = Args[3]
local tar = (math.floor(Random.new().NextNumber(Random.new(), 0, 1) * 100)) <= aimheadshotchance["Value"] and "Head" or "HumanoidRootPart"
local plr
if aimmode["Value"] == "Legit" then
plr = GetNearestHumanoidToMouse(aimassisttarget["Players"]["Enabled"], aimfov["Value"], {
WallCheck = aimvischeck["Enabled"],
AimPart = tar,
Origin = origin,
IgnoreObject = ignoreobject
})
else
plr = GetNearestHumanoidToPosition(aimassisttarget["Players"]["Enabled"], aimfov["Value"], {
WallCheck = aimvischeck["Enabled"],
AimPart = tar,
Origin = origin,
IgnoreObject = ignoreobject
})
end
if not plr then
return
end
tar = plr.Character[tar]
recentlyshotplr = plr
recentlyshottick = tick() + 1
local direction = CFrame.lookAt(origin, tar.Position)
Args[2] = direction.lookVector * Args[2].Magnitude
if aimwallbang["Enabled"] then
local haha = RaycastParams.new()
haha.FilterType = Enum.RaycastFilterType.Whitelist
haha.FilterDescendantsInstances = {tar}
Args[3] = haha
end
return
end,
ScreenPointToRay = function(Args)
local origin = cam.CFrame.p
local tar = (math.floor(Random.new().NextNumber(Random.new(), 0, 1) * 100)) <= aimheadshotchance["Value"] and "Head" or "HumanoidRootPart"
local plr
if aimmode["Value"] == "Legit" then
plr = GetNearestHumanoidToMouse(aimassisttarget["Players"]["Enabled"], aimfov["Value"], {
WallCheck = aimvischeck["Enabled"],
AimPart = tar,
Origin = origin,
IgnoreTable = aimsmartab
})
else
plr = GetNearestHumanoidToPosition(aimassisttarget["Players"]["Enabled"], aimfov["Value"], {
WallCheck = aimvischeck["Enabled"],
AimPart = tar,
Origin = origin,
IgnoreTable = aimsmartab
})
end
if not plr then
return
end
tar = plr.Character[tar]
recentlyshotplr = plr
recentlyshottick = tick() + 1
local direction = CFrame.lookAt(origin, tar.Position)
return {Ray.new(direction.p, direction.lookVector)}
end
}
silentaimfunctions.FindPartOnRayWithWhitelist = silentaimfunctions.FindPartOnRayWithIgnoreList
silentaimfunctions.FindPartOnRay = silentaimfunctions.FindPartOnRayWithIgnoreList
silentaimfunctions.ViewportPointToRay = silentaimfunctions.ScreenPointToRay
local silentaimenabled = {
Normal = function()
if not aimbound then
aimbound = true
local oldnamecall
oldnamecall = hookmetamethod(game, "__namecall", function(self, ...)
if (not AimAssist["Enabled"]) then
return oldnamecall(self, ...)
end
local NamecallMethod = getnamecallmethod()
if NamecallMethod ~= aimmethod["Value"] then
return oldnamecall(self, ...)
end
if checkcaller() then
return oldnamecall(self, ...)
end
local calling = getcallingscript()
if calling then
local list = #aimignoredscripts["ObjectList"] > 0 and aimignoredscripts["ObjectList"] or {"ControlScript", "ControlModule"}
if table.find(list, tostring(calling)) then
return oldnamecall(self, ...)
end
end
local Args = {...}
local res = silentaimfunctions[aimmethod["Value"]](Args)
if res then
return unpack(res)
end
return oldnamecall(self, unpack(Args))
end)
end
end,
NormalV3 = function()
if not aimbound then
aimbound = true
filterobj = NamecallFilter.new(aimmethod["Value"])
local oldnamecall
oldnamecall = hookmetamethod(game, "__namecall", getfilter(filterobj, function(self, ...) return oldnamecall(self, ...) end, function(self, ...)
if (not AimAssist["Enabled"]) then
return oldnamecall(self, ...)
end
if checkcaller() then
return oldnamecall(self, ...)
end
local calling = getcallingscript()
if calling then
local list = #aimignoredscripts["ObjectList"] > 0 and aimignoredscripts["ObjectList"] or {"ControlScript", "ControlModule"}
if table.find(list, tostring(calling)) then
return oldnamecall(self, ...)
end
end
local Args = {...}
local res = silentaimfunctions[aimmethod["Value"]](Args)
if res then
return unpack(res)
end
return oldnamecall(self, unpack(Args))
end))
end
end
}
local methodused
AimAssist = GuiLibrary["ObjectsThatCanBeSaved"]["CombatWindow"]["Api"].CreateOptionsButton({
["Name"] = "SilentAim",
["Function"] = function(callback)
if callback then
methodused = "Normal"..v3check
spawn(function()
repeat
task.wait(0.1)
local targettable = {}
local targetsize = 0
if recentlyshotplr and recentlyshottick >= tick() then
local plr = recentlyshotplr
if plr then
targettable[plr.Player.Name] = {
["UserId"] = plr.Player.UserId,
["Health"] = plr.Character.Humanoid.Health,
["MaxHealth"] = plr.Character.Humanoid.MaxHealth
}
targetsize = targetsize + 1
end
end
targetinfo.UpdateInfo(targettable, targetsize)
until (not AimAssist["Enabled"])
end)
if aimfovframe then
aimfovframe.Visible = aimmode["Value"] ~= "Blatant"
end
if silentaimenabled[methodused] then
silentaimenabled[methodused]()
end
else
tar = nil
end
end,
["ExtraText"] = function()
return aimmethod["Value"]:gsub("FindPartOn", ""):gsub("PointToRay", "")
end
})
aimassisttarget = AimAssist.CreateTargetWindow({})
aimmode = AimAssist.CreateDropdown({
["Name"] = "Mode",
["List"] = {"Legit", "Blatant"},
["Function"] = function(val)
if aimfovframe then
aimfovframe.Visible = val == "Legit"
end
end
})
aimmethodmode = AimAssist.CreateDropdown({
["Name"] = "Method Type",
["List"] = {"All", "Whitelist", "Blacklist"},
["Function"] = function(val) end
})
aimmethodmode["Object"].Visible = false
aimmethod = AimAssist.CreateDropdown({
["Name"] = "Method",
["List"] = {"FindPartOnRayWithIgnoreList", "FindPartOnRayWithWhitelist", "Raycast", "FindPartOnRay", "ScreenPointToRay", "ViewportPointToRay"},
["Function"] = function(val)
aimmethodmode["Object"].Visible = val == "Raycast"
if filterobj then
filterobj.NamecallMethod = val
end
end
})
aimfovframecolor = AimAssist.CreateColorSlider({
["Name"] = "Circle Color",
["Function"] = function(hue, sat, val)
if aimfovframe then
aimfovframe.BackgroundColor3 = Color3.fromHSV(hue, sat, val)
end
end
})
aimfov = AimAssist.CreateSlider({
["Name"] = "FOV",
["Min"] = 1,
["Max"] = 1000,
["Function"] = function(val)
if aimfovframe then
aimfovframe.Size = UDim2.new(0, val, 0, val)
end
end,
["Default"] = 80
})
aimhitchance = AimAssist.CreateSlider({
["Name"] = "Hit Chance",
["Min"] = 1,
["Max"] = 100,
["Function"] = function(val) end,
["Default"] = 100,
})
aimheadshotchance = AimAssist.CreateSlider({
["Name"] = "Headshot Chance",
["Min"] = 1,
["Max"] = 100,
["Function"] = function(val) end,
["Default"] = 25
})
aimfovshow = AimAssist.CreateToggle({
["Name"] = "FOV Circle",
["Function"] = function(callback)
if callback then
aimfovframe = Instance.new("Frame")
aimfovframe.BackgroundTransparency = 0.8
aimfovframe.ZIndex = -1
aimfovframe.Visible = aimmode["Value"] ~= "Blatant" and AimAssist["Enabled"]
aimfovframe.BackgroundColor3 = Color3.fromHSV(aimfovframecolor["Hue"], aimfovframecolor["Sat"], aimfovframecolor["Value"])
aimfovframe.Size = UDim2.new(0, aimfov["Value"], 0, aimfov["Value"])
aimfovframe.AnchorPoint = Vector2.new(0.5, 0.5)
aimfovframe.Position = UDim2.new(0.5, 0, 0.5, -18)
aimfovframe.Parent = GuiLibrary["MainGui"]
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 2048)
corner.Parent = aimfovframe
else
if aimfovframe then
aimfovframe:Remove()
end
end
end,
})
aimvischeck = AimAssist.CreateToggle({
["Name"] = "Wall Check",
["Function"] = function() end,
["Default"] = true
})
aimwallbang = AimAssist.CreateToggle({
["Name"] = "Wall Bang",
["Function"] = function() end
})
aimautofire = AimAssist.CreateToggle({
["Name"] = "AutoFire",
["Function"] = function(callback)
if callback then
spawn(function()
repeat
task.wait(0.01)
if AimAssist["Enabled"] then
local plr
if aimmode["Value"] == "Legit" then
plr = GetNearestHumanoidToMouse(aimassisttarget["Players"]["Enabled"], aimfov["Value"], {
WallCheck = aimvischeck["Enabled"],
AimPart = "Head",
Origin = cam.CFrame.p,
IgnoreTable = aimsmartab
})
else
plr = GetNearestHumanoidToPosition(aimassisttarget["Players"]["Enabled"], aimfov["Value"], {
WallCheck = aimvischeck["Enabled"],
AimPart = "Head",
Origin = cam.CFrame.p,
IgnoreTable = aimsmartab
})
end
if plr then
if mouse1click and (isrbxactive and isrbxactive() or iswindowactive and iswindowactive()) and shoottime <= tick() then
if isNotHoveringOverGui() and GuiLibrary["MainGui"]:FindFirstChild("ScaledGui") and GuiLibrary["MainGui"].ScaledGui.ClickGui.Visible == false and uis:GetFocusedTextBox() == nil then
if pressed then
mouse1release()
else
mouse1press()
end
pressed = not pressed
shoottime = tick() + 0.001
else
if pressed then
mouse1release()
end
pressed = false
end
end
else
if pressed then
mouse1release()
end
pressed = false
end
end
until (not aimautofire["Enabled"])
end)
end
end,
["HoverText"] = "Automatically fires gun",
})
local aimsmartconnection
aimsmartignore = AimAssist.CreateToggle({
["Name"] = "Smart Ignore",
["Function"] = function(callback)
if callback then
aimsmartconnection = workspace.DescendantAdded:Connect(function(v)
local lowername = v.Name:lower()
if lowername:find("junk") or lowername:find("trash") or lowername:find("ignore") or lowername:find("particle") or lowername:find("spawn") or lowername:find("bullet") or lowername:find("debris") then
table.insert(aimsmartab, v)
end
end)
for i,v in pairs(workspace:GetDescendants()) do
local lowername = v.Name:lower()
if lowername:find("junk") or lowername:find("trash") or lowername:find("ignore") or lowername:find("particle") or lowername:find("spawn") or lowername:find("bullet") or lowername:find("debris") then
table.insert(aimsmartab, v)
end
end
else
table.clear(aimsmartab)
if aimsmartconnection then aimsmartconnection:Disconnect() end
end
end,
["HoverText"] = "Ignores certain folders and what not with certain names"
})
aimignoredscripts = AimAssist.CreateTextList({
["Name"] = "Ignored Scripts",
["TempText"] = "ignored scripts",
["AddFunction"] = function(user) end,
["RemoveFunction"] = function(num) end
})
local function gettriggerbotplr()
local rayparams = RaycastParams.new()
rayparams.FilterDescendantsInstances = {lplr.Character, cam}
local ray = workspace:Raycast(cam.CFrame.p, cam.CFrame.lookVector * 10000, rayparams)
if ray and ray.Instance then
for i,v in pairs(entity.entityList) do
if v.Targetable and v.Character then
if ray.Instance:IsDescendantOf(v.Character) then
return targetCheck(v) and v or nil
end
end
end
end
return nil
end
local triggerbottick = tick()
local triggerbotactivation = {["Value"] = 1}
local triggerbot = {["Enabled"] = false}
triggerbot = GuiLibrary["ObjectsThatCanBeSaved"]["CombatWindow"]["Api"].CreateOptionsButton({
["Name"] = "TriggerBot",
["Function"] = function(callback)
if callback then
if mousefunctions then
RunLoops:BindToStepped("TriggerBot", 1, function()
local plr = gettriggerbotplr()
if plr then
if (isrbxactive or iswindowactive)() and shoottime <= tick() then
if isNotHoveringOverGui() and GuiLibrary["MainGui"]:FindFirstChild("ScaledGui") and GuiLibrary["MainGui"].ScaledGui.ClickGui.Visible == false and uis:GetFocusedTextBox() == nil then
if pressed then
mouse1release()
else
mouse1press()
end
pressed = not pressed
shoottime = tick() + 0.01
else
if pressed then
mouse1release()
end
pressed = false
end
end
else
if pressed and mousefunctions then
mouse1release()
end
pressed = false
end
end)
else
createwarning("TriggerBot", "Mouse functions missing", 5)
if triggerbot["Enabled"] then
triggerbot["ToggleButton"](false)
end
end
else
if mousefunctions then
RunLoops:UnbindFromStepped("TriggerBot")
if pressed then
mouse1release()
end
end
pressed = false
end
end
})
end)
local autoclickercps = {["GetRandomValue"] = function() return 1 end}
local autoclicker = {["Enabled"] = false}
local autoclickermode = {["Value"] = "Sword"}
local autoclickertick = tick()
autoclicker = GuiLibrary["ObjectsThatCanBeSaved"]["CombatWindow"]["Api"].CreateOptionsButton({
["Name"] = "AutoClicker",
["Function"] = function(callback)
if callback then
RunLoops:BindToRenderStep("AutoClicker", 1, function()
if entity.isAlive and autoclickertick <= tick() then
if autoclickermode["Value"] == "Sword" then
local tool = lplr and lplr.Character and lplr.Character:FindFirstChildWhichIsA("Tool")
if tool and uis:IsMouseButtonPressed(0) then
tool:Activate()
autoclickertick = tick() + (1 / autoclickercps["GetRandomValue"]()) * Random.new().NextNumber(Random.new(), 0.75, 1)
end
else
if mousefunctions then
if (isrbxactive or iswindowactive)() and GuiLibrary["MainGui"].ScaledGui.ClickGui.Visible == false then
mouse1click()
autoclickertick = tick() + (1 / autoclickercps["GetRandomValue"]()) * Random.new().NextNumber(Random.new(), 0.75, 1)
end
else
createwarning("AutoClicker", "Mouse functions missing", 5)
if autoclicker["Enabled"] then
autoclicker["ToggleButton"](false)
end
end
end
end
end)
else
RunLoops:UnbindFromRenderStep("AutoClicker")
end
end
})
autoclickermode = autoclicker.CreateDropdown({
["Name"] = "Mode",
["List"] = {"Sword", "RealClick"},
["Function"] = function() end
})
autoclickercps = autoclicker.CreateTwoSlider({
["Name"] = "CPS",
["Min"] = 1,
["Max"] = 20,
["Default"] = 8,
["Default2"] = 12
})
local reachrange = {["Value"] = 1}
local oldsize = {}
local Reach = GuiLibrary["ObjectsThatCanBeSaved"]["CombatWindow"]["Api"].CreateOptionsButton({
["Name"] = "Reach",
["Function"] = function(callback)
if callback then
RunLoops:BindToRenderStep("Reach", 1, function()
local tool = lplr and lplr.Character and lplr.Character:FindFirstChildWhichIsA("Tool")
if tool and entity.isAlive then
local touch = findTouchInterest(tool)
if touch then
local size = rawget(oldsize, tool.Name)
if size then
touch.Parent.Size = Vector3.new(size.X + reachrange["Value"], size.Y, size.Z + reachrange["Value"])
touch.Parent.Massless = true
else
oldsize[tool.Name] = touch.Parent.Size