forked from 0W0Pumpkin/VapeV4ForRoblox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAnyGame.vape
1408 lines (1311 loc) · 63.1 KB
/
AnyGame.vape
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 to Inf Yield & all the other scripts that helped me make bypasses
local GuiLibrary = shared.GuiLibrary
local players = game:GetService("Players")
local lplr = players.LocalPlayer
local workspace = game:GetService("Workspace")
local lighting = game:GetService("Lighting")
local cam = workspace.CurrentCamera
local targetinfo = shared.VapeTargetInfo
local uis = game:GetService("UserInputService")
local mouse = lplr:GetMouse()
local robloxfriends = {}
local function friendCheck(plr)
if not robloxfriends[plr.UserId] then
if lplr:IsFriendsWith(plr.UserId) then
table.insert(robloxfriends, plr.Name)
robloxfriends[plr.UserId] = true
end
end
return (GuiLibrary["ObjectsThatCanBeSaved"]["Use FriendsToggle"]["Api"]["Enabled"] and ((GuiLibrary["ObjectsThatCanBeSaved"]["Use Roblox FriendsToggle"]["Api"]["Enabled"] and table.find(robloxfriends, plr.Name) == nil) and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) == nil) or GuiLibrary["ObjectsThatCanBeSaved"]["Use FriendsToggle"]["Api"]["Enabled"] == false)
end
shared.vapeteamcheck = function(plr)
return (GuiLibrary["ObjectsThatCanBeSaved"]["Teams by colorToggle"]["Api"]["Enabled"] and (plr.Team ~= lplr.Team or (lplr.Team == nil or #lplr.Team:GetPlayers() == #game:GetService("Players"):GetChildren())) or GuiLibrary["ObjectsThatCanBeSaved"]["Teams by colorToggle"]["Api"]["Enabled"] == false)
end
local function targetCheck(plr, check)
return (check and plr.Character.Humanoid.Health > 0 and plr.Character:FindFirstChild("ForceField") == nil or check == false)
end
local function isAlive(plr)
if plr then
return plr and plr.Character and plr.Character.Parent ~= nil and plr.Character:FindFirstChild("HumanoidRootPart") and plr.Character:FindFirstChild("Head") and plr.Character:FindFirstChild("Humanoid")
end
return lplr and lplr.Character and lplr.Character.Parent ~= nil and lplr.Character:FindFirstChild("HumanoidRootPart") and lplr.Character:FindFirstChild("Head") and lplr.Character:FindFirstChild("Humanoid")
end
local function isPlayerTargetable(plr, target, friend)
return plr ~= lplr and GuiLibrary["ObjectsThatCanBeSaved"]["PlayersToggle"]["Api"]["Enabled"] and plr and (friend == true and friendCheck(plr) or friend == false) and isAlive(plr) and targetCheck(plr, target) and shared.vapeteamcheck(plr)
end
local function vischeck(char, part)
return not unpack(cam:GetPartsObscuringTarget({lplr.Character[part].Position, char[part].Position}, {lplr.Character, char}))
end
local function GetAllNearestHumanoidToPosition(distance, amount)
local returnedplayer = {}
local currentamount = 0
if isAlive() then
for i, v in pairs(players:GetChildren()) do
if isPlayerTargetable(v, true, true) and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") and currentamount < amount then
local mag = (lplr.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude
if mag <= distance then
table.insert(returnedplayer, v)
currentamount = currentamount + 1
end
end
end
end
return returnedplayer
end
local function GetNearestHumanoidToPosition(distance)
local closest, returnedplayer = distance, nil
if isAlive() then
for i, v in pairs(players:GetChildren()) do
if isPlayerTargetable(v, true, true) and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") then
local mag = (lplr.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude
if mag <= closest then
closest = mag
returnedplayer = v
end
end
end
end
return returnedplayer
end
local function GetNearestHumanoidToMouse(distance, checkvis)
local closest, returnedplayer = distance, nil
if isAlive() then
for i, v in pairs(players:GetChildren()) do
if isPlayerTargetable(v, true, true) and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") and (checkvis == false or checkvis and (vischeck(v.Character, "Head") or vischeck(v.Character, "HumanoidRootPart"))) then
local vec, vis = cam:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
if vis then
local mag = (uis:GetMouseLocation() - Vector2.new(vec.X, vec.Y)).magnitude
if mag <= closest then
closest = mag
returnedplayer = v
end
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
local radarcam = Instance.new("Camera")
radarcam.FieldOfView = 45
local Radar = GuiLibrary.CreateCustomWindow("Radar", "vape/assets/TargetInfoIcon1.png", 16, UDim2.new(0, 177, 0, 6), false)
local RadarColor = Radar.CreateColorSlider("Player Color", 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("Radar", "vape/assets/TargetInfoIcon1.png", function()
Radar.SetVisible(true)
game:GetService("RunService"):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(0, 0, 0);
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
if isPlayerTargetable(plr, false, false) then
local v238, v239 = radarcam:WorldToViewportPoint((CFrame.new(0, 0, 0):inverse() * plr.Character.HumanoidRootPart.CFrame).p * 0.2)
thing.Visible = true
thing.BackgroundColor3 = (GuiLibrary["ObjectsThatCanBeSaved"]["Use colorToggle"]["Api"]["Enabled"] and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"], 1, 1)) or tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color or Color3.fromHSV(RadarColor["Value"], 1, 1)
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)
end, function()
Radar.SetVisible(false)
game:GetService("RunService"):UnbindFromRenderStep("Radar")
RadarMainFrame:ClearAllChildren()
end, false, "OptionsButton", 1)
local aimfov = {["Value"] = 1}
local aimvischeck = {["Enabled"] = false}
local aimheadshotchance = {["Value"] = 1}
local aimhitchance = {["Value"] = 1}
local aimmethod = {["Value"] = "FindPartOnRayWithIgnoreList"}
local kek = function() end
local kek2 = function() end
local tar = nil
local meta = getrawmetatable(game)
setreadonly(meta, false)
local old = meta.__namecall
local old2 = meta.__index
local hook
local AimAssist = GuiLibrary["ObjectsThatCanBeSaved"]["CombatWindow"]["Api"].CreateOptionsButton("AimAssist", function() kek() end, function()
game:GetService("RunService"):UnbindFromRenderStep("AimAssist")
meta.__namecall = old
meta.__index = old2
tar = nil
end, true, function()
if aimmethod["Value"]:match("FindPartOnRay") then
return " Ray"
else
return " "..string.gsub(aimmethod["Value"], "PointToRay", "")
end
end)
aimmethod = AimAssist.CreateDropdown("Method", {"FindPartOnRayWithIgnoreList", "FindPartOnRayWithWhitelist", "Raycast", "FindPartOnRay", "ScreenPointToRay", "ViewportPointToRay", "Mouse"}, function(val) end)
local aimtable = {["FindPartOnRayWithIgnoreList"] = 1, ["FindPartOnRayWithWhitelist"] = 1, ["Raycast"] = 2, ["FindPartOnRay"] = 1, ["ScreenPointToRay"] = 3, ["ViewportPointToRay"] = 3, ["Mouse"] = 4}
aimvischeck = AimAssist.CreateToggle("Wall Check", function() end, function() end)
aimfov = AimAssist.CreateSlider("FOV", 1, 1000, function(val) end)
aimhitchance = AimAssist.CreateSlider("Hit Chance", 1, 100, function(val) end)
aimheadshotchance = AimAssist.CreateSlider("Headshot Chance", 1, 100, function(val) end)
kek = function()
local old3
old3 = hookmetamethod(game, "__namecall", function(...)
local Namecallaimmethod = getnamecallmethod()
local Args = {...}
local scriptname = getcallingscript()
if tar then
if not checkcaller() and (scriptname and not scriptname.Name:match("Camera")) and Namecallaimmethod == aimmethod["Value"] then
if aimtable[aimmethod["Value"]] == 1 then
Args[2] = Ray.new(Args[2].Origin, (tar.Position + Vector3.new(0, (Args[2].Origin - tar.Position).magnitude/10000, 0) - Args[2].Origin).unit * 10000)
if GuiLibrary["ObjectsThatCanBeSaved"]["Blatant modeToggle"]["Api"]["Enabled"] then
return tar, tar.Position, (tar.Position + Vector3.new(0, (Args[2].Origin - tar.Position).magnitude/10000, 0) - Args[2].Origin).unit * 10000, tar.Material
end
end
if aimtable[aimmethod["Value"]] == 2 then
Args[3] = (tar.Position + Vector3.new(0, (Args[2] - tar.Position).magnitude/10000, 0) - Args[2]).unit * 10000
if GuiLibrary["ObjectsThatCanBeSaved"]["Blatant modeToggle"]["Api"]["Enabled"] then
local haha = RaycastParams.new()
haha.FilterType = Enum.RaycastFilterType.Whitelist
haha.FilterDescendantsInstances = {tar}
Args[4] = haha
end
end
if aimtable[aimmethod["Value"]] == 3 then
return Ray.new(cam.CFrame.p, (tar.Position + Vector3.new(0, (cam.CFrame.p - tar.Position).magnitude/10000, 0) - cam.CFrame.p).unit * 10000)
end
end
end
return old3(unpack(Args))
end)
game:GetService("RunService"):BindToRenderStep("AimAssist", 1, function()
local plr = GetNearestHumanoidToMouse(aimfov["Value"], GuiLibrary["ObjectsThatCanBeSaved"]["Blatant modeToggle"]["Api"]["Enabled"] == false and aimvischeck["Enabled"])
local targettable = {}
local targetsize = 0
if plr and (math.floor(Random.new().NextNumber(Random.new(), 0, 1) * 100)) <= aimhitchance["Value"] then
targettable[plr.Name] = {
["UserId"] = plr.UserId,
["Health"] = plr.Character.Humanoid.Health,
["MaxHealth"] = plr.Character.Humanoid.MaxHealth
}
targetsize = targetsize + 1
tar = (math.floor(Random.new().NextNumber(Random.new(), 0, 1) * 100)) <= aimheadshotchance["Value"] and plr.Character.Head or plr.Character.HumanoidRootPart
targetinfo.UpdateInfo(targettable, targetsize)
else
tar = nil
targetinfo.UpdateInfo({}, 0)
end
end)
end
local autoclickercps = {["GetRandomValue"] = function() return 1 end}
local autoclicker = {["Enabled"] = false}
local autoclickertick = tick()
autoclicker = GuiLibrary["ObjectsThatCanBeSaved"]["CombatWindow"]["Api"].CreateOptionsButton("AutoClicker", function()
game:GetService("RunService"):BindToRenderStep("AutoClicker", 1, function()
local tool = lplr and lplr.Character and lplr.Character:FindFirstChildWhichIsA("Tool")
if tool and isAlive() and uis:IsMouseButtonPressed(0) and autoclickertick <= tick() then
tool:Activate()
autoclickertick = tick() + (1 / autoclickercps["GetRandomValue"]()) * Random.new().NextNumber(Random.new(), 0.75, 1)
end
end)
end, function() game:GetService("RunService"):UnbindFromRenderStep("AutoClicker") end, true)
autoclickercps = autoclicker.CreateTwoSlider("CPS", 1, 20, function(val) end, false, 8, 12)
local reachrange = {["Value"] = 1}
local oldsize = {}
local Reach = GuiLibrary["ObjectsThatCanBeSaved"]["CombatWindow"]["Api"].CreateOptionsButton("Reach", function()
game:GetService("RunService"):BindToRenderStep("Reach", 1, function()
local tool = lplr and lplr.Character and lplr.Character:FindFirstChildWhichIsA("Tool")
if tool and 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
end
end
end
end)
end, function()
game:GetService("RunService"):UnbindFromRenderStep("Reach")
for i2,v2 in pairs(lplr.Character:GetChildren()) do
if v2:IsA("Tool") and rawget(oldsize, v2.Name) then
local touch = findTouchInterest(v2)
if touch then
touch.Parent.Size = rawget(oldsize, v2.Name)
touch.Parent.Massless = false
end
end
end
for i2,v2 in pairs(lplr.Backpack:GetChildren()) do
if v2:IsA("Tool") and rawget(oldsize, v2.Name) then
local touch = findTouchInterest(v2)
if touch then
touch.Parent.Size = rawget(oldsize, v2.Name)
touch.Parent.Massless = false
end
end
end
oldsize = {}
end, true)
reachrange = Reach.CreateSlider("Range", 1, 20, function(val) end)
local Blink = GuiLibrary["ObjectsThatCanBeSaved"]["BlatantWindow"]["Api"].CreateOptionsButton("Blink", function()
settings():GetService("NetworkSettings").IncomingReplicationLag = 99999
end, function()
settings():GetService("NetworkSettings").IncomingReplicationLag = 0
end, false, function() return "" end, "Chokes all incoming packets")
local flyspeed = {["Value"] = 1}
local flyverticalspeed = {["Value"] = 1}
local flyupanddown = {["Enabled"] = false}
local flymethod = {["Value"] = "Normal"}
local flyposy = 0
local flyup = false
local flydown = false
local flypress
local flyendpress
local bodyvelofly
local fly = GuiLibrary["ObjectsThatCanBeSaved"]["BlatantWindow"]["Api"].CreateOptionsButton("Fly", function()
if isAlive() then
flyposy = lplr.Character.HumanoidRootPart.CFrame.p.Y
end
flypress = game:GetService("UserInputService").InputBegan:connect(function(input1)
if flyupanddown["Enabled"] and game:GetService("UserInputService"):GetFocusedTextBox() == nil then
if input1.KeyCode == Enum.KeyCode.Space then
flyup = true
end
if input1.KeyCode == Enum.KeyCode.LeftControl then
flydown = true
end
end
end)
flyendpress = game:GetService("UserInputService").InputEnded:connect(function(input1)
if input1.KeyCode == Enum.KeyCode.Space then
flyup = false
end
if input1.KeyCode == Enum.KeyCode.LeftControl then
flydown = false
end
end)
game:GetService("RunService"):BindToRenderStep("Fly", 1, function(delta)
if isAlive() then
if flymethod["Value"] == "Normal" then
if (bodyvelofly == nil or bodyvelofly ~= nil and bodyvelofly.Parent ~= lplr.Character.HumanoidRootPart) then
bodyvelofly = Instance.new("BodyVelocity")
bodyvelofly.Parent = lplr.Character.HumanoidRootPart
bodyvelofly.MaxForce = Vector3.new(100000, 100000, 100000)
else
bodyvelofly.Velocity = (lplr.Character.Humanoid.MoveDirection * flyspeed["Value"]) + Vector3.new(0, (flyup and flyverticalspeed["Value"] or 0) + (flydown and -flyverticalspeed["Value"] or 0), 0)
end
elseif flymethod["Value"] == "AntiCheat" then
if (bodyvelofly ~= nil) then
bodyvelofly:Remove()
end
if flyup then
flyposy = flyposy + (1 * (math.clamp(flyverticalspeed["Value"] - 16, 1, 150) * delta))
end
if flydown then
flyposy = flyposy - (1 * (math.clamp(flyverticalspeed["Value"] - 16, 1, 150) * delta))
end
local flypos = (lplr.Character.Humanoid.MoveDirection * (math.clamp(flyspeed["Value"] - 16, 1, 150) * delta))
lplr.Character.HumanoidRootPart.CFrame = lplr.Character.HumanoidRootPart.CFrame + Vector3.new(flypos.X, (flyposy - lplr.Character.HumanoidRootPart.CFrame.p.Y), flypos.Z)
lplr.Character.HumanoidRootPart.Velocity = Vector3.new(0, 0, 0)
end
end
end)
end, function()
if bodyvelofly then
bodyvelofly:Remove()
end
flyup = false
flydown = false
flypress:Disconnect()
flyendpress:Disconnect()
game:GetService("RunService"):UnbindFromRenderStep("Fly")
end, true, function() return " "..flymethod["Value"] end, true)
flymethod = fly.CreateDropdown("Mode", {"Normal", "AntiCheat"}, function(val)
if isAlive() then
flyposy = lplr.Character.HumanoidRootPart.CFrame.p.Y
end
end)
flyspeed = fly.CreateSlider("Speed", 1, 150, function(val) end)
flyverticalspeed = fly.CreateSlider("Vertical Speed", 1, 150, function(val) end)
flyupanddown = fly.CreateToggle("Y Level", function() end, function() end)
local hitboxexpand = {["Value"] = 1}
local Hitbox = GuiLibrary["ObjectsThatCanBeSaved"]["BlatantWindow"]["Api"].CreateOptionsButton("HitBoxes", function()
game:GetService("RunService"):BindToRenderStep("HitBoxes", 1, function()
for i,plr in pairs(players:GetChildren()) do
if isPlayerTargetable(plr, true, true) and isAlive(plr) then
plr.Character.HumanoidRootPart.Size = Vector3.new(2 + (hitboxexpand["Value"] * 0.2), 2 + (hitboxexpand["Value"] * 0.2), 1 + (hitboxexpand["Value"] * 0.2))
end
end
end)
end, function()
game:GetService("RunService"):UnbindFromRenderStep("HitBoxes")
for i,plr in pairs(players:GetChildren()) do
if isAlive(plr) then
plr.Character.HumanoidRootPart.Size = Vector3.new(2, 2, 1)
end
end
end, true)
hitboxexpand = Hitbox.CreateSlider("Expand amount", 1, 30, function(val) end)
local killauraaps = {["GetRandomValue"] = function() return 1 end}
local killaurarange = {["Value"] = 1}
local killauraangle = {["Value"] = 90}
local killauratarget = {["Value"] = 1}
local killauramouse = {["Enabled"] = false}
local killauracframe = {["Enabled"] = false}
local Killaura = {["Enabled"] = false}
local killauratick = tick()
Killaura = GuiLibrary["ObjectsThatCanBeSaved"]["BlatantWindow"]["Api"].CreateOptionsButton("Killaura", function()
game:GetService("RunService"):BindToRenderStep("Killaura", 1, function()
local tool = lplr and lplr.Character and lplr.Character:FindFirstChildWhichIsA("Tool")
local plr = GetAllNearestHumanoidToPosition(killaurarange["Value"], killauratarget["Value"])
if tool and isAlive() and (killauramouse["Enabled"] and uis:IsMouseButtonPressed(0) or killauramouse["Enabled"] == false) then
local touch = findTouchInterest(tool)
if touch then
local targettable = {}
local targetsize = 0
for i,v in pairs(plr) do
local localfacing = lplr.Character.HumanoidRootPart.CFrame.lookVector
local vec = (v.Character.HumanoidRootPart.Position - lplr.Character.HumanoidRootPart.Position).unit
local angle = math.acos(localfacing:Dot(vec))
if angle <= (killauraangle["Value"] / 115) then
targettable[v.Name] = {
["UserId"] = v.UserId,
["Health"] = v.Character.Humanoid.Health,
["MaxHealth"] = v.Character.Humanoid.MaxHealth
}
targetsize = targetsize + 1
if killauracframe["Enabled"] then
lplr.Character:SetPrimaryPartCFrame(CFrame.new(lplr.Character.PrimaryPart.Position, Vector3.new(v.Character:FindFirstChild("HumanoidRootPart").Position.X, lplr.Character.PrimaryPart.Position.Y, v.Character:FindFirstChild("HumanoidRootPart").Position.Z)))
end
if killauratick <= tick() then
tool:Activate()
killauratick = tick() + (1 / killauraaps["GetRandomValue"]())
end
firetouchinterest(touch.Parent, v.Character.Head, 1)
firetouchinterest(touch.Parent, v.Character.Head, 0)
end
end
targetinfo.UpdateInfo(targettable, targetsize)
end
end
end)
end, function() game:GetService("RunService"):UnbindFromRenderStep("Killaura") end, true)
killauraaps = Killaura.CreateTwoSlider("Attacks per second", 1, 20, function(val) end, false, 8, 12)
killaurarange = Killaura.CreateSlider("Attack range", 1, 20, function(val) end)
killauraangle = Killaura.CreateSlider("Max angle", 1, 360, function(val) end, 90)
killauramouse = Killaura.CreateToggle("Require mouse down", function() end, function() end)
killauracframe = Killaura.CreateToggle("Face target", function() end, function() end)
local longjumpboost = {["Value"] = 1}
local longjump = GuiLibrary["ObjectsThatCanBeSaved"]["BlatantWindow"]["Api"].CreateOptionsButton("LongJump", function()
game:GetService("RunService"):BindToRenderStep("LongJump", 1, function()
if isAlive() then
if (lplr.Character.Humanoid:GetState() == Enum.HumanoidStateType.Freefall or lplr.Character.Humanoid:GetState() == Enum.HumanoidStateType.Jumping) and lplr.Character.Humanoid.MoveDirection ~= Vector3.new(0, 0, 0) then
lplr.Character.HumanoidRootPart.Velocity = lplr.Character.HumanoidRootPart.Velocity + lplr.Character.Humanoid.MoveDirection * (longjumpboost["Value"])
end
end
end)
end, function() game:GetService("RunService"):UnbindFromRenderStep("LongJump") end, true, function() return "" end, true)
longjumpboost = longjump.CreateSlider("Boost", 1, 150, function(val) end)
local phase
GuiLibrary["ObjectsThatCanBeSaved"]["BlatantWindow"]["Api"].CreateOptionsButton("Phase", function()
phase = game:GetService('RunService').Stepped:Connect(function()
if isAlive() then
for i, part in pairs(lplr.Character:GetDescendants()) do
if part:IsA("BasePart") and part.CanCollide == true then
part.CanCollide = false
end
end
end
end)
end, function()
phase:Disconnect()
end, true, function() return "" end, "Lets you phase/clip through walls")
local speedval = {["Value"] = 1}
local speedmethod = {["Value"] = "AntiCheat A"}
local speedjump = {["Enabled"] = false}
local bodyvelo
local speed = GuiLibrary["ObjectsThatCanBeSaved"]["BlatantWindow"]["Api"].CreateOptionsButton("Speed", function()
game:GetService("RunService"):BindToRenderStep("Speed", 1, function(delta)
if isAlive() then
if speedmethod["Value"] == "AntiCheat A" then
if (bodyvelo == nil or bodyvelo ~= nil and bodyvelo.Parent ~= lplr.Character.HumanoidRootPart) then
bodyvelo = Instance.new("BodyVelocity")
bodyvelo.Parent = lplr.Character.HumanoidRootPart
bodyvelo.MaxForce = Vector3.new(100000, 0, 100000)
else
bodyvelo.Velocity = lplr.Character.Humanoid.MoveDirection * speedval["Value"]
end
elseif speedmethod["Value"] == "AntiCheat B" then
if (bodyvelo ~= nil) then
bodyvelo:Remove()
end
lplr.Character.HumanoidRootPart.CFrame = lplr.Character.HumanoidRootPart.CFrame + (lplr.Character.Humanoid.MoveDirection * (speedval["Value"] * delta))
end
if speedjump["Enabled"] then
if (lplr.Character.Humanoid:GetState() == Enum.HumanoidStateType.Running or lplr.Character.Humanoid:GetState() == Enum.HumanoidStateType.RunningNoPhysics) and lplr.Character.Humanoid.MoveDirection ~= Vector3.new(0, 0, 0) then
if speedmethod["Value"] == "AntiCheat A" then
lplr.Character.HumanoidRootPart.Velocity = Vector3.new(lplr.Character.HumanoidRootPart.Velocity.X, 20, lplr.Character.HumanoidRootPart.Velocity.Z)
elseif speedmethod["Value"] == "AntiCheat B" then
lplr.Character.HumanoidRootPart.CFrame = lplr.Character.HumanoidRootPart.CFrame + Vector3.new(0, 0.2, 0)
end
end
end
end
end)
end, function()
if bodyvelo then
bodyvelo:Remove()
end
game:GetService("RunService"):UnbindFromRenderStep("Speed")
end, true, function() return " "..speedmethod["Value"] end, true)
speedmethod = speed.CreateDropdown("Mode", {"AntiCheat A", "AntiCheat B"}, function(val) end)
speedval = speed.CreateSlider("Speed", 1, 150, function(val) end)
speedjump = speed.CreateToggle("AutoJump", function() end, function() end)
local healthColorToPosition = {
[Vector3.new(Color3.fromRGB(255, 28, 0).r,
Color3.fromRGB(255, 28, 0).g,
Color3.fromRGB(255, 28, 0).b)] = 0.1;
[Vector3.new(Color3.fromRGB(250, 235, 0).r,
Color3.fromRGB(250, 235, 0).g,
Color3.fromRGB(250, 235, 0).b)] = 0.5;
[Vector3.new(Color3.fromRGB(27, 252, 107).r,
Color3.fromRGB(27, 252, 107).g,
Color3.fromRGB(27, 252, 107).b)] = 0.8;
}
local min = 0.1
local minColor = Color3.fromRGB(255, 28, 0)
local max = 0.8
local maxColor = Color3.fromRGB(27, 252, 107)
local function HealthbarColorTransferFunction(healthPercent)
if healthPercent < min then
return minColor
elseif healthPercent > max then
return maxColor
end
local numeratorSum = Vector3.new(0,0,0)
local denominatorSum = 0
for colorSampleValue, samplePoint in pairs(healthColorToPosition) do
local distance = healthPercent - samplePoint
if distance == 0 then
return Color3.new(colorSampleValue.x, colorSampleValue.y, colorSampleValue.z)
else
local wi = 1 / (distance*distance)
numeratorSum = numeratorSum + wi * colorSampleValue
denominatorSum = denominatorSum + wi
end
end
local result = numeratorSum / denominatorSum
return Color3.new(result.x, result.y, result.z)
end
local ESPFolder = Instance.new("Folder")
ESPFolder.Name = "ESPFolder"
ESPFolder.Parent = GuiLibrary["MainGui"]
players.PlayerRemoving:connect(function(plr)
if ESPFolder:FindFirstChild(plr.Name) then
ESPFolder[plr.Name]:Remove()
end
end)
local ESPColor = {["Value"] = 0.44}
local ESPHealthBar = {["Enabled"] = false}
local ESPMethod = {["Value"] = "2D"}
local ESP = GuiLibrary["ObjectsThatCanBeSaved"]["RenderWindow"]["Api"].CreateOptionsButton("ESP", function()
game:GetService("RunService"):BindToRenderStep("ESP", 500, function()
for i,plr in pairs(players:GetChildren()) do
if ESPMethod["Value"] == "2D" then
local thing
if ESPFolder:FindFirstChild(plr.Name) then
thing = ESPFolder[plr.Name]
thing.Visible = false
thing.Line1.BackgroundColor3 = (GuiLibrary["ObjectsThatCanBeSaved"]["Use colorToggle"]["Api"]["Enabled"] and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"], 1, 1)) or tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color or Color3.fromHSV(ESPColor["Value"], 1, 1)
thing.Line2.BackgroundColor3 = (GuiLibrary["ObjectsThatCanBeSaved"]["Use colorToggle"]["Api"]["Enabled"] and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"], 1, 1)) or tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color or Color3.fromHSV(ESPColor["Value"], 1, 1)
thing.Line3.BackgroundColor3 = (GuiLibrary["ObjectsThatCanBeSaved"]["Use colorToggle"]["Api"]["Enabled"] and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"], 1, 1)) or tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color or Color3.fromHSV(ESPColor["Value"], 1, 1)
thing.Line4.BackgroundColor3 = (GuiLibrary["ObjectsThatCanBeSaved"]["Use colorToggle"]["Api"]["Enabled"] and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"], 1, 1)) or tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color or Color3.fromHSV(ESPColor["Value"], 1, 1)
else
thing = Instance.new("Frame")
thing.BackgroundTransparency = 1
thing.BorderSizePixel = 0
thing.Visible = false
thing.Name = plr.Name
thing.Parent = ESPFolder
local line1 = Instance.new("Frame")
line1.BorderSizePixel = 0
line1.Name = "Line1"
line1.ZIndex = 2
line1.Size = UDim2.new(1, -2, 0, 1)
line1.Position = UDim2.new(0, 1, 0, 1)
line1.BackgroundColor3 = (GuiLibrary["ObjectsThatCanBeSaved"]["Use colorToggle"]["Api"]["Enabled"] and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"], 1, 1)) or tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color or Color3.fromHSV(ESPColor["Value"], 1, 1)
line1.Parent = thing
local line2 = Instance.new("Frame")
line2.BorderSizePixel = 0
line2.Name = "Line2"
line2.Size = UDim2.new(1, -2, 0, 1)
line2.ZIndex = 2
line2.Position = UDim2.new(0, 1, 1, -2)
line2.BackgroundColor3 = (GuiLibrary["ObjectsThatCanBeSaved"]["Use colorToggle"]["Api"]["Enabled"] and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"], 1, 1)) or tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color or Color3.fromHSV(ESPColor["Value"], 1, 1)
line2.Parent = thing
local line3 = Instance.new("Frame")
line3.BorderSizePixel = 0
line3.Name = "Line3"
line3.Size = UDim2.new(0, 1, 1, -2)
line3.Position = UDim2.new(0, 1, 0, 1)
line3.ZIndex = 2
line3.BackgroundColor3 = (GuiLibrary["ObjectsThatCanBeSaved"]["Use colorToggle"]["Api"]["Enabled"] and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"], 1, 1)) or tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color or Color3.fromHSV(ESPColor["Value"], 1, 1)
line3.Parent = thing
local line4 = Instance.new("Frame")
line4.BorderSizePixel = 0
line4.Name = "Line4"
line4.Size = UDim2.new(0, 1, 1, -2)
line4.Position = UDim2.new(1, -2, 0, 1)
line4.ZIndex = 2
line4.BackgroundColor3 = (GuiLibrary["ObjectsThatCanBeSaved"]["Use colorToggle"]["Api"]["Enabled"] and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"], 1, 1)) or tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color or Color3.fromHSV(ESPColor["Value"], 1, 1)
line4.Parent = thing
local line1clone = line1:Clone()
line1clone.ZIndex = 1
line1clone.Size = UDim2.new(1, 0, 0, 3)
line1clone.Position = UDim2.new(0, 0, 0, 0)
line1clone.BackgroundColor3 = Color3.new(0, 0, 0)
line1clone.Parent = thing
local line2clone = line2:Clone()
line2clone.ZIndex = 1
line2clone.Size = UDim2.new(1, 0, 0, 3)
line2clone.Position = UDim2.new(0, 0, 1, -3)
line2clone.BackgroundColor3 = Color3.new(0, 0, 0)
line2clone.Parent = thing
local line3clone = line3:Clone()
line3clone.ZIndex = 1
line3clone.Size = UDim2.new(0, 3, 1, 0)
line3clone.Position = UDim2.new(0, 0, 0, 0)
line3clone.BackgroundColor3 = Color3.new(0, 0, 0)
line3clone.Parent = thing
local line4clone = line4:Clone()
line4clone.ZIndex = 1
line4clone.Size = UDim2.new(0, 3, 1, 0)
line4clone.Position = UDim2.new(1, -3, 0, 0)
line4clone.BackgroundColor3 = Color3.new(0, 0, 0)
line4clone.Parent = thing
local healthline = Instance.new("Frame")
healthline.BorderSizePixel = 0
healthline.Name = "HealthLineMain"
healthline.ZIndex = 2
healthline.AnchorPoint = Vector2.new(0, 1)
healthline.Visible = ESPHealthBar["Enabled"]
healthline.Size = UDim2.new(0, 1, 1, -2)
healthline.Position = UDim2.new(0, -4, 1, -1)
healthline.BackgroundColor3 = Color3.new(0, 1, 0)
healthline.Parent = thing
local healthlineclone = healthline:Clone()
healthlineclone.ZIndex = 1
healthlineclone.AnchorPoint = Vector2.new(0, 0)
healthlineclone.Size = UDim2.new(0, 3, 1, 0)
healthlineclone.Visible = ESPHealthBar["Enabled"]
healthlineclone.Name = "HealthLineBKG"
healthlineclone.Position = UDim2.new(0, -5, 0, 0)
healthlineclone.BackgroundColor3 = Color3.new(0, 0, 0)
healthlineclone.Parent = thing
end
if isPlayerTargetable(plr, false, false) then
local rootPos, rootVis = cam:WorldToViewportPoint(plr.Character.HumanoidRootPart.Position)
local rootSize = (plr.Character.HumanoidRootPart.Size.X * 1500) * (1 / GuiLibrary["MainRescale"].Scale)
local headPos, headVis = cam:WorldToViewportPoint(plr.Character.Head.Position + Vector3.new(0, 1, 0))
local legPos, legVis = cam:WorldToViewportPoint(plr.Character.HumanoidRootPart.Position - Vector3.new(0, 4 + plr.Character.Humanoid.HipHeight, 0))
rootPos = rootPos * (1 / GuiLibrary["MainRescale"].Scale)
if rootVis then
if ESPHealthBar["Enabled"] then
local color = HealthbarColorTransferFunction(plr.Character.Humanoid.Health / plr.Character.Humanoid.MaxHealth)
thing.HealthLineMain.BackgroundColor3 = color
thing.HealthLineMain.Size = UDim2.new(0, 1, (plr.Character.Humanoid.Health / plr.Character.Humanoid.MaxHealth), -2)
end
thing.Visible = rootVis
thing.Size = UDim2.new(0, rootSize / rootPos.Z, 0, headPos.Y - legPos.Y)
thing.Position = UDim2.new(0, rootPos.X - thing.Size.X.Offset / 2, 0, (rootPos.Y - thing.Size.Y.Offset / 2) - 36)
end
end
end
if ESPMethod["Value"] == "Skeleton" then
local thing
if ESPFolder:FindFirstChild(plr.Name) then
thing = ESPFolder[plr.Name]
thing.Visible = false
for linenum, line in pairs(thing:GetChildren()) do
line.BackgroundColor3 = (GuiLibrary["ObjectsThatCanBeSaved"]["Use colorToggle"]["Api"]["Enabled"] and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"], 1, 1)) or tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color or Color3.fromHSV(ESPColor["Value"], 1, 1)
end
else
thing = Instance.new("Frame")
thing.BackgroundTransparency = 1
thing.BorderSizePixel = 0
thing.Visible = false
thing.Name = plr.Name
thing.Parent = ESPFolder
local line1 = Instance.new("Frame")
line1.BorderSizePixel = 0
line1.Name = "TopTorsoLine"
line1.AnchorPoint = Vector2.new(0.5, 0.5)
line1.ZIndex = 2
line1.Size = UDim2.new(0, 0, 0, 0)
line1.Position = UDim2.new(0, 0, 0, 0)
line1.BackgroundColor3 = (GuiLibrary["ObjectsThatCanBeSaved"]["Use colorToggle"]["Api"]["Enabled"] and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"], 1, 1)) or tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color or Color3.fromHSV(ESPColor["Value"], 1, 1)
line1.Parent = thing
local line2 = line1:Clone()
line2.Name = "MiddleTorsoLine"
line2.Parent = thing
local line3 = line1:Clone()
line3.Name = "BottomTorsoLine"
line3.Parent = thing
local line4 = line1:Clone()
line4.Name = "LeftArm"
line4.Parent = thing
local line5 = line1:Clone()
line5.Name = "RightArm"
line5.Parent = thing
local line6 = line1:Clone()
line6.Name = "LeftLeg"
line6.Parent = thing
local line7 = line1:Clone()
line7.Name = "RightLeg"
line7.Parent = thing
local line8 = line1:Clone()
line8.Name = "Head"
line8.Parent = thing
local line9 = line1:Clone()
line9.Name = "HeadForward"
line9.Parent = thing
end
if isPlayerTargetable(plr, false, false) and plr.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
local rootPos, rootVis = cam:WorldToViewportPoint(plr.Character.HumanoidRootPart.Position)
if rootVis and plr.Character:FindFirstChild("Torso") and plr.Character:FindFirstChild("Left Arm") and plr.Character:FindFirstChild("Right Arm") and plr.Character:FindFirstChild("Left Leg") and plr.Character:FindFirstChild("Right Leg") and plr.Character:FindFirstChild("Head") then
thing.Visible = true
local head = CalculateObjectPosition((plr.Character["Head"].CFrame).p)
local headfront = CalculateObjectPosition((plr.Character["Head"].CFrame * CFrame.new(0, 0, -0.5)).p)
local toplefttorso = CalculateObjectPosition((plr.Character["Torso"].CFrame * CFrame.new(-1.5, 1, 0)).p)
local toprighttorso = CalculateObjectPosition((plr.Character["Torso"].CFrame * CFrame.new(1.5, 1, 0)).p)
local toptorso = CalculateObjectPosition((plr.Character["Torso"].CFrame * CFrame.new(0, 1, 0)).p)
local bottomtorso = CalculateObjectPosition((plr.Character["Torso"].CFrame * CFrame.new(0, -1, 0)).p)
local bottomlefttorso = CalculateObjectPosition((plr.Character["Torso"].CFrame * CFrame.new(-0.5, -1, 0)).p)
local bottomrighttorso = CalculateObjectPosition((plr.Character["Torso"].CFrame * CFrame.new(0.5, -1, 0)).p)
local leftarm = CalculateObjectPosition((plr.Character["Left Arm"].CFrame * CFrame.new(0, -0.8, 0)).p)
local rightarm = CalculateObjectPosition((plr.Character["Right Arm"].CFrame * CFrame.new(0, -0.8, 0)).p)
local leftleg = CalculateObjectPosition((plr.Character["Left Leg"].CFrame * CFrame.new(0, -0.8, 0)).p)
local rightleg = CalculateObjectPosition((plr.Character["Right Leg"].CFrame * CFrame.new(0, -0.8, 0)).p)
CalculateLine(toplefttorso, toprighttorso, thing.TopTorsoLine)
CalculateLine(toptorso, bottomtorso, thing.MiddleTorsoLine)
CalculateLine(bottomlefttorso, bottomrighttorso, thing.BottomTorsoLine)
CalculateLine(toplefttorso, leftarm, thing.LeftArm)
CalculateLine(toprighttorso, rightarm, thing.RightArm)
CalculateLine(bottomlefttorso, leftleg, thing.LeftLeg)
CalculateLine(bottomrighttorso, rightleg, thing.RightLeg)
CalculateLine(toptorso, head, thing.Head)
CalculateLine(head, headfront, thing.HeadForward)
end
end
end
end
end)
end, function() game:GetService("RunService"):UnbindFromRenderStep("ESP") ESPFolder:ClearAllChildren() end, true)
ESPColor = ESP.CreateColorSlider("Player Color", function(val) end)
ESPMethod = ESP.CreateDropdown("Mode", {"2D", "Skeleton"}, function(val)
ESPFolder:ClearAllChildren()
ESPHealthBar["Object"].Visible = (val == "2D")
end)
ESPHealthBar = ESP.CreateToggle("Health Bar", function()
for i,v in pairs(ESPFolder:GetChildren()) do
v.HealthLineMain.Visible = true
v.HealthLineBKG.Visible = true
end
end, function()
for i,v in pairs(ESPFolder:GetChildren()) do
v.HealthLineMain.Visible = false
v.HealthLineBKG.Visible = false
end
end)
local ChamsFolder = Instance.new("Folder")
ChamsFolder.Name = "ChamsFolder"
ChamsFolder.Parent = GuiLibrary["MainGui"]
players.PlayerRemoving:connect(function(plr)
if ChamsFolder:FindFirstChild(plr.Name) then
ChamsFolder[plr.Name]:Remove()
end
end)
local ChamsColor = {["Value"] = 0.44}
local ChamsTransparency = {["Value"] = 1}
local ChamsOnTop = {["Enabled"] = true}
local chamobjects = {["Head"] = true, ["Torso"] = true, ["UpperTorso"] = true, ["LowerTorso"] = true, ["Left Arm"] = true, ["Left Leg"] = true, ["Right Arm"] = true, ["Right Leg"] = true, ["LeftLowerLeg"] = true, ["RightLowerLeg"] = true, ["LeftUpperLeg"] = true, ["RightUpperLeg"] = true, ["LeftFoot"] = true, ["RightFoot"] = true, ["LeftLowerArm"] = true, ["RightLowerArm"] = true, ["LeftUpperArm"] = true, ["RightUpperArm"] = true, ["LeftHand"] = true, ["RightHand"] = true}
local Chams = GuiLibrary["ObjectsThatCanBeSaved"]["RenderWindow"]["Api"].CreateOptionsButton("Chams", function()
game:GetService("RunService"):BindToRenderStep("Chams", 500, function()
for i,plr in pairs(players:GetChildren()) do
local thing
if ChamsFolder:FindFirstChild(plr.Name) then
thing = ChamsFolder[plr.Name]
for partnumber, part in pairs(thing:GetChildren()) do
part.Visible = false
part.Color3 = (GuiLibrary["ObjectsThatCanBeSaved"]["Use colorToggle"]["Api"]["Enabled"] and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"], 1, 1)) or tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color or Color3.fromHSV(ChamsColor["Value"], 1, 1)
end
end
if isPlayerTargetable(plr, false, false) then
if ChamsFolder:FindFirstChild(plr.Name) == nil then
local chamfolder = Instance.new("Folder")
chamfolder.Name = plr.Name
chamfolder.Parent = ChamsFolder
thing = chamfolder
for partnumber, part in pairs(plr.Character:GetChildren()) do
if chamobjects[part.Name] then
local boxhandle = Instance.new("BoxHandleAdornment")
boxhandle.Size = (part.Name == "Head" and Vector3.new(1.25, 1.25, 1.25) or part.Size) + Vector3.new(.01, .01, .01)
boxhandle.AlwaysOnTop = ChamsOnTop["Enabled"]
boxhandle.ZIndex = 10
boxhandle.Visible = true
boxhandle.Color3 = (GuiLibrary["ObjectsThatCanBeSaved"]["Use colorToggle"]["Api"]["Enabled"] and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"], 1, 1)) or tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color or Color3.fromHSV(ChamsColor["Value"], 1, 1)
boxhandle.Name = part.Name
boxhandle.Parent = chamfolder
end
end
end
for partnumber, part in pairs(thing:GetChildren()) do
part.Visible = true
if plr.Character:FindFirstChild(part.Name) then
part.Adornee = plr.Character[part.Name]
part.AlwaysOnTop = ChamsOnTop["Enabled"]
part.Transparency = ChamsTransparency["Value"] / 100
end
end
end
end
end)
end, function() game:GetService("RunService"):UnbindFromRenderStep("Chams") ChamsFolder:ClearAllChildren() end, true, function() return "" end, "testing")
ChamsColor = Chams.CreateColorSlider("Player Color", function(val) end)
ChamsTransparency = Chams.CreateSlider("Transparency", 1, 100, function(val) end, 50)
ChamsOnTop = Chams.CreateToggle("Bypass Walls", function() end, function() end, true)
local lightingsettings = {}
local lightingconnection
local lightingchanged = false
GuiLibrary["ObjectsThatCanBeSaved"]["RenderWindow"]["Api"].CreateOptionsButton("Fullbright", function()
lightingsettings["Brightness"] = lighting.Brightness
lightingsettings["ClockTime"] = lighting.ClockTime
lightingsettings["FogEnd"] = lighting.FogEnd
lightingsettings["GlobalShadows"] = lighting.GlobalShadows
lightingsettings["OutdoorAmbient"] = lighting.OutdoorAmbient
lightingchanged = false
lighting.Brightness = 2
lighting.ClockTime = 14
lighting.FogEnd = 100000
lighting.GlobalShadows = false
lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128)
lightingchanged = true
lightingconnection = lighting.Changed:connect(function()
if not lightingchanged then
lightingsettings["Brightness"] = lighting.Brightness
lightingsettings["ClockTime"] = lighting.ClockTime
lightingsettings["FogEnd"] = lighting.FogEnd
lightingsettings["GlobalShadows"] = lighting.GlobalShadows
lightingsettings["OutdoorAmbient"] = lighting.OutdoorAmbient
lightingchanged = true
lighting.Brightness = 2
lighting.ClockTime = 14
lighting.FogEnd = 100000
lighting.GlobalShadows = false
lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128)
lightingchanged = false
end
end)
end, function() for name,thing in pairs(lightingsettings) do lighting[name] = thing lightingconnection:Disconnect() end end, false)
local NameTagsFolder = Instance.new("Folder")
NameTagsFolder.Name = "NameTagsFolder"
NameTagsFolder.Parent = GuiLibrary["MainGui"]
players.PlayerRemoving:connect(function(plr)
if NameTagsFolder:FindFirstChild(plr.Name) then
NameTagsFolder[plr.Name]:Remove()
end
end)
local NameTagsColor = {["Value"] = 0.44}
local NameTagsDisplayName = {["Enabled"] = false}
local NameTagsHealth = {["Enabled"] = false}
local NameTagsDistance = {["Enabled"] = false}
local NameTags = GuiLibrary["ObjectsThatCanBeSaved"]["RenderWindow"]["Api"].CreateOptionsButton("NameTags", function()
game:GetService("RunService"):BindToRenderStep("NameTags", 500, function()
for i,plr in pairs(players:GetChildren()) do
local thing
if NameTagsFolder:FindFirstChild(plr.Name) then
thing = NameTagsFolder[plr.Name]
thing.Visible = false
else
thing = Instance.new("TextLabel")
thing.BackgroundTransparency = 0.5
thing.BackgroundColor3 = Color3.new(0, 0, 0)
thing.BorderSizePixel = 0
thing.Visible = false
thing.RichText = true
thing.Name = plr.Name
thing.Font = (GuiLibrary["ObjectsThatCanBeSaved"]["VapeOptionsSmooth fontToggle"]["Api"]["Enabled"] and Enum.Font.SourceSans or Enum.Font.Sarpanch)
thing.TextSize = 14
if plr.Character and plr.Character:FindFirstChild("Humanoid") and plr.Character:FindFirstChild("HumanoidRootPart") then
local rawText = (NameTagsDisplayName["Enabled"] and plr.DisplayName ~= nil and plr.DisplayName or plr.Name)
if NameTagsHealth["Enabled"] then
rawText = (NameTagsDisplayName["Enabled"] and plr.DisplayName ~= nil and plr.DisplayName or plr.Name).." "..math.floor(plr.Character.Humanoid.Health)
end
local color = HealthbarColorTransferFunction(plr.Character.Humanoid.Health / plr.Character.Humanoid.MaxHealth)
local modifiedText = (NameTagsDistance["Enabled"] and isAlive() and '<font color="rgb(85, 255, 85)">[</font>'..math.floor((lplr.Character.HumanoidRootPart.Position - plr.Character.HumanoidRootPart.Position).magnitude)..'<font color="rgb(85, 255, 85)">]</font> ' or '')..(NameTagsDisplayName["Enabled"] and plr.DisplayName ~= nil and plr.DisplayName or plr.Name)..(NameTagsHealth["Enabled"] and ' <font color="rgb('..tostring(math.floor(color.R * 255))..','..tostring(math.floor(color.G * 255))..','..tostring(math.floor(color.B * 255))..')">'..math.floor(plr.Character.Humanoid.Health).."</font>" or '')
local nametagSize = game:GetService("TextService"):GetTextSize(rawText, thing.TextSize, thing.Font, Vector2.new(100000, 100000))
thing.Size = UDim2.new(0, nametagSize.X + 4, 0, nametagSize.Y)
thing.Text = modifiedText
else
local nametagSize = game:GetService("TextService"):GetTextSize(plr.Name, thing.TextSize, thing.Font, Vector2.new(100000, 100000))
thing.Size = UDim2.new(0, nametagSize.X + 4, 0, nametagSize.Y)
thing.Text = plr.Name
end
thing.TextColor3 = tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color or (GuiLibrary["ObjectsThatCanBeSaved"]["Use colorToggle"]["Api"]["Enabled"] and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"], 1, 1)) or Color3.fromHSV(NameTagsColor["Value"], 1, 1)
thing.Parent = NameTagsFolder
end
if isPlayerTargetable(plr, false, false) then
local headPos, headVis = cam:WorldToViewportPoint((plr.Character.HumanoidRootPart:GetRenderCFrame() * CFrame.new(0, plr.Character.Head.Size.Y + plr.Character.HumanoidRootPart.Size.Y, 0)).Position)
headPos = headPos * (1 / GuiLibrary["MainRescale"].Scale)
if headVis then
local rawText = (NameTagsDistance["Enabled"] and isAlive() and "["..math.floor((lplr.Character.HumanoidRootPart.Position - plr.Character.HumanoidRootPart.Position).magnitude).."] " or "")..(NameTagsDisplayName["Enabled"] and plr.DisplayName ~= nil and plr.DisplayName or plr.Name)..(NameTagsHealth["Enabled"] and " "..math.floor(plr.Character.Humanoid.Health) or "")
local color = HealthbarColorTransferFunction(plr.Character.Humanoid.Health / plr.Character.Humanoid.MaxHealth)
local modifiedText = (NameTagsDistance["Enabled"] and isAlive() and '<font color="rgb(85, 255, 85)">[</font><font color="rgb(255, 255, 255)">'..math.floor((lplr.Character.HumanoidRootPart.Position - plr.Character.HumanoidRootPart.Position).magnitude)..'</font><font color="rgb(85, 255, 85)">]</font> ' or '')..(NameTagsDisplayName["Enabled"] and plr.DisplayName ~= nil and plr.DisplayName or plr.Name)..(NameTagsHealth["Enabled"] and ' <font color="rgb('..tostring(math.floor(color.R * 255))..','..tostring(math.floor(color.G * 255))..','..tostring(math.floor(color.B * 255))..')">'..math.floor(plr.Character.Humanoid.Health).."</font>" or '')
local nametagSize = game:GetService("TextService"):GetTextSize(rawText, thing.TextSize, thing.Font, Vector2.new(100000, 100000))
thing.Size = UDim2.new(0, nametagSize.X + 4, 0, nametagSize.Y)
thing.Text = modifiedText
thing.TextColor3 = tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color or (GuiLibrary["ObjectsThatCanBeSaved"]["Use colorToggle"]["Api"]["Enabled"] and table.find(GuiLibrary["FriendsObject"]["Friends"], plr.Name) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"], 1, 1)) or Color3.fromHSV(NameTagsColor["Value"], 1, 1)
thing.Visible = headVis
thing.Position = UDim2.new(0, headPos.X - thing.Size.X.Offset / 2, 0, (headPos.Y - thing.Size.Y.Offset) - 36)
end
end
end
end)