-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmetahub.lua
7246 lines (6977 loc) · 403 KB
/
metahub.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
██╗ ██╗███████╗ █████╗ ██╗ ██████╗ ███████╗███████╗
╚██╗██╔╝██╔════╝██╔══██╗██║██╔════╝ ██╔════╝╚══███╔╝
╚███╔╝ ███████╗███████║██║██║ ███╗█████╗ ███╔╝
██╔██╗ ╚════██║██╔══██║██║██║ ██║██╔══╝ ███╔╝
██╔╝ ██╗███████║██║ ██║██║╚██████╔╝███████╗███████╗
╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═════╝ ╚══════╝╚══════╝
_G.SchemeColor = Color3.fromRGB(30, 236, 37)
_G.Background = Color3.fromRGB(61, 61, 61)
_G.Header = Color3.fromRGB(41,41, 41)
_G.TextColor = Color3.fromRGB(255,255,255)
if not game:IsLoaded() then
game.Loaded:Wait()
end
repeat wait() until game.Players
repeat wait() until game.Players.LocalPlayer
repeat wait() until game.ReplicatedStorage
repeat wait() until game.ReplicatedStorage:FindFirstChild("Remotes");
repeat wait() until game.Players.LocalPlayer:FindFirstChild("PlayerGui");
repeat wait() until game.Players.LocalPlayer.PlayerGui:FindFirstChild("Main");
local library = {
themes = {
original = {
SchemeColor = _G.SchemeColor,
Background = _G.Background,
Header = _G.Header ,
TextColor = _G.TextColor
}
}
}
local chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
local length = 20
local randomString = ''
math.randomseed(os.time())
local charTable = {}
for c in chars:gmatch"." do
table.insert(charTable, c)
end
for i = 1, length do
randomString = randomString .. charTable[math.random(1, #charTable)]
end
for i,v in pairs(game:GetService("CoreGui"):GetChildren()) do
if v.ClassName == "ScreenGui" then
for i1,v1 in pairs(v:GetChildren()) do
if v1.Name == "Main" then
for i2,v2 in pairs(v1:GetChildren()) do
do
local ui = v
if ui then
ui:Destroy()
end
end
end
end
end
end
end
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")
local LocalPlayer = game:GetService("Players").LocalPlayer
local Mouse = LocalPlayer:GetMouse()
local function MakeDraggable(topbarobject, object)
local Dragging = nil
local DragInput = nil
local DragStart = nil
local StartPosition = nil
local function Update(input)
local Delta = input.Position - DragStart
local pos =
UDim2.new(
StartPosition.X.Scale,
StartPosition.X.Offset + Delta.X,
StartPosition.Y.Scale,
StartPosition.Y.Offset + Delta.Y
)
object.Position = pos
end
topbarobject.InputBegan:Connect(
function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
Dragging = true
DragStart = input.Position
StartPosition = object.Position
input.Changed:Connect(
function()
if input.UserInputState == Enum.UserInputState.End then
Dragging = false
end
end
)
end
end
)
topbarobject.InputChanged:Connect(
function(input)
if
input.UserInputType == Enum.UserInputType.MouseMovement or
input.UserInputType == Enum.UserInputType.Touch
then
DragInput = input
end
end
)
UserInputService.InputChanged:Connect(
function(input)
if input == DragInput and Dragging then
Update(input)
end
end
)
end
local function RippleEffect(object)
spawn(function()
local Ripple = Instance.new("ImageLabel")
Ripple.Name = "Ripple"
Ripple.Parent = object
Ripple.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Ripple.BackgroundTransparency = 1.000
Ripple.ZIndex = 8
Ripple.Image = "rbxassetid://2708891598"
Ripple.ImageTransparency = 0.800
Ripple.ScaleType = Enum.ScaleType.Fit
Ripple.Position = UDim2.new((Mouse.X - Ripple.AbsolutePosition.X) / object.AbsoluteSize.X, 0, (Mouse.Y - Ripple.AbsolutePosition.Y) / object.AbsoluteSize.Y, 0)
TweenService:Create(Ripple, TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Position = UDim2.new(-5.5, 0, -5.5, 0), Size = UDim2.new(12, 0, 12, 0)}):Play()
wait(0.5)
TweenService:Create(Ripple, TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ImageTransparency = 1}):Play()
wait(1)
Ripple:Destroy()
end)
end
local Ui = Instance.new("ScreenGui")
Ui.Name = randomString
Ui.Parent = game.CoreGui
Ui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
UserInputService.InputBegan:Connect(function(io, p)
if io.KeyCode == Enum.KeyCode.RightControl then
if uitoggled == false then
Ui.Enabled = false
uitoggled = true
else
Ui.Enabled = true
uitoggled = false
end
end
end)
if syn then
syn.protect_gui(Ui)
end
function library:CreateWindow(title,theme,closebind)
local tabs = {}
local s = false
local Main = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local Title = Instance.new("TextLabel")
local MainFrame = Instance.new("Frame")
local UICorner_2 = Instance.new("UICorner")
local SectionBack = Instance.new("Frame")
local UICorner_3 = Instance.new("UICorner")
local search = Instance.new("ImageButton")
local SearchBox = Instance.new("TextBox")
local UICorner_25 = Instance.new("UICorner")
Main.Name = "Main"
Main.Parent = Ui
Main.AnchorPoint = Vector2.new(0.5, 0.5)
Main.BackgroundColor3 = theme.Header
Main.BorderSizePixel = 0
Main.Position = UDim2.new(0, 900, 0, 500)
Main.Size = UDim2.new(0, 556, 0, 366)
Main.ZIndex = 3
UICorner.CornerRadius = UDim.new(0, 5)
UICorner.Parent = Main
Title.Name = "Title"
Title.Parent = Main
Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title.BackgroundTransparency = 1.000
Title.BorderSizePixel = 0
Title.Position = UDim2.new(0, 13, 0, 0)
Title.Size = UDim2.new(0, 556, 0, 19)
Title.ZIndex = 7
Title.Font = Enum.Font.SourceSansBold
Title.Text = title
Title.TextColor3 = theme.TextColor
Title.TextSize = 20.000
Title.TextWrapped = true
Title.TextXAlignment = Enum.TextXAlignment.Left
MainFrame.Name = "MainFrame"
MainFrame.Parent = Main
MainFrame.BackgroundColor3 = theme.Background
MainFrame.BorderSizePixel = 0
MainFrame.Position = UDim2.new(0, 0, 0, 19)
MainFrame.Size = UDim2.new(0, 556, 0, 346)
MainFrame.ZIndex = 3
UICorner_2.CornerRadius = UDim.new(0, 5)
UICorner_2.Parent = MainFrame
SectionBack.Name = "SectionBack"
SectionBack.Parent = MainFrame
SectionBack.BackgroundColor3 = theme.Header
SectionBack.BorderSizePixel = 0
SectionBack.Position = UDim2.new(0, 6, 0, 35)
SectionBack.Size = UDim2.new(0, 544, 0, 304)
SectionBack.ZIndex = 5
UICorner_3.CornerRadius = UDim.new(0, 3)
UICorner_3.Parent = SectionBack
MakeDraggable(Title,Main)
search.Name = "search"
search.Parent = Main
search.BackgroundColor3 = Color3.fromRGB(198, 197, 200)
search.BackgroundTransparency = 1.000
search.LayoutOrder = 1
search.Position = UDim2.new(0, 530, 0, 0)
search.Size = UDim2.new(0, 18, 0, 19)
search.ZIndex = 9
search.Image = "rbxassetid://3926305904"
search.ImageRectOffset = Vector2.new(964, 324)
search.ImageRectSize = Vector2.new(36, 36)
SearchBox.Name = "SearchBox"
SearchBox.Parent = Main
SearchBox.BackgroundColor3 = theme.Background
SearchBox.Position = UDim2.new(0.825999975, 50, 0, 2)
SearchBox.Size = UDim2.new(0, 0, 0, 15)
SearchBox.ZIndex = 10
SearchBox.BorderSizePixel = 0
SearchBox.Font = Enum.Font.SourceSans
SearchBox.PlaceholderColor3 = Color3.fromRGB(239, 239, 239)
SearchBox.Text = ""
SearchBox.TextColor3 = theme.TextColor
SearchBox.TextSize = 14.000
SearchBox.Visible = true
local SearchBoxTog = false
search.MouseButton1Click:Connect(function()
SearchBoxTog = not SearchBoxTog
TweenService:Create(SearchBox,TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),{Size = SearchBoxTog and UDim2.new(0, 71, 0, 15) or UDim2.new(0, 0, 0, 15)}):Play()
TweenService:Create(SearchBox,TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),{Position = SearchBoxTog and UDim2.new(0.825999975, 0, 0, 2) or UDim2.new(0.825999975, 50, 0, 2)}):Play()
end)
UICorner_25.Parent = SearchBox
local TapBar = Instance.new("ScrollingFrame")
local UICorner_16 = Instance.new("UICorner")
local UIListLayout_3 = Instance.new("UIListLayout")
TapBar.Name = "TapBar"
TapBar.Parent = Main
TapBar.BackgroundColor3 = Color3.fromRGB(41, 41, 41)
TapBar.BorderSizePixel = 0
TapBar.Position = UDim2.new(0, 6, 0, 28)
TapBar.Size = UDim2.new(0, 544, 0, 21)
TapBar.ZIndex = 5
TapBar.ScrollBarThickness = 2
TapBar.CanvasSize = UDim2.new(0,0,0,0)
UICorner_16.CornerRadius = UDim.new(0, 3)
UICorner_16.Parent = TapBar
UIListLayout_3.Parent = TapBar
UIListLayout_3.FillDirection = Enum.FillDirection.Horizontal
UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
local uitoggled = false
UserInputService.InputBegan:Connect(
function(io, p)
if io.KeyCode == bind then
if uitoggled == false then
uitoggled = true
wait(.5)
Ui.Enabled = false
else
Ui.Enabled = true
uitoggled = false
end
end
end
)
function library:Notification(title,desc,button)
for i,v in pairs(MainFrame:GetChildren())do
if v.Name == "NotiBackFrame" then
v:Destroy()
end
end
local NotiBackFrame = Instance.new("Frame")
local Notification = Instance.new("Frame")
local Frame = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local Main = Instance.new("Frame")
local UICorner_2 = Instance.new("UICorner")
local Main_2 = Instance.new("Frame")
local UICorner_3 = Instance.new("UICorner")
local TextButton = Instance.new("TextButton")
local UICorner_4 = Instance.new("UICorner")
local Title = Instance.new("TextLabel")
local UICorner_5 = Instance.new("UICorner")
local Title_2 = Instance.new("TextLabel")
local notifications = Instance.new("ImageButton")
NotiBackFrame.Name = "NotiBackFrame"
NotiBackFrame.Parent = MainFrame
NotiBackFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
NotiBackFrame.BackgroundTransparency = 1
NotiBackFrame.Position = UDim2.new(-0.000238045119, 0, -0.0562442914, 0)
NotiBackFrame.Size = UDim2.new(0, 556, 0, 366)
NotiBackFrame.Visible = true
NotiBackFrame.ZIndex = 100
TweenService:Create(
NotiBackFrame,
TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{Position = UDim2.new(0, -500, -0.0562442914, 0)}
):Play()
Notification.Name = "Notification"
Notification.Parent = NotiBackFrame
Notification.BackgroundColor3 = theme.Header
Notification.BorderSizePixel = 0
Notification.Position = UDim2.new(0, 83, 0, 55)
Notification.Size = UDim2.new(0, 390, 0, 255)
Notification.ZIndex = 10
Notification.ClipsDescendants = true
Frame.Parent = Notification
Frame.BackgroundColor3 = theme.Background
Frame.BorderColor3 = Color3.fromRGB(27, 42, 53)
Frame.BorderSizePixel = 0
Frame.Position = UDim2.new(0, 0, 0, 17)
Frame.Size = UDim2.new(0, 390, 0, 236)
Frame.ZIndex = 11
UICorner.CornerRadius = UDim.new(0, 5)
UICorner.Parent = Frame
Main.Name = "Main"
Main.Parent = Frame
Main.BackgroundColor3 = theme.Header
Main.BorderColor3 = Color3.fromRGB(27, 42, 53)
Main.BorderSizePixel = 0
Main.Position = UDim2.new(0, 8, 0, 7)
Main.Size = UDim2.new(0, 373, 0, 220)
Main.ZIndex = 11
UICorner_2.CornerRadius = UDim.new(0, 5)
UICorner_2.Parent = Main
Main_2.Name = "Main"
Main_2.Parent = Main
Main_2.BackgroundColor3 = theme.Background
Main_2.BorderColor3 = Color3.fromRGB(27, 42, 53)
Main_2.BorderSizePixel = 0
Main_2.Position = UDim2.new(0, 6, 0, 5)
Main_2.Size = UDim2.new(0, 360, 0, 209)
Main_2.ZIndex = 11
UICorner_3.CornerRadius = UDim.new(0, 5)
UICorner_3.Parent = Main_2
TextButton.Parent = Main_2
TextButton.BackgroundColor3 = theme.Header
TextButton.Position = UDim2.new(0, 13, 0, 162)
TextButton.Size = UDim2.new(0, 335, 0, 31)
TextButton.ZIndex = 11
TextButton.Font = Enum.Font.SourceSansBold
TextButton.Text = button or "Summit"
TextButton.TextColor3 = theme.TextColor
TextButton.TextSize = 20.000
UICorner_4.CornerRadius = UDim.new(0, 5)
UICorner_4.Parent = TextButton
TextButton.MouseButton1Click:Connect(function()
NotiBackFrame:Destroy()
end)
Title.Name = "Title"
Title.Parent = Main_2
Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title.BackgroundTransparency = 1.000
Title.BorderSizePixel = 0
Title.Position = UDim2.new(0, 14, 0, 8)
Title.Size = UDim2.new(0, 335, 0, 113)
Title.ZIndex = 11
Title.Font = Enum.Font.SourceSansBold
Title.Text = desc
Title.TextColor3 = theme.TextColor
Title.TextSize = 20.000
Title.TextXAlignment = Enum.TextXAlignment.Left
Title.TextYAlignment = Enum.TextYAlignment.Top
UICorner_5.CornerRadius = UDim.new(0, 5)
UICorner_5.Parent = Notification
Title_2.Name = "Title"
Title_2.Parent = Notification
Title_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title_2.BackgroundTransparency = 1.000
Title_2.Position = UDim2.new(0, 28, 0, 1)
Title_2.Size = UDim2.new(0, 191, 0, 19)
Title_2.ZIndex = 10
Title_2.Font = Enum.Font.SourceSansBold
Title_2.Text = title
Title_2.TextColor3 = theme.TextColor
Title_2.TextSize = 20.000
Title_2.TextXAlignment = Enum.TextXAlignment.Left
notifications.Name = "notifications"
notifications.Parent = Notification
notifications.BackgroundTransparency = 1.000
notifications.LayoutOrder = 1
notifications.Position = UDim2.new(0, 7, 0, 0)
notifications.Size = UDim2.new(0, 21, 0, 20)
notifications.ZIndex = 11
notifications.Image = "rbxassetid://3926305904"
notifications.ImageRectOffset = Vector2.new(844, 564)
notifications.ImageRectSize = Vector2.new(36, 36)
end
function tabs:CreateTab(title)
local SectionContent = {}
local Tab1 = Instance.new("TextButton")
local UICorner_17 = Instance.new("UICorner")
Tab1.Name = "Tab"
Tab1.Parent = TapBar
Tab1.BackgroundColor3 = theme.Header
Tab1.Size = UDim2.new(0, 84, 0, 20)
Tab1.ZIndex = 6
Tab1.Font = Enum.Font.SourceSansBold
Tab1.Text = title
Tab1.TextColor3 = theme.TextColor
Tab1.TextSize = 18.000
Tab1.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
Tab1.TextWrapped = true
UICorner_17.CornerRadius = UDim.new(0, 3)
UICorner_17.Parent = Tab1
local ScrollingFrame = Instance.new("ScrollingFrame")
local Left = Instance.new("Frame")
local UIListLayout_2 = Instance.new("UIListLayout")
local Right = Instance.new("Frame")
local UIPadding_2 = Instance.new("UIPadding")
ScrollingFrame.Parent = SectionBack
ScrollingFrame.Active = true
ScrollingFrame.BackgroundColor3 = theme.Header
ScrollingFrame.BackgroundTransparency = 1.000
ScrollingFrame.Position = UDim2.new(0, 0, 0.0197368413, 0)
ScrollingFrame.Size = UDim2.new(0, 542, 0, 298)
ScrollingFrame.ScrollBarThickness = 0
ScrollingFrame.Visible = false
Left.Name = "Left"
Left.Parent = ScrollingFrame
Left.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
Left.BackgroundTransparency = 1.000
Left.BorderSizePixel = 0
Left.Position = UDim2.new(0, 7, 0, 5)
Left.Size = UDim2.new(0, 262, 0, 299)
Left.ZIndex = 6
UIListLayout_2.Parent = ScrollingFrame
UIListLayout_2.FillDirection = Enum.FillDirection.Horizontal
UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout_2.Padding = UDim.new(0, 10)
Right.Name = "Right"
Right.Parent = ScrollingFrame
Right.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
Right.BackgroundTransparency = 1.000
Right.BorderSizePixel = 0
Right.Position = UDim2.new(0, 7, 0, 5)
Right.Size = UDim2.new(0, 262, 0, 299)
Right.ZIndex = 6
local RightList = Instance.new("UIListLayout")
local LeftList = Instance.new("UIListLayout")
LeftList.Parent = Left
LeftList.SortOrder = Enum.SortOrder.LayoutOrder
LeftList.Padding = UDim.new(0, 5)
RightList.Parent = Right
RightList.SortOrder = Enum.SortOrder.LayoutOrder
RightList.Padding = UDim.new(0, 5)
TapBar.CanvasSize = UDim2.new(0,UIListLayout_3.AbsoluteContentSize.X,0,0)
UIPadding_2.Parent = ScrollingFrame
UIPadding_2.PaddingLeft = UDim.new(0, 5)
if s == false then
s = true
Tab1.TextColor3 = theme.Header
ScrollingFrame.Visible = true
Tab1.BackgroundColor3 = theme.SchemeColor
end
local function GetSide(Longest)
if Longest then
if LeftList.AbsoluteContentSize.Y > RightList.AbsoluteContentSize.Y then
return Left
else
return Right
end
else
if LeftList.AbsoluteContentSize.Y > RightList.AbsoluteContentSize.Y then
return Right
else
return Left
end
end
end
LeftList:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
if GetSide(true).Name == Left.Name then
ScrollingFrame.CanvasSize = UDim2.new(0,0,0,LeftList.AbsoluteContentSize.Y + 5)
else
ScrollingFrame.CanvasSize = UDim2.new(0,0,0,RightList.AbsoluteContentSize.Y + 5)
end
end)
RightList:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
if GetSide(true).Name == Left.Name then
ScrollingFrame.CanvasSize = UDim2.new(0,0,0,LeftList.AbsoluteContentSize.Y + 5)
else
ScrollingFrame.CanvasSize = UDim2.new(0,0,0,RightList.AbsoluteContentSize.Y + 5)
end
end)
Tab1.MouseButton1Click:Connect(function()
for i, v in next, SectionBack:GetChildren() do
if v.Name == "ScrollingFrame" then
v.Visible = false
end
ScrollingFrame.Visible = true
end
for i, v in next, TapBar:GetChildren() do
if v.Name == "Tab" then
TweenService:Create(
v,
TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{TextColor3 = theme.TextColor}
):Play()
TweenService:Create(
v,
TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{BackgroundColor3 = theme.Header}
):Play()
TweenService:Create(
Tab1,
TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{TextColor3 = theme.Header}
):Play()
TweenService:Create(
Tab1,
TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{BackgroundColor3 = theme.SchemeColor}
):Play()
end
end
end)
function SectionContent:CreateSection(title)
local Content = {}
local SectionHold = Instance.new("Frame")
local UICorner_4 = Instance.new("UICorner")
local UIListLayout = Instance.new("UIListLayout")
local UIPadding = Instance.new("UIPadding")
SectionHold.Name = "SectionHold"
SectionHold.Parent = GetSide(false)
SectionHold.BackgroundColor3 = theme.Background
SectionHold.Position = UDim2.new(0, 1, 0, 0)
SectionHold.Size = UDim2.new(0, 260, 0, 100)
SectionHold.ZIndex = 7
UICorner_4.CornerRadius = UDim.new(0, 5)
UICorner_4.Parent = SectionHold
UIListLayout.Parent = SectionHold
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.Padding = UDim.new(0, 3)
UIListLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
SectionHold.Size = UDim2.new(1,0,0,UIListLayout.AbsoluteContentSize.Y + 15)
end)
UIPadding.Parent = SectionHold
UIPadding.PaddingLeft = UDim.new(0, 10)
local Title_10 = Instance.new("TextLabel")
Title_10.Name = "Title"
Title_10.Parent = SectionHold
Title_10.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title_10.BackgroundTransparency = 1.000
Title_10.Position = UDim2.new(0.0449448675, 0, -0.00182170793, 0)
Title_10.Size = UDim2.new(0, 211, 0, 31)
Title_10.ZIndex = 8
Title_10.Font = Enum.Font.SourceSansBold
Title_10.Text = title
Title_10.TextColor3 = theme.SchemeColor
Title_10.TextSize = 20.000
Title_10.TextXAlignment = Enum.TextXAlignment.Left
local focused = false
SearchBox.Focused:Connect(function()
end)
SearchBox.FocusLost:Connect(function()
end)
function UpdateInputOfSearchText()
local InputText = string.upper(SearchBox.Text)
for _,button in pairs(SectionHold:GetChildren())do
if button:IsA("Frame") then
if InputText == "" or string.find(string.upper(button.Name),InputText) ~= nil then
button.Visible = true
else
button.Visible = false
end
end
end
end
SearchBox.Changed:Connect(UpdateInputOfSearchText)
function Content:CreateLine()
local Line = Instance.new("Frame")
local Frame_3 = Instance.new("Frame")
local UICorner_8 = Instance.new('UICorner')
Line.Name = "Line"
Line.Parent = SectionHold
Line.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Line.BackgroundTransparency = 1.000
Line.BorderSizePixel = 0
Line.Position = UDim2.new(0, 0, 0, 71)
Line.Size = UDim2.new(0, 224, 0, 10)
Line.ZIndex = 7
Frame_3.Parent = Line
Frame_3.BackgroundColor3 = Color3.fromRGB(37, 37, 37)
Frame_3.BorderColor3 = Color3.fromRGB(255, 255, 255)
Frame_3.BorderSizePixel = 0
Frame_3.Position = UDim2.new(0, 10, 0, 5)
Frame_3.Size = UDim2.new(0, 215, 0, 5)
Frame_3.ZIndex = 7
UICorner_8.CornerRadius = UDim.new(0, 10)
UICorner_8.Parent = Frame_3
end
function Content:CreateLabel(title)
local LabelFunc = {}
local Label2 = Instance.new("Frame")
local Title_4 = Instance.new("TextLabel")
Label2.Name = title
Label2.Parent = SectionHold
Label2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Label2.BackgroundTransparency = 1.000
Label2.BorderSizePixel = 0
Label2.Position = UDim2.new(0, -11, 0, 191)
Label2.Size = UDim2.new(0, 261, 0, 22)
Label2.ZIndex = 7
Title_4.Name = "Title"
Title_4.Parent = Label2
Title_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title_4.BackgroundTransparency = 1.000
Title_4.Position = UDim2.new(0, 12, 0, -6)
Title_4.Size = UDim2.new(0, 211, 0, 31)
Title_4.ZIndex = 8
Title_4.Text = title
Title_4.Font = Enum.Font.SourceSansBold
Title_4.TextColor3 = theme.TextColor
Title_4.TextSize = 20.000
function LabelFunc:Update(text)
Label2.Name = tostring(text)
Title_4.Text = tostring(text)
end
return LabelFunc
end
function Content:CreateLabel2(title)
local LabelFunc = {}
local Label1 = Instance.new("Frame")
local Frame_8 = Instance.new("Frame")
local UICorner_14 = Instance.new("UICorner")
local Frame_9 = Instance.new("Frame")
local UICorner_15 = Instance.new("UICorner")
local Title_9 = Instance.new("TextLabel")
Label1.Name = title
Label1.Parent = SectionHold
Label1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Label1.BackgroundTransparency = 1.000
Label1.BorderSizePixel = 0
Label1.Position = UDim2.new(0, 0, 0, 30)
Label1.Size = UDim2.new(0, 260, 0, 22)
Label1.ZIndex = 7
Frame_8.Parent = Label1
Frame_8.BackgroundColor3 = Color3.fromRGB(37, 37, 37)
Frame_8.BorderColor3 = Color3.fromRGB(255, 255, 255)
Frame_8.BorderSizePixel = 0
Frame_8.Position = UDim2.new(0, 24, 0, 7)
Frame_8.Size = UDim2.new(0, 62, 0, 4)
Frame_8.ZIndex = 7
UICorner_14.CornerRadius = UDim.new(0, 10)
UICorner_14.Parent = Frame_8
Frame_9.Parent = Label1
Frame_9.BackgroundColor3 = Color3.fromRGB(37, 37, 37)
Frame_9.BorderColor3 = Color3.fromRGB(255, 255, 255)
Frame_9.BorderSizePixel = 0
Frame_9.Position = UDim2.new(0, 156, 0, 7)
Frame_9.Size = UDim2.new(0, 62, 0, 4)
Frame_9.ZIndex = 7
UICorner_15.CornerRadius = UDim.new(0, 10)
UICorner_15.Parent = Frame_9
Title_9.Name = "Title"
Title_9.Parent = Label1
Title_9.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title_9.BackgroundTransparency = 1.000
Title_9.Position = UDim2.new(0, 14, 0, -7)
Title_9.Size = UDim2.new(0, 211, 0, 31)
Title_9.ZIndex = 8
Title_9.Text = title
Title_9.Font = Enum.Font.SourceSansBold
Title_9.TextColor3 = theme.TextColor
Title_9.TextSize = 20.000
function LabelFunc:Update(text)
Label1.Name = tostring(text)
Title_4.Text = tostring(text)
end
return LabelFunc
end
function Content:CreateButton(title,callback)
local Button = Instance.new("Frame")
local TextButton = Instance.new("TextButton")
local UICorner_5 = Instance.new("UICorner")
local touch_app = Instance.new("ImageButton")
Button.Name = title
Button.Parent = SectionHold
Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Button.BackgroundTransparency = 1.000
Button.BorderSizePixel = 0
Button.Position = UDim2.new(0, 0, 0, 87)
Button.Size = UDim2.new(0, 240, 0, 30)
Button.ZIndex = 8
TextButton.Parent = Button
TextButton.BackgroundColor3 = theme.Header
TextButton.BorderSizePixel = 0
TextButton.Position = UDim2.new(0, 12, 0, 5)
TextButton.Size = UDim2.new(0, 212, 0, 26)
TextButton.ZIndex = 7
TextButton.Font = Enum.Font.SourceSansBold
TextButton.TextColor3 = theme.TextColor
TextButton.TextSize = 20.000
TextButton.Text = title
UICorner_5.CornerRadius = UDim.new(0, 5)
UICorner_5.Parent = TextButton
touch_app.Name = "touch_app"
touch_app.Parent = Button
touch_app.BackgroundTransparency = 1.000
touch_app.LayoutOrder = 9
touch_app.Position = UDim2.new(0, 197, 0, 5)
touch_app.Size = UDim2.new(0, 26, 0, 22)
touch_app.ZIndex = 11
touch_app.Image = "rbxassetid://3926305904"
touch_app.ImageRectOffset = Vector2.new(84, 204)
touch_app.ImageRectSize = Vector2.new(36, 36)
touch_app.MouseButton1Down:Connect(function()
RippleEffect(touch_app)
pcall(callback)
end)
TextButton.MouseButton1Down:Connect(function()
RippleEffect(Button)
pcall(callback)
end)
end
function Content:CreateToggle(title,default,callback)
local Toggled = false
local ToggleFunc = {}
local Toggle = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local ToggleBack = Instance.new("TextButton")
local UICorner = Instance.new("UICorner")
local ImageLabel = Instance.new("ImageLabel")
local UICorner_2 = Instance.new("UICorner")
Toggle.Name = title
Toggle.Parent = SectionHold
Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Toggle.BackgroundTransparency = 1.000
Toggle.BorderSizePixel = 0
Toggle.Position = UDim2.new(0, 0, 0, 187)
Toggle.Size = UDim2.new(0, 231, 0, 30)
Toggle.ZIndex = 7
Title.Name = "Title"
Title.Parent = Toggle
Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title.BackgroundTransparency = 1.000
Title.Position = UDim2.new(0, 43, 0, 6)
Title.Size = UDim2.new(0, 168, 0, 22)
Title.ZIndex = 8
Title.Font = Enum.Font.SourceSansBold
Title.Text = title
Title.TextColor3 = theme.TextColor
Title.TextSize = 20.000
Title.TextXAlignment = Enum.TextXAlignment.Left
ToggleBack.Name = "ToggleBack"
ToggleBack.Parent = Toggle
ToggleBack.BackgroundColor3 = theme.Header
ToggleBack.Position = UDim2.new(0.0173160173, 0, 0.0666666701, 0)
ToggleBack.Size = UDim2.new(0, 26, 0, 26)
ToggleBack.ZIndex = 11
ToggleBack.Font = Enum.Font.SourceSans
ToggleBack.Text = ""
ToggleBack.TextColor3 = Color3.fromRGB(0, 0, 0)
ToggleBack.TextSize = 14.000
UICorner.CornerRadius = UDim.new(0, 5)
UICorner.Parent = ToggleBack
function ToggleFunc:Update(state)
if state then
Toggled = state
TweenService:Create(
ImageLabel,
TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{BackgroundColor3 = Toggled and theme.SchemeColor or theme.Header}
):Play()
pcall(callback,Toggled)
else
Toggled = state
TweenService:Create(
ImageLabel,
TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{BackgroundColor3 = Toggled and theme.SchemeColor or theme.Header}
):Play()
pcall(callback,Toggled)
end
end
ToggleBack.MouseButton1Down:Connect(function()
Toggled = not Toggled
TweenService:Create(
ImageLabel,
TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{BackgroundColor3 = Toggled and theme.SchemeColor or theme.Header}
):Play()
RippleEffect(ToggleBack)
pcall(callback,Toggled)
end)
ImageLabel.Parent = ToggleBack
ImageLabel.BackgroundColor3 = theme.Header
ImageLabel.Position = UDim2.new(0, 1, 0, 1)
ImageLabel.Size = UDim2.new(0, 24, 0, 24)
ImageLabel.ZIndex = 11
ImageLabel.Image = "rbxassetid://3926305904"
ImageLabel.ImageColor3 = Color3.fromRGB(41, 41, 41)
ImageLabel.ImageRectOffset = Vector2.new(312, 4)
ImageLabel.ImageRectSize = Vector2.new(24, 24)
UICorner_2.CornerRadius = UDim.new(0, 5)
UICorner_2.Parent = ImageLabel
if default then
Toggled = default
TweenService:Create(
ImageLabel,
TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{BackgroundColor3 = Toggled and theme.SchemeColor or theme.Header}
):Play()
pcall(callback,Toggled)
end
return ToggleFunc
end
function Content:CreateKeybind(title,ori,callback)
local Keybind = Instance.new("Frame")
local Title_4 = Instance.new("TextLabel")
local TextButton2323 = Instance.new("TextButton")
local UICorner_5 = Instance.new("UICorner")
Keybind.Name = title
Keybind.Parent = SectionHold
Keybind.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Keybind.BackgroundTransparency = 1.000
Keybind.BorderSizePixel = 0
Keybind.Position = UDim2.new(0, 0, 0, 223)
Keybind.Size = UDim2.new(0, 231, 0, 30)
Keybind.ZIndex = 7
Title_4.Name = "Title"
Title_4.Parent = Keybind
Title_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title_4.BackgroundTransparency = 1.000
Title_4.BorderSizePixel = 0
Title_4.Position = UDim2.new(0, 10, 0, 4)
Title_4.Size = UDim2.new(0, 98, 0, 22)
Title_4.ZIndex = 8
Title_4.Font = Enum.Font.SourceSansBold
Title_4.Text = title
Title_4.TextColor3 = theme.TextColor
Title_4.TextSize = 18.000
Title_4.TextXAlignment = Enum.TextXAlignment.Left
TextButton2323.Parent = Keybind
TextButton2323.BackgroundColor3 = theme.Header
TextButton2323.Position = UDim2.new(0.744588733, 0, 0.13333334, 0)
TextButton2323.Size = UDim2.new(0, 65, 0, 24)
TextButton2323.ZIndex = 11
TextButton2323.Font = Enum.Font.SourceSansBold
TextButton2323.TextColor3 = theme.TextColor
TextButton2323.TextSize = 15.000
TextButton2323.Text = ori.Name or ""
UICorner_5.CornerRadius = UDim.new(0, 5)
UICorner_5.Parent = TextButton2323
TextButton2323.MouseButton1Click:Connect(function()
TextButton2323.Text = "..."
local inputwait = UserInputService.InputBegan:wait()
if inputwait.KeyCode.Name ~= "Unknown" then
TextButton2323.Text = inputwait.KeyCode.Name
Key = inputwait.KeyCode.Name
end
end)
UserInputService.InputBegan:connect(
function(current, pressed)
if not pressed then
if current.KeyCode.Name == Key then
pcall(callback)
end
end
end)
end
function Content:CreateSlider(title,min,max,default,callback)
local SliderFunc = {}
local Slider = Instance.new("Frame")
local Title_2 = Instance.new("TextLabel")
local Frame = Instance.new("Frame")
local UICorner_2 = Instance.new("UICorner")
local Title_3 = Instance.new("TextLabel")
local add = Instance.new("ImageButton")
local remove = Instance.new("ImageButton")
local SliderFrame = Instance.new("TextButton")
local UICorner_3 = Instance.new("UICorner")
local Sliderin = Instance.new("TextButton")
local UICorner_4 = Instance.new("UICorner")
Slider.Name = title
Slider.Parent = SectionHold
Slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Slider.BackgroundTransparency = 1.000
Slider.BorderSizePixel = 0
Slider.Position = UDim2.new(0, 0, 0, 61)
Slider.Size = UDim2.new(0, 231, 0, 39)
Slider.ZIndex = 7
Title_2.Name = "Title"
Title_2.Parent = Slider
Title_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title_2.BackgroundTransparency = 1.000
Title_2.Position = UDim2.new(0.0519480482, 0, 0.128205135, 0)
Title_2.Size = UDim2.new(0, 143, 0, 23)
Title_2.ZIndex = 8
Title_2.Font = Enum.Font.SourceSansBold
Title_2.Text = title
Title_2.TextColor3 = theme.TextColor
Title_2.TextSize = 20.000
Title_2.TextXAlignment = Enum.TextXAlignment.Left
Frame.Parent = Slider
Frame.BackgroundColor3 = theme.Header
Frame.BorderColor3 = Color3.fromRGB(27, 42, 53)