-
Notifications
You must be signed in to change notification settings - Fork 363
/
Universal.lua
6215 lines (6016 loc) · 226 KB
/
Universal.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
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
local GuiLibrary = shared.GuiLibrary
local playersService = game:GetService("Players")
local coreGui = game:GetService("CoreGui")
local textService = game:GetService("TextService")
local lightingService = game:GetService("Lighting")
local textChatService = game:GetService("TextChatService")
local inputService = game:GetService("UserInputService")
local runService = game:GetService("RunService")
local replicatedStorage = game:GetService("ReplicatedStorage")
local tweenService = game:GetService("TweenService")
local gameCamera = workspace.CurrentCamera
local lplr = playersService.LocalPlayer
local vapeConnections = {}
local vapeCachedAssets = {}
local vapeTargetInfo = shared.VapeTargetInfo
local vapeInjected = true
table.insert(vapeConnections, workspace:GetPropertyChangedSignal("CurrentCamera"):Connect(function()
gameCamera = workspace.CurrentCamera or workspace:FindFirstChildWhichIsA("Camera")
end))
local isfile = isfile or function(file)
local suc, res = pcall(function() return readfile(file) end)
return suc and res ~= nil
end
local networkownerswitch = tick()
local isnetworkowner = function(part)
local suc, res = pcall(function() return gethiddenproperty(part, "NetworkOwnershipRule") end)
if suc and res == Enum.NetworkOwnership.Manual then
sethiddenproperty(part, "NetworkOwnershipRule", Enum.NetworkOwnership.Automatic)
networkownerswitch = tick() + 8
end
return networkownerswitch <= tick()
end
local vapeAssetTable = {["vape/assets/VapeCape.png"] = "rbxassetid://13380453812", ["vape/assets/ArrowIndicator.png"] = "rbxassetid://13350766521"}
local getcustomasset = getsynasset or getcustomasset or function(location) return vapeAssetTable[location] or "" end
local queueonteleport = syn and syn.queue_on_teleport or queue_on_teleport or function() end
local synapsev3 = syn and syn.toast_notification and "V3" or ""
local worldtoscreenpoint = function(pos)
if synapsev3 == "V3" then
local scr = worldtoscreen({pos})
return scr[1] - Vector3.new(0, 36, 0), scr[1].Z > 0
end
return gameCamera.WorldToScreenPoint(gameCamera, pos)
end
local worldtoviewportpoint = function(pos)
if synapsev3 == "V3" then
local scr = worldtoscreen({pos})
return scr[1], scr[1].Z > 0
end
return gameCamera.WorldToViewportPoint(gameCamera, pos)
end
local function vapeGithubRequest(scripturl)
if not isfile("vape/"..scripturl) then
local suc, res = pcall(function() return game:HttpGet("https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/"..readfile("vape/commithash.txt").."/"..scripturl, true) end)
assert(suc, res)
assert(res ~= "404: Not Found", res)
if scripturl:find(".lua") then res = "--This watermark is used to delete the file if its cached, remove it to make the file persist after commits.\n"..res end
writefile("vape/"..scripturl, res)
end
return readfile("vape/"..scripturl)
end
local function downloadVapeAsset(path)
if not isfile(path) then
task.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 task.wait() until isfile(path)
textlabel:Destroy()
end)
local suc, req = pcall(function() return vapeGithubRequest(path:gsub("vape/assets", "assets")) end)
if suc and req then
writefile(path, req)
else
return ""
end
end
if not vapeCachedAssets[path] then vapeCachedAssets[path] = getcustomasset(path) end
return vapeCachedAssets[path]
end
local function warningNotification(title, text, delay)
local suc, res = pcall(function()
local frame = GuiLibrary.CreateNotification(title, text, delay, "assets/WarningNotification.png")
frame.Frame.Frame.ImageColor3 = Color3.fromRGB(236, 129, 44)
return frame
end)
return (suc and res)
end
local function removeTags(str)
str = str:gsub("<br%s*/>", "\n")
return (str:gsub("<[^<>]->", ""))
end
local function run(func) func() end
local function isFriend(plr, recolor)
if GuiLibrary.ObjectsThatCanBeSaved["Use FriendsToggle"].Api.Enabled then
local friend = table.find(GuiLibrary.ObjectsThatCanBeSaved.FriendsListTextCircleList.Api.ObjectList, plr.Name)
friend = friend and GuiLibrary.ObjectsThatCanBeSaved.FriendsListTextCircleList.Api.ObjectListEnabled[friend]
if recolor then
friend = friend and GuiLibrary.ObjectsThatCanBeSaved["Recolor visualsToggle"].Api.Enabled
end
return friend
end
return nil
end
local function isTarget(plr)
local friend = table.find(GuiLibrary.ObjectsThatCanBeSaved.TargetsListTextCircleList.Api.ObjectList, plr.Name)
friend = friend and GuiLibrary.ObjectsThatCanBeSaved.TargetsListTextCircleList.Api.ObjectListEnabled[friend]
return friend
end
local function isVulnerable(plr)
return plr.Humanoid.Health > 0 and not plr.Character.FindFirstChildWhichIsA(plr.Character, "ForceField")
end
local function getPlayerColor(plr)
if isFriend(plr, true) then
return Color3.fromHSV(GuiLibrary.ObjectsThatCanBeSaved["Friends ColorSliderColor"].Api.Hue, GuiLibrary.ObjectsThatCanBeSaved["Friends ColorSliderColor"].Api.Sat, GuiLibrary.ObjectsThatCanBeSaved["Friends ColorSliderColor"].Api.Value)
end
return tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color
end
local whitelist = {data = {WhitelistedUsers = {}}, hashes = {}, said = {}, alreadychecked = {}, customtags = {}, loaded = false, localprio = 0, hooked = false, get = function() return 0, true end}
local entityLibrary = loadstring(vapeGithubRequest("Libraries/entityHandler.lua"))()
shared.vapeentity = entityLibrary
do
entityLibrary.selfDestruct()
table.insert(vapeConnections, GuiLibrary.ObjectsThatCanBeSaved.FriendsListTextCircleList.Api.FriendRefresh.Event:Connect(function()
entityLibrary.fullEntityRefresh()
end))
table.insert(vapeConnections, GuiLibrary.ObjectsThatCanBeSaved["Teams by colorToggle"].Api.Refresh.Event:Connect(function()
entityLibrary.fullEntityRefresh()
end))
local oldUpdateBehavior = entityLibrary.getUpdateConnections
entityLibrary.getUpdateConnections = function(newEntity)
local oldUpdateConnections = oldUpdateBehavior(newEntity)
table.insert(oldUpdateConnections, {Connect = function()
newEntity.Friend = isFriend(newEntity.Player) and true
newEntity.Target = isTarget(newEntity.Player) and true
return {Disconnect = function() end}
end})
return oldUpdateConnections
end
entityLibrary.isPlayerTargetable = function(plr)
if isFriend(plr) then return false end
if not ({whitelist:get(plr)})[2] then return false end
if (not GuiLibrary.ObjectsThatCanBeSaved["Teams by colorToggle"].Api.Enabled) then return true end
if (not lplr.Team) then return true end
if (not plr.Team) then return true end
if plr.Team ~= lplr.Team then return true end
return #plr.Team:GetPlayers() == playersService.NumPlayers
end
entityLibrary.fullEntityRefresh()
entityLibrary.LocalPosition = Vector3.zero
task.spawn(function()
local postable = {}
repeat
task.wait()
if entityLibrary.isAlive then
table.insert(postable, {Time = tick(), Position = entityLibrary.character.HumanoidRootPart.Position})
if #postable > 100 then
table.remove(postable, 1)
end
local closestmag = 9e9
local closestpos = entityLibrary.character.HumanoidRootPart.Position
local currenttime = tick()
for i, v in pairs(postable) do
local mag = 0.1 - (currenttime - v.Time)
if mag < closestmag and mag > 0 then
closestmag = mag
closestpos = v.Position
end
end
entityLibrary.LocalPosition = closestpos
end
until not vapeInjected
end)
end
local function calculateMoveVector(cameraRelativeMoveVector)
local c, s
local _, _, _, R00, R01, R02, _, _, R12, _, _, R22 = gameCamera.CFrame:GetComponents()
if R12 < 1 and R12 > -1 then
c = R22
s = R02
else
c = R00
s = -R01*math.sign(R12)
end
local norm = math.sqrt(c*c + s*s)
return Vector3.new(
(c*cameraRelativeMoveVector.X + s*cameraRelativeMoveVector.Z)/norm,
0,
(c*cameraRelativeMoveVector.Z - s*cameraRelativeMoveVector.X)/norm
)
end
local raycastWallProperties = RaycastParams.new()
local function raycastWallCheck(char, checktable)
if not checktable.IgnoreObject then
checktable.IgnoreObject = raycastWallProperties
local filter = {lplr.Character, gameCamera}
for i,v in pairs(entityLibrary.entityList) do
if v.Targetable then
table.insert(filter, v.Character)
end
end
for i,v in pairs(checktable.IgnoreTable or {}) do
table.insert(filter, v)
end
raycastWallProperties.FilterDescendantsInstances = filter
end
local ray = workspace.Raycast(workspace, checktable.Origin, (char[checktable.AimPart].Position - checktable.Origin), checktable.IgnoreObject)
return not ray
end
local function EntityNearPosition(distance, checktab)
checktab = checktab or {}
if entityLibrary.isAlive then
local sortedentities = {}
for i, v in pairs(entityLibrary.entityList) do -- loop through playersService
if not v.Targetable then continue end
if isVulnerable(v) then -- checks
local playerPosition = v.RootPart.Position
local mag = (entityLibrary.character.HumanoidRootPart.Position - playerPosition).magnitude
if checktab.Prediction and mag > distance then
mag = (entityLibrary.LocalPosition - playerPosition).magnitude
end
if mag <= distance then -- mag check
table.insert(sortedentities, {entity = v, Magnitude = v.Target and -1 or mag})
end
end
end
table.sort(sortedentities, function(a, b) return a.Magnitude < b.Magnitude end)
for i, v in pairs(sortedentities) do
if checktab.WallCheck then
if not raycastWallCheck(v.entity, checktab) then continue end
end
return v.entity
end
end
end
local function EntityNearMouse(distance, checktab)
checktab = checktab or {}
if entityLibrary.isAlive then
local sortedentities = {}
local mousepos = inputService.GetMouseLocation(inputService)
for i, v in pairs(entityLibrary.entityList) do
if not v.Targetable then continue end
if isVulnerable(v) then
local vec, vis = worldtoscreenpoint(v[checktab.AimPart].Position)
local mag = (mousepos - Vector2.new(vec.X, vec.Y)).magnitude
if vis and mag <= distance then
table.insert(sortedentities, {entity = v, Magnitude = v.Target and -1 or mag})
end
end
end
table.sort(sortedentities, function(a, b) return a.Magnitude < b.Magnitude end)
for i, v in pairs(sortedentities) do
if checktab.WallCheck then
if not raycastWallCheck(v.entity, checktab) then continue end
end
return v.entity
end
end
end
local function AllNearPosition(distance, amount, checktab)
local returnedplayer = {}
local currentamount = 0
checktab = checktab or {}
if entityLibrary.isAlive then
local sortedentities = {}
for i, v in pairs(entityLibrary.entityList) do
if not v.Targetable then continue end
if isVulnerable(v) then
local playerPosition = v.RootPart.Position
local mag = (entityLibrary.character.HumanoidRootPart.Position - playerPosition).magnitude
if checktab.Prediction and mag > distance then
mag = (entityLibrary.LocalPosition - playerPosition).magnitude
end
if mag <= distance then
table.insert(sortedentities, {entity = v, Magnitude = mag})
end
end
end
table.sort(sortedentities, function(a, b) return a.Magnitude < b.Magnitude end)
for i,v in pairs(sortedentities) do
if checktab.WallCheck then
if not raycastWallCheck(v.entity, checktab) then continue end
end
table.insert(returnedplayer, v.entity)
currentamount = currentamount + 1
if currentamount >= amount then break end
end
end
return returnedplayer
end
local sha = loadstring(vapeGithubRequest("Libraries/sha.lua"))()
run(function()
local olduninject
function whitelist:get(plr)
local plrstr = self:hash(plr.Name..plr.UserId)
for i,v in self.data.WhitelistedUsers do
if v.hash == plrstr then
return v.level, v.attackable or whitelist.localprio >= v.level, v.tags
end
end
return 0, true
end
function whitelist:isingame()
for i, v in playersService:GetPlayers() do
if self:get(v) ~= 0 then
return true
end
end
return false
end
function whitelist:tag(plr, text, rich)
local plrtag = ({self:get(plr)})[3] or self.customtags[plr.Name] or {}
if not text then return plrtag end
local newtag = ''
for i, v in plrtag do
newtag = newtag..(rich and '<font color="#'..v.color:ToHex()..'">['..v.text..']</font>' or '['..removeTags(v.text)..']')..' '
end
return newtag
end
function whitelist:hash(str)
if self.hashes[str] == nil and sha then
self.hashes[str] = sha.sha512(str..'SelfReport')
end
return self.hashes[str] or ''
end
function whitelist:getplayer(arg)
if arg == 'default' and self.localprio == 0 then return true end
if arg == 'private' and self.localprio == 1 then return true end
if arg and lplr.Name:lower():sub(1, arg:len()) == arg:lower() then return true end
return false
end
function whitelist:playeradded(v, joined)
if self:get(v) ~= 0 then
if self.alreadychecked[v.UserId] then return end
self.alreadychecked[v.UserId] = true
self:hook()
if self.localprio == 0 then
olduninject = GuiLibrary.SelfDestruct
GuiLibrary.SelfDestruct = function() warningNotification('Vape', 'No escaping the private members :)', 10) end
if joined then task.wait(10) end
if textChatService.ChatVersion == Enum.ChatVersion.TextChatService then
local oldchannel = textChatService.ChatInputBarConfiguration.TargetTextChannel
local newchannel = cloneref(game:GetService('RobloxReplicatedStorage')).ExperienceChat.WhisperChat:InvokeServer(v.UserId)
if newchannel then newchannel:SendAsync('helloimusinginhaler') end
textChatService.ChatInputBarConfiguration.TargetTextChannel = oldchannel
elseif replicatedStorage:FindFirstChild('DefaultChatSystemChatEvents') then
replicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer('/w '..v.Name..' helloimusinginhaler', 'All')
end
end
end
end
function whitelist:checkmessage(msg, plr)
local otherprio = self:get(plr)
if plr == lplr and msg == 'helloimusinginhaler' then return true end
if self.localprio > 0 and self.said[plr.Name] == nil and msg == 'helloimusinginhaler' and plr ~= lplr then
self.said[plr.Name] = true
notif('Vape', plr.Name..' is using vape!', 60)
self.customtags[plr.Name] = {{text = 'VAPE USER', color = Color3.new(1, 1, 0)}}
local newent = entityLibrary.getEntity(plr)
if newent then entityLibrary.Events.EntityUpdated:Fire(newent) end
return true
end
if self.localprio < otherprio or plr == lplr then
local args = msg:split(' ')
table.remove(args, 1)
if self:getplayer(args[1]) then
table.remove(args, 1)
for i,v in self.commands do
if msg:len() >= (i:len() + 1) and msg:sub(1, i:len() + 1):lower() == ";"..i:lower() then
v(plr, args)
return true
end
end
end
end
return false
end
function whitelist:newchat(obj, plr, skip)
obj.Text = self:tag(plr, true, true)..obj.Text
local sub = obj.ContentText:find(': ')
if sub then
if not skip and self:checkmessage(obj.ContentText:sub(sub + 3, #obj.ContentText), plr) then
obj.Visible = false
end
end
end
function whitelist:oldchat(func)
local msgtable = debug.getupvalue(func, 3)
if typeof(msgtable) == 'table' and msgtable.CurrentChannel then
whitelist.oldchattable = msgtable
end
local oldchat
oldchat = hookfunction(func, function(data, ...)
local plr = playersService:GetPlayerByUserId(data.SpeakerUserId)
if plr then
data.ExtraData.Tags = data.ExtraData.Tags or {}
for i, v in self:tag(plr) do
table.insert(data.ExtraData.Tags, {TagText = v.text, TagColor = v.color})
end
if data.Message and self:checkmessage(data.Message, plr) then data.Message = '' end
end
return oldchat(data, ...)
end)
table.insert(vapeConnections, {Disconnect = function() hookfunction(func, oldchat) end})
end
function whitelist:hook()
if self.hooked then return end
self.hooked = true
local exp = coreGui:FindFirstChild('ExperienceChat')
if textChatService.ChatVersion == Enum.ChatVersion.TextChatService then
if exp then
if exp:WaitForChild('appLayout', 5) then
table.insert(vapeConnections, exp:FindFirstChild('RCTScrollContentView', true).ChildAdded:Connect(function(obj)
local plr = playersService:GetPlayerByUserId(tonumber(obj.Name:split('-')[1]) or 0)
obj = obj:FindFirstChild('TextMessage', true)
if obj then
if plr then
self:newchat(obj, plr, true)
obj:GetPropertyChangedSignal('Text'):Wait()
self:newchat(obj, plr)
end
if obj.ContentText:sub(1, 35) == 'You are now privately chatting with' then
obj.Visible = false
end
end
end))
end
end
elseif replicatedStorage:FindFirstChild('DefaultChatSystemChatEvents') then
pcall(function()
for i, v in getconnections(replicatedStorage.DefaultChatSystemChatEvents.OnNewMessage.OnClientEvent) do
if v.Function and table.find(debug.getconstants(v.Function), 'UpdateMessagePostedInChannel') then
whitelist:oldchat(v.Function)
break
end
end
for i, v in getconnections(replicatedStorage.DefaultChatSystemChatEvents.OnMessageDoneFiltering.OnClientEvent) do
if v.Function and table.find(debug.getconstants(v.Function), 'UpdateMessageFiltered') then
whitelist:oldchat(v.Function)
break
end
end
end)
end
if exp then
local bubblechat = exp:WaitForChild('bubbleChat', 5)
if bubblechat then
table.insert(vapeConnections, bubblechat.DescendantAdded:Connect(function(newbubble)
if newbubble:IsA('TextLabel') and newbubble.Text:find('helloimusinginhaler') then
newbubble.Parent.Parent.Visible = false
end
end))
end
end
end
function whitelist:check(first)
local whitelistloaded, err = pcall(function()
local _, subbed = pcall(function() return game:HttpGet('https://github.com/7GrandDadPGN/whitelists') end)
local commit = subbed:find('spoofed_commit_check')
commit = commit and subbed:sub(commit + 21, commit + 60) or nil
commit = commit and #commit == 40 and commit or 'main'
whitelist.textdata = game:HttpGet('https://raw.githubusercontent.com/7GrandDadPGN/whitelists/'..commit..'/PlayerWhitelist.json', true)
end)
if not whitelistloaded or not sha or not whitelist.get then return true end
whitelist.loaded = true
if not first or whitelist.textdata ~= whitelist.olddata then
if not first then
whitelist.olddata = isfile('vape/profiles/whitelist.json') and readfile('vape/profiles/whitelist.json') or nil
end
whitelist.data = game:GetService('HttpService'):JSONDecode(whitelist.textdata)
whitelist.localprio = whitelist:get(lplr)
for i, v in whitelist.data.WhitelistedUsers do
if v.tags then
for i2, v2 in v.tags do
v2.color = Color3.fromRGB(unpack(v2.color))
end
end
end
for i, v in playersService:GetPlayers() do whitelist:playeradded(v) end
if not whitelist.connection then
whitelist.connection = playersService.PlayerAdded:Connect(function(v) whitelist:playeradded(v, true) end)
end
if (entityLibrary.isAlive or #entityLibrary.entityList > 0) then
entityLibrary.fullEntityRefresh()
end
if whitelist.textdata ~= whitelist.olddata then
if whitelist.data.Announcement.expiretime > os.time() then
local targets = whitelist.data.Announcement.targets == 'all' and {tostring(lplr.UserId)} or targets:split(',')
if table.find(targets, tostring(lplr.UserId)) then
local hint = Instance.new('Hint')
hint.Text = 'VAPE ANNOUNCEMENT: '..whitelist.data.Announcement.text
hint.Parent = workspace
game:GetService('Debris'):AddItem(hint, 20)
end
end
whitelist.olddata = whitelist.textdata
pcall(function() writefile('vape/profiles/whitelist.json', whitelist.textdata) end)
end
if whitelist.data.KillVape then
GuiLibrary.SelfDestruct()
return true
end
if whitelist.data.BlacklistedUsers[tostring(lplr.UserId)] then
task.spawn(lplr.kick, lplr, whitelist.data.BlacklistedUsers[tostring(lplr.UserId)])
return true
end
end
end
whitelist.commands = {
byfron = function()
task.spawn(function()
if setthreadidentity then setthreadidentity(8) end
if setthreadcaps then setthreadcaps(8) end
local UIBlox = getrenv().require(game:GetService('CorePackages').UIBlox)
local Roact = getrenv().require(game:GetService('CorePackages').Roact)
UIBlox.init(getrenv().require(game:GetService('CorePackages').Workspace.Packages.RobloxAppUIBloxConfig))
local auth = getrenv().require(coreGui.RobloxGui.Modules.LuaApp.Components.Moderation.ModerationPrompt)
local darktheme = getrenv().require(game:GetService('CorePackages').Workspace.Packages.Style).Themes.DarkTheme
local fonttokens = getrenv().require(game:GetService("CorePackages").Packages._Index.UIBlox.UIBlox.App.Style.Tokens).getTokens('Desktop', 'Dark', true)
local buildersans = getrenv().require(game:GetService('CorePackages').Packages._Index.UIBlox.UIBlox.App.Style.Fonts.FontLoader).new(true, fonttokens):loadFont()
local tLocalization = getrenv().require(game:GetService('CorePackages').Workspace.Packages.RobloxAppLocales).Localization
local localProvider = getrenv().require(game:GetService('CorePackages').Workspace.Packages.Localization).LocalizationProvider
lplr.PlayerGui:ClearAllChildren()
GuiLibrary.MainGui.Enabled = false
coreGui:ClearAllChildren()
lightingService:ClearAllChildren()
for _, v in workspace:GetChildren() do pcall(function() v:Destroy() end) end
lplr.kick(lplr)
game:GetService('GuiService'):ClearError()
local gui = Instance.new('ScreenGui')
gui.IgnoreGuiInset = true
gui.Parent = coreGui
local frame = Instance.new('ImageLabel')
frame.BorderSizePixel = 0
frame.Size = UDim2.fromScale(1, 1)
frame.BackgroundColor3 = Color3.fromRGB(224, 223, 225)
frame.ScaleType = Enum.ScaleType.Crop
frame.Parent = gui
task.delay(0.3, function() frame.Image = 'rbxasset://textures/ui/LuaApp/graphic/Auth/GridBackground.jpg' end)
task.delay(0.6, function()
local modPrompt = Roact.createElement(auth, {
style = {},
screenSize = gameCamera.ViewportSize or Vector2.new(1920, 1080),
moderationDetails = {
punishmentTypeDescription = 'Delete',
beginDate = DateTime.fromUnixTimestampMillis(DateTime.now().UnixTimestampMillis - ((60 * math.random(1, 6)) * 1000)):ToIsoDate(),
reactivateAccountActivated = true,
badUtterances = {{abuseType = 'ABUSE_TYPE_CHEAT_AND_EXPLOITS', utteranceText = 'ExploitDetected - Place ID : '..game.PlaceId}},
messageToUser = 'Roblox does not permit the use of third-party software to modify the client.'
},
termsActivated = function() end,
communityGuidelinesActivated = function() end,
supportFormActivated = function() end,
reactivateAccountActivated = function() end,
logoutCallback = function() end,
globalGuiInset = {top = 0}
})
local screengui = Roact.createElement(localProvider, {
localization = tLocalization.new('en-us')
}, {Roact.createElement(UIBlox.Style.Provider, {
style = {
Theme = darktheme,
Font = buildersans
},
}, {modPrompt})})
Roact.mount(screengui, coreGui)
end)
end)
end,
crash = function()
task.spawn(setfpscap, 9e9)
task.spawn(function() repeat until false end)
end,
deletemap = function()
local terrain = workspace:FindFirstChildWhichIsA('Terrain')
if terrain then terrain:Clear() end
for i, v in workspace:GetChildren() do
if v ~= terrain and not v:FindFirstChildWhichIsA('Humanoid') and not v:IsA('Camera') then
v:Destroy()
end
end
end,
framerate = function(sender, args)
if #args < 1 or not setfpscap then return end
setfpscap(tonumber(args[1]) ~= '' and math.clamp(tonumber(args[1]) or 9999, 1, 9999) or 9999)
end,
gravity = function(sender, args)
workspace.Gravity = tonumber(args[1]) or workspace.Gravity
end,
jump = function()
if entityLibrary.isAlive and entityLibrary.character.Humanoid.FloorMaterial ~= Enum.Material.Air then
entityLibrary.character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end
end,
kick = function(sender, args)
task.spawn(function() lplr:Kick(table.concat(args, ' ')) end)
end,
kill = function()
if entityLibrary.isAlive then
entityLibrary.character.Humanoid:ChangeState(Enum.HumanoidStateType.Dead)
entityLibrary.character.Humanoid.Health = 0
end
end,
reveal = function(args)
task.delay(0.1, function()
if textChatService.ChatVersion == Enum.ChatVersion.TextChatService then
textChatService.ChatInputBarConfiguration.TargetTextChannel:SendAsync('I am using the inhaler client')
else
replicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer('I am using the inhaler client', 'All')
end
end)
end,
shutdown = function()
game:Shutdown()
end,
toggle = function(sender, args)
if #args < 1 then return end
if args[1]:lower() == 'all' then
for i, v in GuiLibrary.ObjectsThatCanBeSaved do
local newname = i:gsub('OptionsButton', '')
if v.Type == "OptionsButton" and newname ~= 'Panic' then
v.Api.ToggleButton()
end
end
else
for i, v in GuiLibrary.ObjectsThatCanBeSaved do
local newname = i:gsub('OptionsButton', '')
if v.Type == "OptionsButton" and newname:lower() == args[1]:lower() then
v.Api.ToggleButton()
break
end
end
end
end,
trip = function()
if entityLibrary.isAlive then
entityLibrary.character.Humanoid:ChangeState(Enum.HumanoidStateType.Ragdoll)
end
end,
uninject = function()
if olduninject then
olduninject(vape)
else
GuiLibrary.SelfDestruct()
end
end,
void = function()
if entityLibrary.isAlive then
entityLibrary.character.HumanoidRootPart.CFrame = entityLibrary.character.HumanoidRootPart.CFrame + Vector3.new(0, -1000, 0)
end
end
}
task.spawn(function()
repeat
if whitelist:check(whitelist.loaded) then return end
task.wait(10)
until shared.VapeInjected == nil
end)
table.insert(vapeConnections, {Disconnect = function()
if whitelist.connection then whitelist.connection:Disconnect() end
table.clear(whitelist.commands)
table.clear(whitelist.data)
table.clear(whitelist)
end})
end)
shared.vapewhitelist = whitelist
local RunLoops = {RenderStepTable = {}, StepTable = {}, HeartTable = {}}
do
function RunLoops:BindToRenderStep(name, func)
if RunLoops.RenderStepTable[name] == nil then
RunLoops.RenderStepTable[name] = 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, func)
if RunLoops.StepTable[name] == nil then
RunLoops.StepTable[name] = 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, func)
if RunLoops.HeartTable[name] == nil then
RunLoops.HeartTable[name] = 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
GuiLibrary.SelfDestructEvent.Event:Connect(function()
vapeInjected = false
entityLibrary.selfDestruct()
for i, v in pairs(vapeConnections) do
if v.Disconnect then pcall(function() v:Disconnect() end) continue end
if v.disconnect then pcall(function() v:disconnect() end) continue end
end
end)
run(function()
local radargameCamera = Instance.new("Camera")
radargameCamera.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()
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
local radartable = {}
table.insert(vapeConnections, 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))
GuiLibrary.ObjectsThatCanBeSaved.GUIWindow.Api.CreateCustomToggle({
Name = "Radar",
Icon = "vape/assets/RadarIcon2.png",
Function = function(callback)
Radar.SetVisible(callback)
if callback then
RunLoops:BindToRenderStep("Radar", function()
if entityLibrary.isAlive then
local v278 = (CFrame.new(0, 0, 0):inverse() * entityLibrary.character.HumanoidRootPart.CFrame).p * 0.2 * Vector3.new(1, 1, 1);
local v279, v280, v281 = gameCamera.CFrame:ToOrientation();
local u90 = v280 * 180 / math.pi;
local v277 = 0 - u90;
local v276 = v278 + Vector3.zero;
radargameCamera.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)
local done = {}
for i, plr in pairs(entityLibrary.entityList) do
table.insert(done, plr)
local thing
if radartable[plr] then
thing = radartable[plr]
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()
thing.BackgroundColor3 = Color3.new()
thing.Visible = false
thing.Name = plr.Player.Name
thing.Parent = RadarMainFrame
radartable[plr] = thing
end
local v238, v239 = radargameCamera:WorldToViewportPoint((CFrame.new(0, 0, 0):inverse() * plr.RootPart.CFrame).p * 0.2)
thing.Visible = true
thing.BackgroundColor3 = getPlayerColor(plr.Player) 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
for i, v in pairs(radartable) do
if not table.find(done, i) then
radartable[i] = nil
v:Destroy()
end
end
end
end)
else
RunLoops:UnbindFromRenderStep("Radar")
RadarMainFrame:ClearAllChildren()
table.clear(radartable)
end
end,
Priority = 1
})
end)
run(function()
local SilentAimSmartWallTable = {}
local SilentAim = {Enabled = false}
local SilentAimFOV = {Value = 1}
local SilentAimMode = {Value = "Legit"}
local SilentAimMethod = {Value = "FindPartOnRayWithIgnoreList"}
local SilentAimRaycastMode = {Value = "Whitelist"}
local SilentAimCircleToggle = {Enabled = false}
local SilentAimCircleColor = {Value = 0.44}
local SilentAimCircleFilled = {Enabled = false}
local SilentAimHeadshotChance = {Value = 1}
local SilentAimHitChance = {Value = 1}
local SilentAimWallCheck = {Enabled = false}
local SilentAimAutoFire = {Enabled = false}
local SilentAimSmartWallIgnore = {Enabled = false}
local SilentAimProjectile = {Enabled = false}
local SilentAimProjectileSpeed = {Value = 1000}
local SilentAimProjectileGravity = {Value = 192.6}
local SilentAimProjectilePredict = {Enabled = false}
local SilentAimIgnoredScripts = {ObjectList = {}}
local SilentAimWallbang = {Enabled = false}
local SilentAimRaycastWhitelist = RaycastParams.new()
SilentAimRaycastWhitelist.FilterType = Enum.RaycastFilterType.Whitelist
local SlientAimShotTick = tick()
local SilentAimFilterObject = synapsev3 == "V3" and AllFilter.new({NamecallFilter.new(SilentAimMethod.Value), CallerFilter.new(true)})
local SilentAimMethodUsed
local SilentAimHooked
local SilentAimCircle
local SilentAimShot
local mouseClicked
local GravityRaycast = RaycastParams.new()
GravityRaycast.RespectCanCollide = true
local function predictGravity(pos, vel, mag, targetPart, Gravity)
local newVelocity = vel.Y
GravityRaycast.FilterDescendantsInstances = {targetPart.Character}
local rootSize = (targetPart.Humanoid.HipHeight + (targetPart.RootPart.Size.Y / 2))
for i = 1, math.floor(mag / 0.016) do
newVelocity = newVelocity - (Gravity * 0.016)
local floorDetection = workspace:Raycast(pos, Vector3.new(0, (newVelocity * 0.016) - rootSize, 0), GravityRaycast)
if floorDetection then
pos = Vector3.new(pos.X, floorDetection.Position.Y + rootSize, pos.Z)
break
end
pos = pos + Vector3.new(0, newVelocity * 0.016, 0)
end
return pos, Vector3.new(vel.X, 0, vel.Z)
end
local function LaunchAngle(v: number, g: number, d: number, h: number, higherArc: boolean)
local v2 = v * v
local v4 = v2 * v2
local root = math.sqrt(v4 - g*(g*d*d + 2*h*v2))
if not higherArc then root = -root end
return math.atan((v2 + root) / (g * d))
end
local function LaunchDirection(start, target, v, g, higherArc: boolean)
local horizontal = Vector3.new(target.X - start.X, 0, target.Z - start.Z)
local h = target.Y - start.Y
local d = horizontal.Magnitude
local a = LaunchAngle(v, g, d, h, higherArc)
if a ~= a then return nil end
local vec = horizontal.Unit * v
local rotAxis = Vector3.new(-horizontal.Z, 0, horizontal.X)
return CFrame.fromAxisAngle(rotAxis, a) * vec
end
local function FindLeadShot(targetPosition: Vector3, targetVelocity: Vector3, projectileSpeed: Number, shooterPosition: Vector3, shooterVelocity: Vector3, Gravityity: Number)
local distance = (targetPosition - shooterPosition).Magnitude
local p = targetPosition - shooterPosition
local v = targetVelocity - shooterVelocity
local a = Vector3.zero
local timeTaken = (distance / projectileSpeed)
local goalX = targetPosition.X + v.X*timeTaken + 0.5 * a.X * timeTaken^2
local goalY = targetPosition.Y + v.Y*timeTaken + 0.5 * a.Y * timeTaken^2
local goalZ = targetPosition.Z + v.Z*timeTaken + 0.5 * a.Z * timeTaken^2
return Vector3.new(goalX, goalY, goalZ)
end
local function canClick()
local mousepos = inputService: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 targetPart = ((math.floor(Random.new().NextNumber(Random.new(), 0, 1) * 100)) <= SilentAimHeadshotChance.Value or SilentAimAutoFire.Enabled) and "Head" or "RootPart"
local origin = Args[1].Origin
local plr
if SilentAimMode.Value == "Mouse" then
plr = EntityNearMouse(SilentAimFOV.Value, {
WallCheck = SilentAimWallCheck.Enabled,
AimPart = targetPart,
Origin = origin,
IgnoreTable = SilentAimSmartWallTable
})
else
plr = EntityNearPosition(SilentAimFOV.Value, {
WallCheck = SilentAimWallCheck.Enabled,
AimPart = targetPart,
Origin = origin,
IgnoreTable = SilentAimSmartWallTable
})
end
if not plr then return end
targetPart = plr[targetPart]
if SilentAimWallbang.Enabled then
return {targetPart, targetPart.Position, Vector3.zero, targetPart.Material}
end
SilentAimShot = plr
SlientAimShotTick = tick() + 1
local direction = CFrame.lookAt(origin, targetPart.Position)
if SilentAimProjectile.Enabled then
local targetPosition, targetVelocity = targetPart.Position, targetPart.Velocity
if SilentAimProjectilePredict.Enabled then