-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainScript.lua
2256 lines (2213 loc) · 93 KB
/
MainScript.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
--This watermark is used to delete the file if its cached, remove it to make the file persist after commits.
repeat task.wait() until game:IsLoaded()
local GuiLibrary
local VWFunctions
local baseDirectory = (shared.VapePrivate and "vapeprivate/" or "vape/")
local profilesDirectory = (shared.ClosetCheatMode and "ClosetProfiles/" or "Profiles/")
local vapeInjected = true
local oldRainbow = false
local errorPopupShown = false
local redownloadedAssets = false
local profilesLoaded = false
local teleportedServers = false
local gameCamera = workspace.CurrentCamera
local textService = game:GetService("TextService")
local playersService = game:GetService("Players")
local inputService = game:GetService("UserInputService")
local isfile = isfile or function(file)
local suc, res = pcall(function() return readfile(file) end)
return suc and res ~= nil
end
local setidentity = syn and syn.set_thread_identity or set_thread_identity or setidentity or setthreadidentity or function() end
local getidentity = syn and syn.get_thread_identity or get_thread_identity or getidentity or getthreadidentity or function() return 0 end
local vapeAssetTable = {
["vape/assets/AddItem.png"] = "rbxassetid://13350763121",
["vape/assets/AddRemoveIcon1.png"] = "rbxassetid://13350764147",
["vape/assets/ArrowIndicator.png"] = "rbxassetid://13350766521",
["vape/assets/BackIcon.png"] = "rbxassetid://13350767223",
["vape/assets/BindBackground.png"] = "rbxassetid://13350767577",
["vape/assets/BlatantIcon.png"] = "rbxassetid://13350767943",
["vape/assets/CircleListBlacklist.png"] = "rbxassetid://13350768647",
["vape/assets/CircleListWhitelist.png"] = "rbxassetid://13350769066",
["vape/assets/ColorSlider1.png"] = "rbxassetid://13350769439",
["vape/assets/ColorSlider2.png"] = "rbxassetid://13350769842",
["vape/assets/CombatIcon.png"] = "rbxassetid://13350770192",
["vape/assets/DownArrow.png"] = "rbxassetid://13350770749",
["vape/assets/ExitIcon1.png"] = "rbxassetid://13350771140",
["vape/assets/FriendsIcon.png"] = "rbxassetid://13350771464",
["vape/assets/HoverArrow.png"] = "rbxassetid://13350772201",
["vape/assets/HoverArrow2.png"] = "rbxassetid://13350772588",
["vape/assets/HoverArrow3.png"] = "rbxassetid://13350773014",
["vape/assets/HoverArrow4.png"] = "rbxassetid://13350773643",
["vape/assets/InfoNotification.png"] = "rbxassetid://13350774006",
["vape/assets/KeybindIcon.png"] = "rbxassetid://13350774323",
["vape/assets/LegitModeIcon.png"] = "rbxassetid://13436400428",
["vape/assets/MoreButton1.png"] = "rbxassetid://13350775005",
["vape/assets/MoreButton2.png"] = "rbxassetid://13350775731",
["vape/assets/MoreButton3.png"] = "rbxassetid://13350776241",
["vape/assets/NotificationBackground.png"] = "rbxassetid://13350776706",
["vape/assets/NotificationBar.png"] = "rbxassetid://13350777235",
["vape/assets/OnlineProfilesButton.png"] = "rbxassetid://13350777717",
["vape/assets/PencilIcon.png"] = "rbxassetid://13350778187",
["vape/assets/PinButton.png"] = "rbxassetid://13350778654",
["vape/assets/ProfilesIcon.png"] = "rbxassetid://13350779149",
["vape/assets/RadarIcon1.png"] = "rbxassetid://13350779545",
["vape/assets/RadarIcon2.png"] = "rbxassetid://13350779992",
["vape/assets/RainbowIcon1.png"] = "rbxassetid://13350780571",
["vape/assets/RainbowIcon2.png"] = "rbxassetid://13350780993",
["vape/assets/RightArrow.png"] = "rbxassetid://13350781908",
["vape/assets/SearchBarIcon.png"] = "rbxassetid://13350782420",
["vape/assets/SettingsWheel1.png"] = "rbxassetid://13350782848",
["vape/assets/SettingsWheel2.png"] = "rbxassetid://13350783258",
["vape/assets/SliderArrow1.png"] = "rbxassetid://13350783794",
["vape/assets/SliderArrowSeperator.png"] = "rbxassetid://13350784477",
["vape/assets/SliderButton1.png"] = "rbxassetid://13350785680",
["vape/assets/TargetIcon.png"] = "rbxassetid://13350786128",
["vape/assets/TargetIcon1.png"] = "rbxassetid://13350786776",
["vape/assets/TargetIcon2.png"] = "rbxassetid://13350787228",
["vape/assets/TargetIcon3.png"] = "rbxassetid://13350787729",
["vape/assets/TargetIcon4.png"] = "rbxassetid://13350788379",
["vape/assets/TargetInfoIcon1.png"] = "rbxassetid://13350788860",
["vape/assets/TargetInfoIcon2.png"] = "rbxassetid://13350789239",
["vape/assets/TextBoxBKG.png"] = "rbxassetid://13350789732",
["vape/assets/TextBoxBKG2.png"] = "rbxassetid://13350790229",
["vape/assets/TextGUIIcon1.png"] = "rbxassetid://13350790634",
["vape/assets/TextGUIIcon2.png"] = "rbxassetid://13350791175",
["vape/assets/TextGUIIcon3.png"] = "rbxassetid://13350791758",
["vape/assets/TextGUIIcon4.png"] = "rbxassetid://13350792279",
["vape/assets/ToggleArrow.png"] = "rbxassetid://13350792786",
["vape/assets/UpArrow.png"] = "rbxassetid://13350793386",
["vape/assets/UtilityIcon.png"] = "rbxassetid://13350793918",
["vape/assets/WarningNotification.png"] = "rbxassetid://13350794868",
["vape/assets/WindowBlur.png"] = "rbxassetid://13350795660",
["vape/assets/WorldIcon.png"] = "rbxassetid://13350796199",
["vape/assets/VapeIcon.png"] = "rbxassetid://13350808582",
["vape/assets/RenderIcon.png"] = "rbxassetid://13350832775",
["vape/assets/VapeLogo1.png"] = "rbxassetid://13350860863",
["vape/assets/VapeLogo3.png"] = "rbxassetid://13350872035",
["vape/assets/VapeLogo2.png"] = "rbxassetid://13350876307",
["vape/assets/VapeLogo4.png"] = "rbxassetid://13350877564"
}
if inputService:GetPlatform() ~= Enum.Platform.Windows then
--mobile exploit fix
getgenv().getsynasset = nil
getgenv().getcustomasset = nil
-- why is this needed
getsynasset = nil
getcustomasset = nil
end
local getcustomasset = getsynasset or getcustomasset or function(location) return vapeAssetTable[location] or "" end
local customassetcheck = (getsynasset or getcustomasset) and true
local queueonteleport = syn and syn.queue_on_teleport or queue_on_teleport or function() end
local delfile = delfile or function(file) writefile(file, "") end
local function displayErrorPopup(text, funclist)
local oldidentity = getidentity()
setidentity(8)
local ErrorPrompt = getrenv().require(game:GetService("CoreGui").RobloxGui.Modules.ErrorPrompt)
local prompt = ErrorPrompt.new("Default")
prompt._hideErrorCode = true
local gui = Instance.new("ScreenGui", game:GetService("CoreGui"))
prompt:setErrorTitle("Vape")
local funcs
if funclist then
funcs = {}
local num = 0
for i,v in pairs(funclist) do
num = num + 1
table.insert(funcs, {
Text = i,
Callback = function()
prompt:_close()
v()
end,
Primary = num == #funclist
})
end
end
prompt:updateButtons(funcs or {{
Text = "OK",
Callback = function()
prompt:_close()
end,
Primary = true
}}, 'Default')
prompt:setParent(gui)
prompt:_open(text)
setidentity(oldidentity)
end
local function vapeGithubRequest(scripturl)
if not isfile("vape/"..scripturl) then
local suc, res
task.delay(15, function()
if not res and not errorPopupShown then
errorPopupShown = true
displayErrorPopup("The connection to github is taking a while, Please be patient.")
end
end)
suc, res = pcall(function() return game:HttpGet("https://raw.githubusercontent.com/VapeVoidware/VoidwareBakup/"..readfile("vape/commithash.txt").."/"..scripturl, true) end)
if not suc or res == "404: Not Found" then
displayErrorPopup("Failed to connect to github : vape/"..scripturl.." : "..res)
error(res)
end
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)
local executor = (identifyexecutor and identifyexecutor() or "Unknown")
if string.find(string.lower(executor), "wave") then
return vapeAssetTable[path] or ""
else
if customassetcheck then
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
task.wait(0.1)
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
end
return getcustomasset(path)
end
end
assert(not shared.VapeExecuted, "Vape Already Injected")
shared.VapeExecuted = true
for i,v in pairs({baseDirectory:gsub("/", ""), "vape", "vape/Libraries", "vape/CustomModules", "vape/Profiles", baseDirectory.."Profiles", "vape/assets"}) do
if not isfolder(v) then makefolder(v) end
end
task.spawn(function()
local success, assetver = pcall(function() return vapeGithubRequest("assetsversion.txt") end)
if not isfile("vape/assetsversion.txt") then writefile("vape/assetsversion.txt", "0") end
if success and assetver > readfile("vape/assetsversion.txt") then
redownloadedAssets = true
if isfolder("vape/assets") and not shared.VapeDeveloper then
if delfolder then
delfolder("vape/assets")
makefolder("vape/assets")
end
end
writefile("vape/assetsversion.txt", assetver)
end
end)
GuiLibrary = pload("GuiLibrary.lua", true, true)
VWFunctions = pload("Libraries/VoidwareFunctions.lua", true, true)
GuiLibrary.SelfDestructEvent.Event:Connect(function() VWFunctions.SelfDestructEvent:Fire() end)
VWFunctions.GlobaliseObject("GuiLibrary", GuiLibrary)
VWFunctions.GlobaliseObject("VoidwareFunctions", VWFunctions)
VWFunctions.GlobaliseObject("VWFunctions", VWFunctions)
local saveSettingsLoop = coroutine.create(function()
if inputService.TouchEnabled then return end
repeat
GuiLibrary.SaveSettings()
task.wait(10)
until not vapeInjected or not GuiLibrary
end)
task.spawn(function()
local image = Instance.new("ImageLabel")
image.Image = downloadVapeAsset("vape/assets/CombatIcon.png")
image.Position = UDim2.new()
image.BackgroundTransparency = 1
image.Size = UDim2.fromOffset(100, 100)
image.ImageTransparency = 0.999
image.Parent = GuiLibrary.MainGui
image:GetPropertyChangedSignal("IsLoaded"):Connect(function()
image:Destroy()
image = nil
end)
task.spawn(function()
task.wait(15)
if image and image.ContentImageSize == Vector2.zero and (not errorPopupShown) and (not redownloadedAssets) and (not isfile("vape/assets/check3.txt")) then
errorPopupShown = true
displayErrorPopup("Assets failed to load, Try another executor (executor : "..(identifyexecutor and identifyexecutor() or "Unknown")..")", {OK = function()
writefile("vape/assets/check3.txt", "")
end})
end
end)
end)
local GUI = GuiLibrary.CreateMainWindow()
local Combat = GuiLibrary.CreateWindow({
Name = "Combat",
Icon = "vape/assets/CombatIcon.png",
IconSize = 15
})
local Blatant = GuiLibrary.CreateWindow({
Name = "Blatant",
Icon = "vape/assets/BlatantIcon.png",
IconSize = 16
})
local Render = GuiLibrary.CreateWindow({
Name = "Render",
Icon = "vape/assets/RenderIcon.png",
IconSize = 17
})
local Utility = GuiLibrary.CreateWindow({
Name = "Utility",
Icon = "vape/assets/UtilityIcon.png",
IconSize = 17
})
local World = GuiLibrary.CreateWindow({
Name = "World",
Icon = "vape/assets/WorldIcon.png",
IconSize = 16
})
local Friends = GuiLibrary.CreateWindow2({
Name = "Friends",
Icon = "vape/assets/FriendsIcon.png",
IconSize = 17
})
local Targets = GuiLibrary.CreateWindow2({
Name = "Targets",
Icon = "vape/assets/FriendsIcon.png",
IconSize = 17
})
local Profiles = GuiLibrary.CreateWindow2({
Name = "Profiles",
Icon = "vape/assets/ProfilesIcon.png",
IconSize = 19
})
task.spawn(function()
repeat task.wait() until shared.VapeFullyLoaded
Profiles.Visible = (not shared.ClosetCheatMode)
GuiLibrary.ObjectsThatCanBeSaved["ProfilesButton"].Object.Visible = (not shared.ClosetCheatMode)
end)
GUI.CreateDivider()
GUI.CreateButton({
Name = "Combat",
Function = function(callback) Combat.SetVisible(callback) end,
Icon = "vape/assets/CombatIcon.png",
IconSize = 15
})
GUI.CreateButton({
Name = "Blatant",
Function = function(callback) Blatant.SetVisible(callback) end,
Icon = "vape/assets/BlatantIcon.png",
IconSize = 16
})
GUI.CreateButton({
Name = "Render",
Function = function(callback) Render.SetVisible(callback) end,
Icon = "vape/assets/RenderIcon.png",
IconSize = 17
})
GUI.CreateButton({
Name = "Utility",
Function = function(callback) Utility.SetVisible(callback) end,
Icon = "vape/assets/UtilityIcon.png",
IconSize = 17
})
GUI.CreateButton({
Name = "World",
Function = function(callback) World.SetVisible(callback) end,
Icon = "vape/assets/WorldIcon.png",
IconSize = 16
})
GUI.CreateDivider("MISC")
GUI.CreateButton({
Name = "Friends",
Function = function(callback) Friends.SetVisible(callback) end,
Icon = "vape/assets/FriendsIcon.png"
})
GUI.CreateButton({
Name = "Targets",
Function = function(callback) Targets.SetVisible(callback) end,
Icon = "vape/assets/FriendsIcon.png"
})
GUI.CreateButton({
Name = "Profiles",
Function = function(callback) Profiles.SetVisible(callback) end,
Icon = "vape/assets/ProfilesIcon.png"
})
GUI.CreateDivider("ClosetCheat")
local FriendsTextListTable = {
Name = "FriendsList",
TempText = "Username [Alias]",
Color = Color3.fromRGB(5, 133, 104)
}
local FriendsTextList = Friends.CreateCircleTextList(FriendsTextListTable)
FriendsTextList.FriendRefresh = Instance.new("BindableEvent")
FriendsTextList.FriendColorRefresh = Instance.new("BindableEvent")
local TargetsTextList = Targets.CreateCircleTextList({
Name = "TargetsList",
TempText = "Username [Alias]",
Color = Color3.fromRGB(5, 133, 104)
})
local oldFriendRefresh = FriendsTextList.RefreshValues
FriendsTextList.RefreshValues = function(...)
FriendsTextList.FriendRefresh:Fire()
return oldFriendRefresh(...)
end
local oldTargetRefresh = TargetsTextList.RefreshValues
TargetsTextList.RefreshValues = function(...)
FriendsTextList.FriendRefresh:Fire()
return oldTargetRefresh(...)
end
Friends.CreateToggle({
Name = "Use Friends",
Function = function(callback)
FriendsTextList.FriendRefresh:Fire()
end,
Default = true
})
Friends.CreateToggle({
Name = "Use Alias",
Function = function(callback) end,
Default = true,
})
Friends.CreateToggle({
Name = "Spoof alias",
Function = function(callback) end,
})
local friendRecolorToggle = Friends.CreateToggle({
Name = "Recolor visuals",
Function = function(callback) FriendsTextList.FriendColorRefresh:Fire() end,
Default = true
})
local friendWindowFrame
Friends.CreateColorSlider({
Name = "Friends Color",
Function = function(h, s, v)
local cachedColor = Color3.fromHSV(h, s, v)
local addCircle = FriendsTextList.Object:FindFirstChild("AddButton", true)
if addCircle then
addCircle.ImageColor3 = cachedColor
end
friendWindowFrame = friendWindowFrame or FriendsTextList.ScrollingObject and FriendsTextList.ScrollingObject:FindFirstChild("ScrollingFrame")
if friendWindowFrame then
for i,v in pairs(friendWindowFrame:GetChildren()) do
local friendCircle = v:FindFirstChild("FriendCircle")
local friendText = v:FindFirstChild("ItemText")
if friendCircle and friendText then
friendCircle.BackgroundColor3 = friendText.TextColor3 == Color3.fromRGB(160, 160, 160) and cachedColor or friendCircle.BackgroundColor3
end
end
end
FriendsTextListTable.Color = cachedColor
if friendRecolorToggle.Enabled then
FriendsTextList.FriendColorRefresh:Fire()
end
end
})
local ProfilesTextList = {RefreshValues = function() end}
ProfilesTextList = Profiles.CreateTextList({
Name = "ProfilesList",
TempText = "Type name",
NoSave = true,
AddFunction = function(profileName)
GuiLibrary.Profiles[profileName] = {Keybind = "", Selected = false}
local profiles = {}
for i,v in pairs(GuiLibrary.Profiles) do
table.insert(profiles, i)
end
table.sort(profiles, function(a, b) return b == "default" and true or a:lower() < b:lower() end)
ProfilesTextList.RefreshValues(profiles)
end,
RemoveFunction = function(profileIndex, profileName)
if profileName ~= "default" and profileName ~= GuiLibrary.CurrentProfile then
pcall(function() delfile(baseDirectory..profilesDirectory..profileName..(shared.CustomSaveVape or game.PlaceId)..".vapeprofile.txt") end)
GuiLibrary.Profiles[profileName] = nil
else
table.insert(ProfilesTextList.ObjectList, profileName)
ProfilesTextList.RefreshValues(ProfilesTextList.ObjectList)
end
end,
CustomFunction = function(profileObject, profileName)
if GuiLibrary.Profiles[profileName] == nil then
GuiLibrary.Profiles[profileName] = {Keybind = ""}
end
profileObject.MouseButton1Click:Connect(function()
GuiLibrary.SwitchProfile(profileName)
end)
local newsize = UDim2.new(0, 20, 0, 21)
local bindbkg = Instance.new("TextButton")
bindbkg.Text = ""
bindbkg.AutoButtonColor = false
bindbkg.Size = UDim2.new(0, 20, 0, 21)
bindbkg.Position = UDim2.new(1, -50, 0, 6)
bindbkg.BorderSizePixel = 0
bindbkg.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
bindbkg.BackgroundTransparency = 0.95
bindbkg.Visible = GuiLibrary.Profiles[profileName].Keybind ~= ""
bindbkg.Parent = profileObject
local bindimg = Instance.new("ImageLabel")
bindimg.Image = downloadVapeAsset("vape/assets/KeybindIcon.png")
bindimg.BackgroundTransparency = 1
bindimg.Size = UDim2.new(0, 12, 0, 12)
bindimg.Position = UDim2.new(0, 4, 0, 5)
bindimg.ImageTransparency = 0.2
bindimg.Active = false
bindimg.Visible = (GuiLibrary.Profiles[profileName].Keybind == "")
bindimg.Parent = bindbkg
local bindtext = Instance.new("TextLabel")
bindtext.Active = false
bindtext.BackgroundTransparency = 1
bindtext.TextSize = 16
bindtext.Parent = bindbkg
bindtext.Font = Enum.Font.SourceSans
bindtext.Size = UDim2.new(1, 0, 1, 0)
bindtext.TextColor3 = Color3.fromRGB(85, 85, 85)
bindtext.Visible = (GuiLibrary.Profiles[profileName].Keybind ~= "")
local bindtext2 = Instance.new("TextLabel")
bindtext2.Text = "PRESS A KEY TO BIND"
bindtext2.Size = UDim2.new(0, 150, 0, 33)
bindtext2.Font = Enum.Font.SourceSans
bindtext2.TextSize = 17
bindtext2.TextColor3 = Color3.fromRGB(201, 201, 201)
bindtext2.BackgroundColor3 = Color3.fromRGB(37, 37, 37)
bindtext2.BorderSizePixel = 0
bindtext2.Visible = false
bindtext2.Parent = profileObject
local bindround = Instance.new("UICorner")
bindround.CornerRadius = UDim.new(0, 4)
bindround.Parent = bindbkg
bindbkg.MouseButton1Click:Connect(function()
if not GuiLibrary.KeybindCaptured then
GuiLibrary.KeybindCaptured = true
task.spawn(function()
bindtext2.Visible = true
repeat task.wait() until GuiLibrary.PressedKeybindKey ~= ""
local key = (GuiLibrary.PressedKeybindKey == GuiLibrary.Profiles[profileName].Keybind and "" or GuiLibrary.PressedKeybindKey)
if key == "" then
GuiLibrary.Profiles[profileName].Keybind = key
newsize = UDim2.new(0, 20, 0, 21)
bindbkg.Size = newsize
bindbkg.Visible = true
bindbkg.Position = UDim2.new(1, -(30 + newsize.X.Offset), 0, 6)
bindimg.Visible = true
bindtext.Visible = false
bindtext.Text = key
else
local textsize = textService:GetTextSize(key, 16, bindtext.Font, Vector2.new(99999, 99999))
newsize = UDim2.new(0, 13 + textsize.X, 0, 21)
GuiLibrary.Profiles[profileName].Keybind = key
bindbkg.Visible = true
bindbkg.Size = newsize
bindbkg.Position = UDim2.new(1, -(30 + newsize.X.Offset), 0, 6)
bindimg.Visible = false
bindtext.Visible = true
bindtext.Text = key
end
GuiLibrary.PressedKeybindKey = ""
GuiLibrary.KeybindCaptured = false
bindtext2.Visible = false
end)
end
end)
bindbkg.MouseEnter:Connect(function()
bindimg.Image = downloadVapeAsset("vape/assets/PencilIcon.png")
bindimg.Visible = true
bindtext.Visible = false
bindbkg.Size = UDim2.new(0, 20, 0, 21)
bindbkg.Position = UDim2.new(1, -50, 0, 6)
end)
bindbkg.MouseLeave:Connect(function()
bindimg.Image = downloadVapeAsset("vape/assets/KeybindIcon.png")
if GuiLibrary.Profiles[profileName].Keybind ~= "" then
bindimg.Visible = false
bindtext.Visible = true
bindbkg.Size = newsize
bindbkg.Position = UDim2.new(1, -(30 + newsize.X.Offset), 0, 6)
end
end)
profileObject.MouseEnter:Connect(function()
bindbkg.Visible = true
end)
profileObject.MouseLeave:Connect(function()
bindbkg.Visible = GuiLibrary.Profiles[profileName] and GuiLibrary.Profiles[profileName].Keybind ~= ""
end)
if GuiLibrary.Profiles[profileName].Keybind ~= "" then
bindtext.Text = GuiLibrary.Profiles[profileName].Keybind
local textsize = textService:GetTextSize(GuiLibrary.Profiles[profileName].Keybind, 16, bindtext.Font, Vector2.new(99999, 99999))
newsize = UDim2.new(0, 13 + textsize.X, 0, 21)
bindbkg.Size = newsize
bindbkg.Position = UDim2.new(1, -(30 + newsize.X.Offset), 0, 6)
end
if profileName == GuiLibrary.CurrentProfile then
profileObject.BackgroundColor3 = Color3.fromHSV(GuiLibrary.ObjectsThatCanBeSaved["Gui ColorSliderColor"].Api.Hue, GuiLibrary.ObjectsThatCanBeSaved["Gui ColorSliderColor"].Api.Sat, GuiLibrary.ObjectsThatCanBeSaved["Gui ColorSliderColor"].Api.Value)
profileObject.ImageButton.BackgroundColor3 = Color3.fromHSV(GuiLibrary.ObjectsThatCanBeSaved["Gui ColorSliderColor"].Api.Hue, GuiLibrary.ObjectsThatCanBeSaved["Gui ColorSliderColor"].Api.Sat, GuiLibrary.ObjectsThatCanBeSaved["Gui ColorSliderColor"].Api.Value)
profileObject.ItemText.TextColor3 = Color3.new(1, 1, 1)
profileObject.ItemText.TextStrokeTransparency = 0.75
bindbkg.BackgroundTransparency = 0.9
bindtext.TextColor3 = Color3.fromRGB(214, 214, 214)
end
end
})
local OnlineProfilesButton = Instance.new("TextButton")
OnlineProfilesButton.Name = "OnlineProfilesButton"
OnlineProfilesButton.LayoutOrder = 1
OnlineProfilesButton.AutoButtonColor = false
OnlineProfilesButton.Size = UDim2.new(0, 45, 0, 29)
OnlineProfilesButton.BackgroundColor3 = Color3.fromRGB(26, 25, 26)
OnlineProfilesButton.Active = false
OnlineProfilesButton.Text = ""
OnlineProfilesButton.ZIndex = 1
OnlineProfilesButton.Font = Enum.Font.SourceSans
OnlineProfilesButton.TextXAlignment = Enum.TextXAlignment.Left
OnlineProfilesButton.Position = UDim2.new(0, 166, 0, 6)
OnlineProfilesButton.Parent = ProfilesTextList.Object
local OnlineProfilesButtonBKG = Instance.new("UIStroke")
OnlineProfilesButtonBKG.Color = Color3.fromRGB(38, 37, 38)
OnlineProfilesButtonBKG.Thickness = 1
OnlineProfilesButtonBKG.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
OnlineProfilesButtonBKG.Parent = OnlineProfilesButton
local OnlineProfilesButtonImage = Instance.new("ImageLabel")
OnlineProfilesButtonImage.BackgroundTransparency = 1
OnlineProfilesButtonImage.Position = UDim2.new(0, 14, 0, 7)
OnlineProfilesButtonImage.Size = UDim2.new(0, 17, 0, 16)
OnlineProfilesButtonImage.Image = downloadVapeAsset("vape/assets/OnlineProfilesButton.png")
OnlineProfilesButtonImage.ImageColor3 = Color3.fromRGB(121, 121, 121)
OnlineProfilesButtonImage.ZIndex = 1
OnlineProfilesButtonImage.Active = false
OnlineProfilesButtonImage.Parent = OnlineProfilesButton
local OnlineProfilesbuttonround1 = Instance.new("UICorner")
OnlineProfilesbuttonround1.CornerRadius = UDim.new(0, 5)
OnlineProfilesbuttonround1.Parent = OnlineProfilesButton
local OnlineProfilesbuttonTargetInfoMainInfoCorner = Instance.new("UICorner")
OnlineProfilesbuttonTargetInfoMainInfoCorner.CornerRadius = UDim.new(0, 5)
OnlineProfilesbuttonTargetInfoMainInfoCorner.Parent = OnlineProfilesButtonBKG
local OnlineProfilesFrame = Instance.new("Frame")
OnlineProfilesFrame.Size = UDim2.new(0, 660, 0, 445)
OnlineProfilesFrame.Position = UDim2.new(0.5, -330, 0.5, -223)
OnlineProfilesFrame.BackgroundColor3 = Color3.fromRGB(26, 25, 26)
OnlineProfilesFrame.Parent = GuiLibrary.MainGui.ScaledGui.OnlineProfiles
local OnlineProfilesExitButton = Instance.new("ImageButton")
OnlineProfilesExitButton.Name = "OnlineProfilesExitButton"
OnlineProfilesExitButton.ImageColor3 = Color3.fromRGB(121, 121, 121)
OnlineProfilesExitButton.Size = UDim2.new(0, 24, 0, 24)
OnlineProfilesExitButton.AutoButtonColor = false
OnlineProfilesExitButton.Image = downloadVapeAsset("vape/assets/ExitIcon1.png")
OnlineProfilesExitButton.Visible = true
OnlineProfilesExitButton.Position = UDim2.new(1, -31, 0, 8)
OnlineProfilesExitButton.BackgroundColor3 = Color3.fromRGB(26, 25, 26)
OnlineProfilesExitButton.Parent = OnlineProfilesFrame
local OnlineProfilesExitButtonround = Instance.new("UICorner")
OnlineProfilesExitButtonround.CornerRadius = UDim.new(0, 16)
OnlineProfilesExitButtonround.Parent = OnlineProfilesExitButton
OnlineProfilesExitButton.MouseEnter:Connect(function()
game:GetService("TweenService"):Create(OnlineProfilesExitButton, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {BackgroundColor3 = Color3.fromRGB(60, 60, 60), ImageColor3 = Color3.fromRGB(255, 255, 255)}):Play()
end)
OnlineProfilesExitButton.MouseLeave:Connect(function()
game:GetService("TweenService"):Create(OnlineProfilesExitButton, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {BackgroundColor3 = Color3.fromRGB(26, 25, 26), ImageColor3 = Color3.fromRGB(121, 121, 121)}):Play()
end)
local OnlineProfilesFrameShadow = Instance.new("ImageLabel")
OnlineProfilesFrameShadow.AnchorPoint = Vector2.new(0.5, 0.5)
OnlineProfilesFrameShadow.Position = UDim2.new(0.5, 0, 0.5, 0)
OnlineProfilesFrameShadow.Image = downloadVapeAsset("vape/assets/WindowBlur.png")
OnlineProfilesFrameShadow.BackgroundTransparency = 1
OnlineProfilesFrameShadow.ZIndex = -1
OnlineProfilesFrameShadow.Size = UDim2.new(1, 6, 1, 6)
OnlineProfilesFrameShadow.ImageColor3 = Color3.new()
OnlineProfilesFrameShadow.ScaleType = Enum.ScaleType.Slice
OnlineProfilesFrameShadow.SliceCenter = Rect.new(10, 10, 118, 118)
OnlineProfilesFrameShadow.Parent = OnlineProfilesFrame
local OnlineProfilesFrameIcon = Instance.new("ImageLabel")
OnlineProfilesFrameIcon.Size = UDim2.new(0, 19, 0, 16)
OnlineProfilesFrameIcon.Image = downloadVapeAsset("vape/assets/ProfilesIcon.png")
OnlineProfilesFrameIcon.Name = "WindowIcon"
OnlineProfilesFrameIcon.BackgroundTransparency = 1
OnlineProfilesFrameIcon.Position = UDim2.new(0, 10, 0, 13)
OnlineProfilesFrameIcon.ImageColor3 = Color3.fromRGB(200, 200, 200)
OnlineProfilesFrameIcon.Parent = OnlineProfilesFrame
local OnlineProfilesFrameText = Instance.new("TextLabel")
OnlineProfilesFrameText.Size = UDim2.new(0, 155, 0, 41)
OnlineProfilesFrameText.BackgroundTransparency = 1
OnlineProfilesFrameText.Name = "WindowTitle"
OnlineProfilesFrameText.Position = UDim2.new(0, 36, 0, 0)
OnlineProfilesFrameText.TextXAlignment = Enum.TextXAlignment.Left
OnlineProfilesFrameText.Font = Enum.Font.SourceSans
OnlineProfilesFrameText.TextSize = 17
OnlineProfilesFrameText.Text = "Public Profiles"
OnlineProfilesFrameText.TextColor3 = Color3.fromRGB(201, 201, 201)
OnlineProfilesFrameText.Parent = OnlineProfilesFrame
local OnlineProfilesFrameText2 = Instance.new("TextLabel")
OnlineProfilesFrameText2.TextSize = 15
OnlineProfilesFrameText2.TextColor3 = Color3.fromRGB(85, 84, 85)
OnlineProfilesFrameText2.Text = "YOUR PROFILES"
OnlineProfilesFrameText2.Font = Enum.Font.SourceSans
OnlineProfilesFrameText2.BackgroundTransparency = 1
OnlineProfilesFrameText2.TextXAlignment = Enum.TextXAlignment.Left
OnlineProfilesFrameText2.TextYAlignment = Enum.TextYAlignment.Top
OnlineProfilesFrameText2.Size = UDim2.new(1, 0, 0, 20)
OnlineProfilesFrameText2.Position = UDim2.new(0, 10, 0, 48)
OnlineProfilesFrameText2.Parent = OnlineProfilesFrame
local OnlineProfilesFrameText3 = Instance.new("TextLabel")
OnlineProfilesFrameText3.TextSize = 15
OnlineProfilesFrameText3.TextColor3 = Color3.fromRGB(85, 84, 85)
OnlineProfilesFrameText3.Text = "PUBLIC PROFILES"
OnlineProfilesFrameText3.Font = Enum.Font.SourceSans
OnlineProfilesFrameText3.BackgroundTransparency = 1
OnlineProfilesFrameText3.TextXAlignment = Enum.TextXAlignment.Left
OnlineProfilesFrameText3.TextYAlignment = Enum.TextYAlignment.Top
OnlineProfilesFrameText3.Size = UDim2.new(1, 0, 0, 20)
OnlineProfilesFrameText3.Position = UDim2.new(0, 231, 0, 48)
OnlineProfilesFrameText3.Parent = OnlineProfilesFrame
local OnlineProfilesBorder1 = Instance.new("Frame")
OnlineProfilesBorder1.BackgroundColor3 = Color3.fromRGB(40, 39, 40)
OnlineProfilesBorder1.BorderSizePixel = 0
OnlineProfilesBorder1.Size = UDim2.new(1, 0, 0, 1)
OnlineProfilesBorder1.Position = UDim2.new(0, 0, 0, 41)
OnlineProfilesBorder1.Parent = OnlineProfilesFrame
local OnlineProfilesBorder2 = Instance.new("Frame")
OnlineProfilesBorder2.BackgroundColor3 = Color3.fromRGB(40, 39, 40)
OnlineProfilesBorder2.BorderSizePixel = 0
OnlineProfilesBorder2.Size = UDim2.new(0, 1, 1, -41)
OnlineProfilesBorder2.Position = UDim2.new(0, 220, 0, 41)
OnlineProfilesBorder2.Parent = OnlineProfilesFrame
local OnlineProfilesList = Instance.new("ScrollingFrame")
OnlineProfilesList.BackgroundTransparency = 1
OnlineProfilesList.Size = UDim2.new(0, 408, 0, 319)
OnlineProfilesList.Position = UDim2.new(0, 230, 0, 122)
OnlineProfilesList.CanvasSize = UDim2.new(0, 408, 0, 319)
OnlineProfilesList.Parent = OnlineProfilesFrame
local OnlineProfilesListGrid = Instance.new("UIGridLayout")
OnlineProfilesListGrid.CellSize = UDim2.new(0, 134, 0, 144)
OnlineProfilesListGrid.CellPadding = UDim2.new(0, 4, 0, 4)
OnlineProfilesListGrid.Parent = OnlineProfilesList
local OnlineProfilesFrameCorner = Instance.new("UICorner")
OnlineProfilesFrameCorner.CornerRadius = UDim.new(0, 4)
OnlineProfilesFrameCorner.Parent = OnlineProfilesFrame
OnlineProfilesButton.MouseButton1Click:Connect(function()
GuiLibrary.MainGui.ScaledGui.OnlineProfiles.Visible = true
GuiLibrary.MainGui.ScaledGui.ClickGui.Visible = false
if not profilesLoaded then
local onlineprofiles = {}
local saveplaceid = tostring(shared.CustomSaveVape or game.PlaceId)
local success, result = pcall(function()
return game:GetService("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Erchobg/VapeProfiles/main/Profiles/"..saveplaceid.."/profilelist.txt", true))
end)
for i,v in pairs(success and result or {}) do
onlineprofiles[i] = v
end
for i2,v2 in pairs(onlineprofiles) do
local profileurl = "https://raw.githubusercontent.com/Erchobg/VapeProfiles/main/Profiles/"..saveplaceid.."/"..v2.OnlineProfileName
local profilebox = Instance.new("Frame")
profilebox.BackgroundColor3 = Color3.fromRGB(31, 30, 31)
profilebox.Parent = OnlineProfilesList
local profiletext = Instance.new("TextLabel")
profiletext.TextSize = 15
profiletext.TextColor3 = Color3.fromRGB(137, 136, 137)
profiletext.Size = UDim2.new(0, 100, 0, 20)
profiletext.Position = UDim2.new(0, 18, 0, 25)
profiletext.Font = Enum.Font.SourceSans
profiletext.TextXAlignment = Enum.TextXAlignment.Left
profiletext.TextYAlignment = Enum.TextYAlignment.Top
profiletext.BackgroundTransparency = 1
profiletext.Text = i2
profiletext.Parent = profilebox
local profiledownload = Instance.new("TextButton")
profiledownload.BackgroundColor3 = Color3.fromRGB(31, 30, 31)
profiledownload.Size = UDim2.new(0, 69, 0, 31)
profiledownload.Font = Enum.Font.SourceSans
profiledownload.TextColor3 = Color3.fromRGB(200, 200, 200)
profiledownload.TextSize = 15
profiledownload.AutoButtonColor = false
profiledownload.Text = "DOWNLOAD"
profiledownload.Position = UDim2.new(0, 14, 0, 96)
profiledownload.Visible = false
profiledownload.Parent = profilebox
profiledownload.ZIndex = 2
local profiledownloadbkg = Instance.new("Frame")
profiledownloadbkg.Size = UDim2.new(0, 71, 0, 33)
profiledownloadbkg.BackgroundColor3 = Color3.fromRGB(42, 41, 42)
profiledownloadbkg.Position = UDim2.new(0, 13, 0, 95)
profiledownloadbkg.ZIndex = 1
profiledownloadbkg.Visible = false
profiledownloadbkg.Parent = profilebox
profilebox.MouseEnter:Connect(function()
profiletext.TextColor3 = Color3.fromRGB(200, 200, 200)
profiledownload.Visible = true
profiledownloadbkg.Visible = true
end)
profilebox.MouseLeave:Connect(function()
profiletext.TextColor3 = Color3.fromRGB(137, 136, 137)
profiledownload.Visible = false
profiledownloadbkg.Visible = false
end)
profiledownload.MouseEnter:Connect(function()
profiledownload.BackgroundColor3 = Color3.fromRGB(5, 134, 105)
end)
profiledownload.MouseLeave:Connect(function()
profiledownload.BackgroundColor3 = Color3.fromRGB(31, 30, 31)
end)
profiledownload.MouseButton1Click:Connect(function()
writefile(baseDirectory..profilesDirectory..v2.ProfileName..saveplaceid..".vapeprofile.txt", game:HttpGet(profileurl, true))
GuiLibrary.Profiles[v2.ProfileName] = {Keybind = "", Selected = false}
local profiles = {}
for i,v in pairs(GuiLibrary.Profiles) do
table.insert(profiles, i)
end
table.sort(profiles, function(a, b) return b == "default" and true or a:lower() < b:lower() end)
ProfilesTextList.RefreshValues(profiles)
end)
local profileround = Instance.new("UICorner")
profileround.CornerRadius = UDim.new(0, 4)
profileround.Parent = profilebox
local profileTargetInfoMainInfoCorner = Instance.new("UICorner")
profileTargetInfoMainInfoCorner.CornerRadius = UDim.new(0, 4)
profileTargetInfoMainInfoCorner.Parent = profiledownload
local profileTargetInfoHealthBackgroundCorner = Instance.new("UICorner")
profileTargetInfoHealthBackgroundCorner.CornerRadius = UDim.new(0, 4)
profileTargetInfoHealthBackgroundCorner.Parent = profiledownloadbkg
end
profilesloaded = true
end
end)
OnlineProfilesExitButton.MouseButton1Click:Connect(function()
GuiLibrary.MainGui.ScaledGui.OnlineProfiles.Visible = false
GuiLibrary.MainGui.ScaledGui.ClickGui.Visible = true
end)
GUI.CreateDivider()
local TextGUI = GuiLibrary.CreateCustomWindow({
Name = "Text GUI",
Icon = "vape/assets/TextGUIIcon1.png",
IconSize = 21
})
local TextGUICircleObject = {CircleList = {}}
GUI.CreateCustomToggle({
Name = "Text GUI",
Icon = "vape/assets/TextGUIIcon3.png",
Function = function(callback) TextGUI.SetVisible(callback) end,
Priority = 2
})
local GUIColor1 = {Hue = 0, Sat = 0, Value = 0}
local GUIColor2 = {Hue = 0, Sat = 0, Value = 0}
local GUIGradientSlider = {RainbowValue = false}
local GUIColorSlider = {RainbowValue = false}
local GradientUIToggle = {Enabled = false}
local TextGUIMode = {Value = "Normal"}
local TextGUIColorMode = {Value = "Background"}
local TextGUISortMode = {Value = "Alphabetical"}
local TextGUIBackgroundToggle = {Enabled = false}
local TextGUIObjects = {Logo = {}, Labels = {}, ShadowLabels = {}, Backgrounds = {}}
local TextGUIConnections = {}
local TextGUIFormatted = {}
local VapeLogoFrame = Instance.new("Frame")
VapeLogoFrame.BackgroundTransparency = 1
VapeLogoFrame.Size = UDim2.new(1, 0, 1, 0)
VapeLogoFrame.Parent = TextGUI.GetCustomChildren()
--[[local VapeLogo = Instance.new("ImageLabel")
VapeLogo.Parent = VapeLogoFrame
VapeLogo.Name = "Logo"
VapeLogo.Size = UDim2.new(0, 100, 0, 27)
VapeLogo.Position = UDim2.new(1, -140, 0, 3)
VapeLogo.BackgroundColor3 = Color3.new()
VapeLogo.BorderSizePixel = 0
VapeLogo.BackgroundTransparency = 1
VapeLogo.Visible = true
VapeLogo.Image = downloadVapeAsset("vape/assets/VapeLogo3.png")
local VapeLogoV4 = Instance.new("ImageLabel")
VapeLogoV4.Parent = VapeLogo
VapeLogoV4.Size = UDim2.new(0, 41, 0, 24)
VapeLogoV4.Name = "Logo2"
VapeLogoV4.Position = UDim2.new(1, 0, 0, 1)
VapeLogoV4.BorderSizePixel = 0
VapeLogoV4.BackgroundColor3 = Color3.new()
VapeLogoV4.BackgroundTransparency = 1
VapeLogoV4.Image = downloadVapeAsset("vape/assets/VapeLogo4.png")--]]
local VapeLogoShadow = Instance.new("ImageLabel")
VapeLogoShadow.Position = UDim2.new(0, 0, 0, 0)
VapeLogoShadow.Visible = false
VapeLogoShadow.Parent = VapeLogo
local VapeLogo = Instance.new("TextLabel")
VapeLogo.Size = UDim2.new(0, 150, 0, 27)
VapeLogo.Position = UDim2.new(1, -140, 0, 3)
VapeLogo.TextStrokeTransparency = 0
VapeLogo.TextStrokeColor3 = Color3.new(255, 255, 255)
VapeLogo.TextScaled = true
VapeLogo.BackgroundTransparency = 1
VapeLogo.TextColor3 = Color3.new(255, 255, 255)
VapeLogo.Text = "VOIDWARE"
VapeLogo.Name = "Logo"
VapeLogo.Parent = VapeLogoFrame
local VapeLogoGradient = Instance.new("UIGradient")
VapeLogoGradient.Rotation = 90
VapeLogoGradient.Parent = VapeLogo
--[[local VapeLogoGradient2 = Instance.new("UIGradient")
VapeLogoGradient2.Rotation = 90
VapeLogoGradient2.Parent = VapeLogoV4--]]
local VapeText = Instance.new("TextLabel")
VapeText.Parent = VapeLogoFrame
VapeText.Size = UDim2.new(1, 0, 1, 0)
VapeText.Position = UDim2.new(1, -154, 0, 35)
VapeText.TextColor3 = Color3.new(1, 1, 1)
VapeText.RichText = true
VapeText.BackgroundTransparency = 1
VapeText.LineHeight = 1.2
VapeText.TextXAlignment = Enum.TextXAlignment.Left
VapeText.TextYAlignment = Enum.TextYAlignment.Top
VapeText.BorderSizePixel = 0
VapeText.BackgroundColor3 = Color3.new()
VapeText.Font = Enum.Font.SourceSans
VapeText.Text = ""
VapeText.TextSize = 19
local VapeTextExtra = Instance.new("TextLabel")
VapeTextExtra.Name = "ExtraText"
VapeTextExtra.TextColor3 = Color3.new(255, 255, 255)
VapeTextExtra.Parent = VapeText
VapeTextExtra.LineHeight = 1.2
VapeTextExtra.Size = UDim2.new(1, 0, 1, 0)
VapeTextExtra.Position = UDim2.new(0, 1, 0, 1)
VapeTextExtra.BorderSizePixel = 0
VapeTextExtra.Visible = false
VapeTextExtra.ZIndex = 0
VapeTextExtra.Text = ""
VapeTextExtra.BackgroundTransparency = 1
VapeTextExtra.TextTransparency = 0.5
VapeTextExtra.TextXAlignment = Enum.TextXAlignment.Left
VapeTextExtra.TextYAlignment = Enum.TextYAlignment.Top
VapeTextExtra.Font = Enum.Font.SourceSans
VapeTextExtra.TextSize = 19
VapeTextExtra.TextStrokeTransparency = 0
VapeTextExtra.TextStrokeColor3 = Color3.new(180, 180, 180)
--Color3.fromHSV(GUIColor1.Hue, GUIColor1.Sat, GUIColor1.Value)
local VapeCustomText = Instance.new("TextLabel")
VapeCustomText.TextSize = 30
VapeCustomText.Font = Enum.Font.GothamBold
VapeCustomText.Size = UDim2.new(1, 0, 1, 0)
VapeCustomText.BackgroundTransparency = 1
VapeCustomText.Position = UDim2.new(0, 0, 0, 35)
VapeCustomText.TextXAlignment = Enum.TextXAlignment.Left
VapeCustomText.TextYAlignment = Enum.TextYAlignment.Top
VapeCustomText.Text = ""
VapeCustomText.Parent = VapeLogoFrame
local VapeCustomTextShadow = VapeCustomText:Clone()
VapeCustomTextShadow.ZIndex = -1
VapeCustomTextShadow.Size = UDim2.new(1, 0, 1, 0)
VapeCustomTextShadow.TextTransparency = 0.5
VapeCustomTextShadow.TextColor3 = Color3.new()
VapeCustomTextShadow.Position = UDim2.new(0, 1, 0, 1)
VapeCustomTextShadow.Parent = VapeCustomText
VapeCustomText:GetPropertyChangedSignal("TextXAlignment"):Connect(function()
VapeCustomTextShadow.TextXAlignment = VapeCustomText.TextXAlignment
end)
local VapeBackground = Instance.new("Frame")
VapeBackground.BackgroundTransparency = 1
VapeBackground.BorderSizePixel = 0
VapeBackground.BackgroundColor3 = Color3.new()
VapeBackground.Size = UDim2.new(1, 0, 1, 0)
VapeBackground.Visible = false
VapeBackground.Parent = VapeLogoFrame
VapeBackground.ZIndex = 0
local VapeBackgroundList = Instance.new("UIListLayout")
VapeBackgroundList.FillDirection = Enum.FillDirection.Vertical
VapeBackgroundList.SortOrder = Enum.SortOrder.LayoutOrder
VapeBackgroundList.Padding = UDim.new(0, 0)
VapeBackgroundList.Parent = VapeBackground
local VapeBackgroundTable = {}
local VapeScale = Instance.new("UIScale")
VapeScale.Parent = VapeLogoFrame
--why do other platforms do rendering differently
local TextGUIOffsets = {
[Enum.Platform.Android] = {
6,
-10,
15,
12
},
[Enum.Platform.UWP] = {
1,
1,
23,
23
}
}
TextGUIOffsets[Enum.Platform.IOS] = TextGUIOffsets[Enum.Platform.Android]
local TextGUIElements = {}
local function TextGUIUpdate()
local scaledgui = vapeInjected and GuiLibrary.MainGui.ScaledGui
if scaledgui and scaledgui.Visible then
local formattedText = ""
local moduleList = {}
for i, v in pairs(GuiLibrary.ObjectsThatCanBeSaved) do
if v.Type == "OptionsButton" and v.Api.Enabled then
local blacklistedCheck = table.find(TextGUICircleObject.CircleList.ObjectList, v.Api.Name)
blacklistedCheck = blacklistedCheck and TextGUICircleObject.CircleList.ObjectList[blacklistedCheck]
if not blacklistedCheck then
local extraText = v.Api.GetExtraText()
table.insert(moduleList, {Text = v.Api.Name, ExtraText = extraText ~= "" and " "..extraText or ""})
end
end
end
if TextGUISortMode.Value == "Alphabetical" then
table.sort(moduleList, function(a, b) return a.Text:lower() < b.Text:lower() end)
else
table.sort(moduleList, function(a, b)
return textService:GetTextSize(a.Text..a.ExtraText, VapeText.TextSize, VapeText.Font, Vector2.new(1000000, 1000000)).X > textService:GetTextSize(b.Text..b.ExtraText, VapeText.TextSize, VapeText.Font, Vector2.new(1000000, 1000000)).X
end)
end
local backgroundList = {}
local first = true
for i, v in pairs(moduleList) do
local newEntryText = v.Text..v.ExtraText
if first then
formattedText = "\n"..newEntryText
first = false
else
formattedText = formattedText..'\n'..newEntryText
end
table.insert(backgroundList, newEntryText)
end
TextGUIFormatted = moduleList
VapeTextExtra.Text = formattedText
VapeText.Size = UDim2.fromOffset(154, (formattedText ~= "" and textService:GetTextSize(formattedText, VapeText.TextSize, VapeText.Font, Vector2.new(1000000, 1000000)) or Vector2.zero).Y)
local offsets = {
5,
1,
23,
23
}
if TextGUI.GetCustomChildren().Parent then
if (TextGUI.GetCustomChildren().Parent.Position.X.Offset + TextGUI.GetCustomChildren().Parent.Size.X.Offset / 2) >= (gameCamera.ViewportSize.X / 2) then
VapeText.TextXAlignment = Enum.TextXAlignment.Right
VapeTextExtra.TextXAlignment = Enum.TextXAlignment.Right
VapeTextExtra.Position = UDim2.fromOffset(offsets[1], offsets[2])
VapeLogo.Position = UDim2.new(1, -142, 0, 8)
VapeText.Position = UDim2.new(1, -158, 0, (VapeLogo.Visible and (TextGUIBackgroundToggle.Enabled and 41 or 35) or 5) + 5 + (VapeCustomText.Visible and 25 or 0) - offsets[3])
VapeCustomText.Position = UDim2.fromOffset(0, VapeLogo.Visible and 35 or 0)