This repository has been archived by the owner on Mar 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Source.lua
2217 lines (1890 loc) · 102 KB
/
Source.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 M7Lib = {
Connections = {}
}
local uis = game:GetService("UserInputService")
local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
local CoreGui = game:GetService("CoreGui")
local TweenService = game:GetService("TweenService")
local viewPort = workspace.CurrentCamera.ViewportSize
local mouse = game.Players.LocalPlayer:GetMouse()
local M7UILibrary = Instance.new("ScreenGui")
M7UILibrary.Name = "M7"
M7UILibrary.IgnoreGuiInset = true
if syn then
syn.protect_gui(M7UILibrary)
M7UILibrary.Parent = CoreGui
else
M7UILibrary.Parent = gethui() or CoreGui
end
if gethui then
for _, v in ipairs(gethui():GetChildren()) do
if v.Name == M7UILibrary.Name and v ~= M7UILibrary then
v:Destroy()
end
end
else
for _, v in ipairs(game.CoreGui:GetChildren()) do
if v.Name == M7UILibrary.Name and v ~= M7UILibrary then
v:Destroy()
end
end
end
function M7Lib:IsRunning()
if gethui then
return M7UILibrary.Parent == gethui()
else
return M7UILibrary.Parent == CoreGui
end
end
local function AddConnection(Signal, Function)
if (not M7Lib:IsRunning()) then
return
end
local SignalConnect = Signal:Connect(Function)
table.insert(M7Lib.Connections, SignalConnect)
return SignalConnect
end
task.spawn(function()
while (M7Lib:IsRunning()) do
task.wait()
end
for _, Connection in pairs(M7Lib.Connections) do
Connection:Disconnect()
end
end)
function M7Lib:Window(WindowConfig)
WindowConfig = WindowConfig or {}
WindowConfig.Name = WindowConfig.Name or "M7 UI Library"
WindowConfig.Version = WindowConfig.Version or "M7ilan#5185"
WindowConfig.Logo = WindowConfig.Logo or ""
WindowConfig.Color = WindowConfig.Color or Color3.fromRGB(50, 200, 100)
if WindowConfig.Intro == nil then
WindowConfig.Intro = true
end
WindowSize = UDim2.new(0, 600, 0, 400)
local MainFrame = Instance.new("Frame")
local NotificationsSection = Instance.new("Frame")
local UIListLayout_1 = Instance.new("UIListLayout")
local UIPadding_1 = Instance.new("UIPadding")
local UICorner = Instance.new("UICorner")
local DropShadow = Instance.new("ImageLabel")
local LeftSideFrame = Instance.new("Frame")
local UICorner_2 = Instance.new("UICorner")
local Header = Instance.new("Frame")
local UIPadding = Instance.new("UIPadding")
local Title = Instance.new("TextLabel")
local Version = Instance.new("TextLabel")
local Logo = Instance.new("ImageButton")
local UICorner_3 = Instance.new("UICorner")
local TabsFrame = Instance.new("ScrollingFrame")
local UIListLayout = Instance.new("UIListLayout")
local UIPadding_3 = Instance.new("UIPadding")
local Footer = Instance.new("Frame")
local UIPadding_4 = Instance.new("UIPadding")
local UIKeyBindFrame = Instance.new("Frame")
local UICorner_4 = Instance.new("UICorner")
local UIKeyBindTextButton = Instance.new("TextButton")
local UIPadding_5 = Instance.new("UIPadding")
local Close = Instance.new("TextLabel")
local Hide = Instance.new("Frame")
local RightSideFrame = Instance.new("Frame")
local PagesHolder = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Parent = M7UILibrary
MainFrame.BackgroundColor3 = Color3.fromRGB(40, 43, 48)
MainFrame.Size = UDim2.new(0, 200, 0, 60)
MainFrame.Position = UDim2.fromOffset((viewPort.X / 2) - (MainFrame.Size.X.Offset / 2), (viewPort.Y / 2) - (MainFrame.Size.Y.Offset / 2))
UICorner.Parent = MainFrame
DropShadow.Name = "DropShadow"
DropShadow.Parent = MainFrame
DropShadow.AnchorPoint = Vector2.new(0.5, 0.5)
DropShadow.BackgroundTransparency = 1.000
DropShadow.BorderSizePixel = 0
DropShadow.Position = UDim2.new(0.5, 0, 0.5, 0)
DropShadow.Size = UDim2.new(1, 47, 1, 47)
DropShadow.ZIndex = 0
DropShadow.Image = "rbxassetid://6014261993"
DropShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
DropShadow.ImageTransparency = 0.500
DropShadow.ScaleType = Enum.ScaleType.Slice
DropShadow.SliceCenter = Rect.new(49, 49, 450, 450)
LeftSideFrame.Name = "LeftSideFrame"
LeftSideFrame.Parent = MainFrame
LeftSideFrame.BackgroundColor3 = Color3.fromRGB(30, 33, 36)
LeftSideFrame.ClipsDescendants = true
LeftSideFrame.Size = UDim2.new(0, 200, 1, 0)
NotificationsSection.Name = "Notifications Section"
NotificationsSection.Parent = M7UILibrary
NotificationsSection.AnchorPoint = Vector2.new(1, 1)
NotificationsSection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
NotificationsSection.BackgroundTransparency = 1.000
NotificationsSection.Position = UDim2.new(1, 0, 1, 0)
NotificationsSection.Size = UDim2.new(0, 360, 1, 0)
UIListLayout_1.Parent = NotificationsSection
UIListLayout_1.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout_1.VerticalAlignment = Enum.VerticalAlignment.Bottom
UIListLayout_1.Padding = UDim.new(0, 10)
UIPadding_1.Parent = NotificationsSection
UIPadding_1.PaddingBottom = UDim.new(0, 10)
UIPadding_1.PaddingLeft = UDim.new(0, 10)
UIPadding_1.PaddingRight = UDim.new(0, 10)
UIPadding_1.PaddingTop = UDim.new(0, 10)
UICorner_2.Parent = LeftSideFrame
Header.Name = "Header"
Header.Parent = LeftSideFrame
Header.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Header.BackgroundTransparency = 1.000
Header.Size = UDim2.new(1, 0, 0, 60)
UIPadding.Parent = Header
UIPadding.PaddingBottom = UDim.new(0, 10)
UIPadding.PaddingLeft = UDim.new(0, 10)
UIPadding.PaddingRight = UDim.new(0, 10)
UIPadding.PaddingTop = UDim.new(0, 10)
Title.Name = "Title"
Title.Parent = Header
Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title.BackgroundTransparency = 1.000
Title.Position = UDim2.new(0, 50, 0, 0)
Title.Size = UDim2.new(1, -50, 0, 25)
Title.Font = Enum.Font.GothamBold
Title.Text = WindowConfig.Name
Title.TextColor3 = WindowConfig.Color
Title.TextScaled = true
Title.TextSize = 20.000
Title.TextWrapped = true
Title.TextXAlignment = Enum.TextXAlignment.Left
Title.TextYAlignment = Enum.TextYAlignment.Top
Version.Name = "Version"
Version.Parent = Header
Version.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Version.BackgroundTransparency = 1.000
Version.Position = UDim2.new(0, 50, 0, 25)
Version.Size = UDim2.new(1, -50, 0, 15)
Version.Font = Enum.Font.GothamMedium
Version.Text = WindowConfig.Version
Version.TextColor3 = WindowConfig.Color
Version.TextScaled = true
Version.TextSize = 20.000
Version.TextTransparency = 0.500
Version.TextWrapped = true
Version.TextXAlignment = Enum.TextXAlignment.Left
Logo.Name = "Logo"
Logo.Parent = Header
Logo.BackgroundColor3 = WindowConfig.Color
Logo.Size = UDim2.new(0, 40, 0, 40)
Logo.AutoButtonColor = false
Logo.Image = "rbxassetid://"..WindowConfig.Logo
UICorner_3.CornerRadius = UDim.new(1, 0)
UICorner_3.Parent = Logo
TabsFrame.Name = "TabsFrame"
TabsFrame.Parent = LeftSideFrame
TabsFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TabsFrame.BackgroundTransparency = 1.000
TabsFrame.Position = UDim2.new(0, 0, 0, 60)
TabsFrame.Size = UDim2.new(0, 200, 0, 300)
TabsFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
TabsFrame.ScrollBarThickness = 0
UIListLayout.Parent = TabsFrame
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.Padding = UDim.new(0, 10)
UIPadding_3.Parent = TabsFrame
UIPadding_3.PaddingBottom = UDim.new(0, 20)
UIPadding_3.PaddingLeft = UDim.new(0, 20)
UIPadding_3.PaddingRight = UDim.new(0, 20)
UIPadding_3.PaddingTop = UDim.new(0, 20)
Footer.Name = "Footer"
Footer.Parent = LeftSideFrame
Footer.AnchorPoint = Vector2.new(0, 1)
Footer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Footer.BackgroundTransparency = 1.000
Footer.Position = UDim2.new(0, 0, 1, 0)
Footer.Size = UDim2.new(1, 0, 0, 40)
Footer.Visible = false
UIPadding_4.Parent = Footer
UIPadding_4.PaddingBottom = UDim.new(0, 10)
UIPadding_4.PaddingLeft = UDim.new(0, 10)
UIPadding_4.PaddingRight = UDim.new(0, 10)
UIPadding_4.PaddingTop = UDim.new(0, 10)
UIKeyBindFrame.Name = "UIKeyBindFrame"
UIKeyBindFrame.Parent = Footer
UIKeyBindFrame.BackgroundTransparency = 1
UIKeyBindFrame.BackgroundColor3 = Color3.fromRGB(40, 43, 48)
UIKeyBindFrame.Size = UDim2.new(1, -60, 1, 0)
UICorner_4.Parent = UIKeyBindFrame
UIKeyBindTextButton.Name = "UIKeyBindTextButton"
UIKeyBindTextButton.Parent = UIKeyBindFrame
UIKeyBindTextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
UIKeyBindTextButton.BackgroundTransparency = 1.000
UIKeyBindTextButton.Size = UDim2.new(1, 0, 1, 0)
UIKeyBindTextButton.Font = Enum.Font.GothamBold
UIKeyBindTextButton.Text = "RightControl"
UIKeyBindTextButton.TextColor3 = WindowConfig.Color
UIKeyBindTextButton.TextScaled = true
UIKeyBindTextButton.TextSize = 14.000
UIPadding_5.Parent = UIKeyBindTextButton
UIPadding_5.PaddingBottom = UDim.new(0, 3)
UIPadding_5.PaddingLeft = UDim.new(0, 5)
UIPadding_5.PaddingRight = UDim.new(0, 5)
UIPadding_5.PaddingTop = UDim.new(0, 3)
Close.Name = "Close"
Close.Parent = Footer
Close.AnchorPoint = Vector2.new(1, 0)
Close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Close.BackgroundTransparency = 1.000
Close.Position = UDim2.new(1, -10, 0, 0)
Close.Size = UDim2.new(1, -130, 1, 0)
Close.Font = Enum.Font.GothamMedium
Close.Text = "Close"
Close.TextColor3 = Color3.fromRGB(255, 255, 255)
Close.TextSize = 14.000
Close.TextWrapped = true
Hide.Name = "Hide"
Hide.Parent = LeftSideFrame
Hide.AnchorPoint = Vector2.new(1, 0)
Hide.BackgroundColor3 = Color3.fromRGB(30, 33, 36)
Hide.BorderSizePixel = 0
Hide.Position = UDim2.new(1, 0, 0, 0)
Hide.Size = UDim2.new(0, 8, 1, 0)
Hide.Visible = false
RightSideFrame.Name = "RightSideFrame"
RightSideFrame.Parent = MainFrame
RightSideFrame.AnchorPoint = Vector2.new(1, 0)
RightSideFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
RightSideFrame.BackgroundTransparency = 1.000
RightSideFrame.ClipsDescendants = true
RightSideFrame.Position = UDim2.new(1, 0, 0, 0)
RightSideFrame.Size = UDim2.new(1, -200, 1, 0)
PagesHolder.Name = "PagesHolder"
PagesHolder.Parent = RightSideFrame
PagesHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
PagesHolder.BackgroundTransparency = 1.000
PagesHolder.Size = UDim2.new(1, 0, 1, 0)
local function Minimize()
local MinimizeSpeed = 0.5
if MainFrame.Size == WindowSize then
TweenService:Create(MainFrame, TweenInfo.new(MinimizeSpeed, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Size = UDim2.new(0, 200, 0, 60)}):Play()
Hide.Visible = false
Footer.Visible = false
PagesHolder.Visible = false
end
if MainFrame.Size == UDim2.new(0, 200, 0, 60) then
TweenService:Create(MainFrame, TweenInfo.new(MinimizeSpeed, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Size = WindowSize}):Play()
Footer.Visible = true
Hide.Visible = true
PagesHolder.Visible = true
end
end
local function StartUp(e)
if e then
Logo.Active = false
task.wait(2)
TweenService:Create(MainFrame, tweenInfo, {Position = UDim2.fromOffset((viewPort.X / 2) - (WindowSize.X.Offset / 2), (viewPort.Y / 2) - (WindowSize.Y.Offset / 2))}):Play()
if MainFrame.Size == WindowSize then
TweenService:Create(MainFrame, tweenInfo, {Size = UDim2.new(0, 200, 0, 60)}):Play()
PagesHolder.Visible = false
task.wait(0.1)
Footer.Visible = false
Hide.Visible = false
elseif MainFrame.Size == UDim2.new(0, 200, 0, 60) then
TweenService:Create(MainFrame, tweenInfo, {Size = WindowSize}):Play()
PagesHolder.Visible = true
task.wait(0.1)
Footer.Visible = true
Hide.Visible = true
end
while task.wait() do
if MainFrame.Size == WindowSize then
Logo.Active = true
break
end
end
else
MainFrame.Size = WindowSize
MainFrame.Position = UDim2.fromOffset((viewPort.X / 2) - (WindowSize.X.Offset / 2), (viewPort.Y / 2) - (WindowSize.Y.Offset / 2))
PagesHolder.Visible = true
Footer.Visible = true
Hide.Visible = true
end
end
AddConnection(UIKeyBindFrame.MouseEnter, function()
TweenService:Create(UIKeyBindFrame, tweenInfo, {BackgroundTransparency = 0}):Play()
end)
AddConnection(UIKeyBindFrame.MouseLeave, function()
TweenService:Create(UIKeyBindFrame, tweenInfo, {BackgroundTransparency = 1}):Play()
end)
local UIKeyBind = Enum.KeyCode.RightControl.Name
AddConnection(UIKeyBindTextButton.Activated, function()
UIKeyBindTextButton.Text = ". . ."
UIKeyBind = nil
local e = uis.InputBegan:wait()
if e.KeyCode.Name ~= "Unknown" then
UIKeyBindTextButton.Text = e.KeyCode.Name
task.wait()
UIKeyBind = e.KeyCode.Name
end
end)
AddConnection(uis.InputBegan, function(input, e)
if input.KeyCode.Name == UIKeyBind and not e then
if M7UILibrary.Enabled == true then
M7UILibrary.Enabled = false
else
M7UILibrary.Enabled = true
end
end
end)
AddConnection(UIListLayout.Changed, function()
TabsFrame.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y + 40)
end)
local dragToggle
local mouseStart
local mainFrameStart
local function updateInput(input)
local mouseEnd = input.Position - mouseStart
local position = UDim2.new(mainFrameStart.X.Scale, mainFrameStart.X.Offset + mouseEnd.X, mainFrameStart.Y.Scale, mainFrameStart.Y.Offset + mouseEnd.Y)
game:GetService('TweenService'):Create(MainFrame, TweenInfo.new(0.01), {Position = position}):Play()
end
AddConnection(LeftSideFrame.InputBegan, function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragToggle = true
mouseStart = input.Position
mainFrameStart = MainFrame.Position
AddConnection(input.Changed, function()
if input.UserInputState == Enum.UserInputState.End then
dragToggle = false
end
end)
end
end)
AddConnection(uis.InputChanged, function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement then
if dragToggle then
updateInput(input)
end
end
end)
AddConnection(Logo.Activated, function()
Minimize()
end)
function M7Lib:DestroyUI()
M7UILibrary:Destroy()
end
function M7Lib:Notify(NotifyConfig)
NotifyConfig = NotifyConfig or {}
NotifyConfig.Title = NotifyConfig.Title or "Title"
NotifyConfig.Description = NotifyConfig.Description or "Description"
NotifyConfig.Time = NotifyConfig.Time or 3
local Notification = Instance.new("Frame")
local UIStroke = Instance.new("UIStroke")
local Title = Instance.new("TextLabel")
local Description = Instance.new("TextLabel")
local UIPadding = Instance.new("UIPadding")
local UICorner = Instance.new("UICorner")
Notification.Name = "Notification"
Notification.Parent = NotificationsSection
Notification.BackgroundColor3 = Color3.fromRGB(50, 200, 100)
Notification.Size = UDim2.new(1, 0, 0, 60)
UIStroke.Parent = Notification
UIStroke.Color = WindowConfig.Color
UIStroke.Thickness = 2
UIStroke.Transparency = 0
Title.Name = "Title"
Title.Parent = Notification
Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title.BackgroundTransparency = 1.000
Title.Size = UDim2.new(1, 0, 0, 20)
Title.Font = Enum.Font.GothamBold
Title.Text = NotifyConfig.Title
Title.TextColor3 = Color3.fromRGB(50, 200, 100)
Title.TextScaled = true
Title.TextSize = 20.000
Title.TextWrapped = true
Title.TextXAlignment = Enum.TextXAlignment.Left
Description.Name = "Description"
Description.Parent = Notification
Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Description.BackgroundTransparency = 1.000
Description.Position = UDim2.new(0, 0, 0, 25)
Description.Size = UDim2.new(1, 0, 1, -25)
Description.Font = Enum.Font.GothamMedium
Description.Text = NotifyConfig.Description
Description.TextColor3 = Color3.fromRGB(50, 200, 100)
Description.TextSize = 15.000
Description.TextTransparency = 0.500
Description.TextWrapped = true
Description.TextXAlignment = Enum.TextXAlignment.Left
Description.TextYAlignment = Enum.TextYAlignment.Top
UIPadding.Parent = Notification
UIPadding.PaddingBottom = UDim.new(0, 10)
UIPadding.PaddingLeft = UDim.new(0, 10)
UIPadding.PaddingRight = UDim.new(0, 10)
UIPadding.PaddingTop = UDim.new(0, 10)
UICorner.Parent = Notification
while Description.TextFits == false do
Notification.Size = UDim2.new(1, 0, 0, Notification.Size.Y.Offset + 15)
task.wait()
end
task.wait(0.15)
TweenService:Create(Notification, tweenInfo, {BackgroundColor3 = Color3.fromRGB(40, 43, 48)}):Play()
task.wait(NotifyConfig.Time)
TweenService:Create(Notification, tweenInfo, {Transparency = 1}):Play()
TweenService:Create(Title, tweenInfo, {TextTransparency = 1}):Play()
TweenService:Create(Description, tweenInfo, {TextTransparency = 1}):Play()
TweenService:Create(UIStroke, tweenInfo, {Transparency = 1}):Play()
task.wait(0.4)
Notification:Destroy()
end
local TabsLib = {}
function TabsLib:Tab(TabConfig)
TabConfig = TabConfig or {}
TabConfig.Name = TabConfig.Name or "Tab"
local Page = Instance.new("ScrollingFrame")
local UIPadding_6 = Instance.new("UIPadding")
local UIListLayout_2 = Instance.new("UIListLayout")
local TextBox = Instance.new("TextBox")
local UIPadding_7 = Instance.new("UIPadding")
local Tab = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local TabTextButton = Instance.new("TextButton")
local UIPadding = Instance.new("UIPadding")
Page.Name = "Page"
Page.Parent = PagesHolder
Page.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Page.BackgroundTransparency = 1.000
Page.ClipsDescendants = false
Page.Size = UDim2.new(1, 0, 1, 0)
Page.CanvasSize = UDim2.new(0, 0, 0, 0)
Page.ScrollBarThickness = 0
Page.Visible = false
UIPadding_6.Parent = Page
UIPadding_6.PaddingBottom = UDim.new(0, 10)
UIPadding_6.PaddingLeft = UDim.new(0, 20)
UIPadding_6.PaddingRight = UDim.new(0, 20)
UIPadding_6.PaddingTop = UDim.new(0, 10)
UIListLayout_2.Parent = Page
UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout_2.Padding = UDim.new(0, 10)
UIPadding_7.Parent = TextBox
UIPadding_7.PaddingBottom = UDim.new(0, 5)
UIPadding_7.PaddingLeft = UDim.new(0, 10)
UIPadding_7.PaddingRight = UDim.new(0, 10)
UIPadding_7.PaddingTop = UDim.new(0, 5)
Tab.Name = "Tab"
Tab.Parent = TabsFrame
Tab.BackgroundTransparency = 1
Tab.BackgroundColor3 = Color3.fromRGB(40, 43, 48)
Tab.Size = UDim2.new(1, 0, 0, 30)
UICorner.CornerRadius = UDim.new(0, 10)
UICorner.Parent = Tab
TabTextButton.Name = "TabTextButton"
TabTextButton.Parent = Tab
TabTextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TabTextButton.BackgroundTransparency = 1.000
TabTextButton.Size = UDim2.new(1, 0, 1, 0)
TabTextButton.Font = Enum.Font.GothamMedium
TabTextButton.Text = TabConfig.Name
TabTextButton.TextColor3 = WindowConfig.Color
TabTextButton.TextScaled = true
UIPadding.Parent = TabTextButton
UIPadding.PaddingBottom = UDim.new(0, 5)
UIPadding.PaddingLeft = UDim.new(0, 5)
UIPadding.PaddingRight = UDim.new(0, 5)
UIPadding.PaddingTop = UDim.new(0, 5)
AddConnection(Tab.MouseEnter, function()
TweenService:Create(Tab, tweenInfo, {BackgroundTransparency = 0.2}):Play()
end)
AddConnection(Tab.MouseLeave, function()
TweenService:Create(Tab, tweenInfo, {BackgroundTransparency = 1}):Play()
end)
AddConnection(TabTextButton.MouseButton1Down, function()
TweenService:Create(Tab, tweenInfo, {BackgroundTransparency = 0}):Play()
end)
AddConnection(TabTextButton.MouseButton1Up, function()
TweenService:Create(Tab, tweenInfo, {BackgroundTransparency = 0.2}):Play()
end)
AddConnection(TabTextButton.Activated, function()
for _, v in pairs(TabsFrame:GetDescendants()) do
if v:IsA("TextButton") then
TweenService:Create(v, tweenInfo, {TextTransparency = 0.8}):Play()
end
end
TweenService:Create(TabTextButton, tweenInfo, {TextTransparency = 0}):Play()
for _, v in pairs(PagesHolder:GetChildren()) do
if v:IsA("ScrollingFrame") then
v.Visible = false
end
Page.Visible = true
end
end)
AddConnection(UIListLayout_2.Changed, function()
Page.CanvasSize = UDim2.new(0, 0, 0, UIListLayout_2.AbsoluteContentSize.Y + 20)
end)
local SectionsLib = {}
function SectionsLib:Section(SectionConfig)
SectionConfig = SectionConfig or {}
SectionConfig.Name = SectionConfig.Name or "Section"
local Section = Instance.new("Frame")
local UIPadding_7 = Instance.new("UIPadding")
local UIListLayout_3 = Instance.new("UIListLayout")
local SectionTitle = Instance.new("TextLabel")
Section.Name = "Section"
Section.Parent = Page
Section.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Section.BackgroundTransparency = 1.000
Section.ClipsDescendants = true
Section.Position = UDim2.new(0, 0, 0, 40)
Section.Size = UDim2.new(1, 0, 0, 0)
UIPadding_7.Parent = Section
UIPadding_7.PaddingBottom = UDim.new(0, 10)
UIPadding_7.PaddingLeft = UDim.new(0, 10)
UIPadding_7.PaddingRight = UDim.new(0, 10)
UIPadding_7.PaddingTop = UDim.new(0, 10)
UIListLayout_3.Parent = Section
UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout_3.Padding = UDim.new(0, 6)
SectionTitle.Name = "SectionTitle"
SectionTitle.Parent = Section
SectionTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
SectionTitle.BackgroundTransparency = 1.000
SectionTitle.Size = UDim2.new(1, 0, 0, 18)
SectionTitle.Font = Enum.Font.GothamMedium
SectionTitle.Text = SectionConfig.Name
SectionTitle.TextColor3 = WindowConfig.Color
SectionTitle.TextScaled = true
SectionTitle.TextWrapped = true
SectionTitle.TextXAlignment = Enum.TextXAlignment.Left
AddConnection(UIListLayout_3.Changed, function()
Section.Size = UDim2.new(1, 0, 0, UIListLayout_3.AbsoluteContentSize.Y + 20)
end)
StartUp(WindowConfig.Intro)
local ItemsLib = {}
function ItemsLib:Button(ButtonConfig, ButtonParent, ButtonBackgroundColor)
ButtonConfig = ButtonConfig or {}
ButtonConfig.Name = ButtonConfig.Name or "Button"
ButtonConfig.Callback = ButtonConfig.Callback or function() end
ButtonParent = ButtonParent or Section
ButtonBackgroundColor = ButtonBackgroundColor or Color3.fromRGB(30, 33, 36)
local ButtonItem = Instance.new("Frame")
local UIStroke = Instance.new("UIStroke")
local ButtonImage = Instance.new("ImageLabel")
local ButtonText = Instance.new("TextLabel")
local UIPadding_8 = Instance.new("UIPadding")
local ButtonButton = Instance.new("TextButton")
local UICorner_6 = Instance.new("UICorner")
ButtonItem.Name = "ButtonItem"
ButtonItem.Parent = ButtonParent
ButtonItem.BackgroundColor3 = ButtonBackgroundColor
ButtonItem.Size = UDim2.new(1, 0, 0, 40)
ButtonItem.BackgroundTransparency = 0
UIStroke.Parent = ButtonItem
UIStroke.Color = WindowConfig.Color
UIStroke.Thickness = 2
UIStroke.Transparency = 1
ButtonImage.Name = "ButtonImage"
ButtonImage.Parent = ButtonItem
ButtonImage.AnchorPoint = Vector2.new(1, 0)
ButtonImage.BackgroundColor3 = WindowConfig.Color
ButtonImage.BackgroundTransparency = 1
ButtonImage.BorderSizePixel = 0
ButtonImage.Position = UDim2.new(1, -8, 0, 5)
ButtonImage.Size = UDim2.new(0, 30, 0, 30)
ButtonImage.Image = "rbxassetid://11711934517"
ButtonImage.ImageColor3 = WindowConfig.Color
ButtonImage.ImageTransparency = 0
ButtonText.Name = "ButtonText"
ButtonText.Parent = ButtonItem
ButtonText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ButtonText.BackgroundTransparency = 1
ButtonText.Size = UDim2.new(1, -50, 1, 0)
ButtonText.Font = Enum.Font.GothamMedium
ButtonText.Text = ButtonConfig.Name
ButtonText.TextColor3 = WindowConfig.Color
ButtonText.TextScaled = true
ButtonText.TextSize = 14.000
ButtonText.TextWrapped = true
ButtonText.TextXAlignment = Enum.TextXAlignment.Left
ButtonText.TextTransparency = 0
UIPadding_8.Parent = ButtonText
UIPadding_8.PaddingBottom = UDim.new(0, 10)
UIPadding_8.PaddingLeft = UDim.new(0, 10)
UIPadding_8.PaddingRight = UDim.new(0, 10)
UIPadding_8.PaddingTop = UDim.new(0, 10)
ButtonButton.Name = "ButtonButton"
ButtonButton.Parent = ButtonItem
ButtonButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ButtonButton.BackgroundTransparency = 1.000
ButtonButton.Size = UDim2.new(1, 0, 1, 0)
ButtonButton.Font = Enum.Font.SourceSans
ButtonButton.TextColor3 = Color3.fromRGB(0, 0, 0)
ButtonButton.TextSize = 14.000
ButtonButton.TextTransparency = 1.000
UICorner_6.CornerRadius = UDim.new(0, 10)
UICorner_6.Parent = ButtonItem
AddConnection(ButtonItem.MouseEnter, function()
TweenService:Create(UIStroke, tweenInfo, {Transparency = 0}):Play()
end)
AddConnection(ButtonItem.MouseLeave, function()
TweenService:Create(UIStroke, tweenInfo, {Transparency = 1}):Play()
end)
AddConnection(ButtonButton.MouseButton1Down, function()
TweenService:Create(ButtonItem, tweenInfo, {BackgroundTransparency = 0.5}):Play()
end)
AddConnection(ButtonButton.MouseButton1Up, function()
TweenService:Create(ButtonItem, tweenInfo, {BackgroundTransparency = 0}):Play()
end)
AddConnection(ButtonButton.Activated, function()
ButtonConfig.Callback()
end)
end
function ItemsLib:Toggle(ToggleConfig, ToggleParent, ToggleBackgroundColor)
ToggleConfig = ToggleConfig or {}
ToggleConfig.Name = ToggleConfig.Name or "Toggle"
ToggleConfig.Defualt = ToggleConfig.Defualt or false
ToggleConfig.Callback = ToggleConfig.Callback or function() end
ToggleParent = ToggleParent or Section
ToggleBackgroundColor = ToggleBackgroundColor or Color3.fromRGB(30, 33, 36)
local ToggleItem = Instance.new("Frame")
local UIStroke = Instance.new("UIStroke")
local ToggleButton = Instance.new("TextButton")
local ToggleText = Instance.new("TextLabel")
local UIPadding = Instance.new("UIPadding")
local UICorner = Instance.new("UICorner")
local Switch = Instance.new("Frame")
local Stroke = Instance.new("Frame")
local UICorner_2 = Instance.new("UICorner")
local UIStroke_2 = Instance.new("UIStroke")
ToggleItem.Name = "ToggleItem"
ToggleItem.Parent = ToggleParent
ToggleItem.BackgroundColor3 = ToggleBackgroundColor
ToggleItem.Size = UDim2.new(1, 0, 0, 40)
UIStroke.Parent = ToggleItem
UIStroke.Color = WindowConfig.Color
UIStroke.Thickness = 2
UIStroke.Transparency = 1
ToggleButton.Name = "ToggleButton"
ToggleButton.Parent = ToggleItem
ToggleButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ToggleButton.BackgroundTransparency = 1.000
ToggleButton.Size = UDim2.new(1, 0, 1, 0)
ToggleButton.Font = Enum.Font.SourceSans
ToggleButton.TextColor3 = Color3.fromRGB(0, 0, 0)
ToggleButton.TextSize = 14.000
ToggleButton.TextTransparency = 1.000
ToggleText.Name = "ToggleText"
ToggleText.Parent = ToggleItem
ToggleText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ToggleText.BackgroundTransparency = 1.000
ToggleText.Size = UDim2.new(1, -50, 1, 0)
ToggleText.Font = Enum.Font.GothamMedium
ToggleText.Text = ToggleConfig.Name
ToggleText.TextColor3 = WindowConfig.Color
ToggleText.TextScaled = true
ToggleText.TextSize = 14.000
ToggleText.TextWrapped = true
ToggleText.TextXAlignment = Enum.TextXAlignment.Left
UIPadding.Parent = ToggleText
UIPadding.PaddingBottom = UDim.new(0, 10)
UIPadding.PaddingLeft = UDim.new(0, 10)
UIPadding.PaddingRight = UDim.new(0, 10)
UIPadding.PaddingTop = UDim.new(0, 10)
UICorner.CornerRadius = UDim.new(0, 10)
UICorner.Parent = ToggleItem
Switch.Name = "Switch"
Switch.Parent = ToggleItem
Switch.AnchorPoint = Vector2.new(1, 0)
Switch.BackgroundColor3 = WindowConfig.Color
Switch.BackgroundTransparency = 1.000
Switch.BorderSizePixel = 0
Switch.Position = UDim2.new(1, -13, 0, 10)
Switch.Size = UDim2.new(0, 20, 0, 20)
Stroke.Name = "Stroke"
Stroke.Parent = Switch
Stroke.BackgroundColor3 = WindowConfig.Color
Stroke.BackgroundTransparency = 1.000
Stroke.BorderSizePixel = 0
Stroke.Size = UDim2.new(0, 20, 0, 20)
UICorner_2.CornerRadius = UDim.new(0, 5)
UICorner_2.Parent = Stroke
UIStroke_2.Parent = Stroke
UIStroke_2.Color = WindowConfig.Color
UIStroke_2.Thickness = 3
AddConnection(ToggleItem.MouseEnter, function()
TweenService:Create(UIStroke, tweenInfo, {Transparency = 0}):Play()
end)
AddConnection(ToggleItem.MouseLeave, function()
TweenService:Create(UIStroke, tweenInfo, {Transparency = 1}):Play()
end)
AddConnection(ToggleButton.MouseButton1Down, function()
TweenService:Create(ToggleItem, tweenInfo, {BackgroundTransparency = 0.5}):Play()
end)
local on = ToggleConfig.Defualt
if on then
Switch.BackgroundTransparency = 0
else
Switch.BackgroundTransparency = 1
end
AddConnection(ToggleButton.Activated, function()
TweenService:Create(ToggleItem, tweenInfo, {BackgroundTransparency = 0}):Play()
on = not on
ToggleConfig.Callback(on)
if on then
TweenService:Create(Switch, tweenInfo, {BackgroundTransparency = 0}):Play()
else
TweenService:Create(Switch, tweenInfo, {BackgroundTransparency = 1}):Play()
end
end)
end
function ItemsLib:Slider(SliderConfig, SliderParent, SliderBackgroundColor, SliderFrameBackgroundColor)
SliderConfig = SliderConfig or {}
SliderConfig.Name = SliderConfig.Name or "Slider"
SliderConfig.Min = SliderConfig.Min or 0
SliderConfig.Max = SliderConfig.Max or 100
SliderConfig.Callback = SliderConfig.Callback or function() end
SliderParent = SliderParent or Section
SliderBackgroundColor = SliderBackgroundColor or Color3.fromRGB(30, 33, 36)
SliderFrameBackgroundColor = SliderFrameBackgroundColor or Color3.fromRGB(40, 43, 48)
local SliderItem = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local UIStroke = Instance.new("UIStroke")
local SliderText = Instance.new("TextLabel")
local UIPadding = Instance.new("UIPadding")
local SliderValue = Instance.new("TextLabel")
local SliderFrame = Instance.new("TextButton")
local Slider = Instance.new("Frame")
local UICorner_2 = Instance.new("UICorner")
local UICorner_3 = Instance.new("UICorner")
SliderItem.Name = "SliderItem"
SliderItem.Parent = SliderParent
SliderItem.BackgroundColor3 = SliderBackgroundColor
SliderItem.Size = UDim2.new(1, 0, 0, 55)
UIStroke.Parent = SliderItem
UIStroke.Color = WindowConfig.Color
UIStroke.Thickness = 2
UIStroke.Transparency = 1
UICorner.CornerRadius = UDim.new(0, 10)
UICorner.Parent = SliderItem
SliderText.Name = "SliderText"
SliderText.Parent = SliderItem
SliderText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
SliderText.BackgroundTransparency = 1.000
SliderText.Size = UDim2.new(1, -50, 0, 20)
SliderText.Font = Enum.Font.GothamMedium
SliderText.Text = SliderConfig.Name
SliderText.TextColor3 = WindowConfig.Color
SliderText.TextSize = 20.000
SliderText.TextWrapped = true
SliderText.TextXAlignment = Enum.TextXAlignment.Left
UIPadding.Parent = SliderItem
UIPadding.PaddingBottom = UDim.new(0, 8)
UIPadding.PaddingLeft = UDim.new(0, 10)
UIPadding.PaddingRight = UDim.new(0, 10)
UIPadding.PaddingTop = UDim.new(0, 8)
SliderValue.Name = "SliderValue"
SliderValue.Parent = SliderItem
SliderValue.AnchorPoint = Vector2.new(1, 0)
SliderValue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
SliderValue.BackgroundTransparency = 1.000
SliderValue.Position = UDim2.new(1, 0, 0, 0)
SliderValue.Size = UDim2.new(0, 40, 0, 20)
SliderValue.Font = Enum.Font.GothamMedium
SliderValue.Text = tostring((SliderConfig.Max + SliderConfig.Min) / 2)
SliderValue.TextColor3 = WindowConfig.Color
SliderValue.TextScaled = true
SliderValue.TextSize = 20.000
SliderValue.TextWrapped = true
SliderValue.TextXAlignment = Enum.TextXAlignment.Right
SliderFrame.Name = "SliderFrame"
SliderFrame.Parent = SliderItem
SliderFrame.AnchorPoint = Vector2.new(0, 1)
SliderFrame.BackgroundColor3 = SliderFrameBackgroundColor
SliderFrame.Position = UDim2.new(0, 0, 1, 0)
SliderFrame.Size = UDim2.new(1, 0, 0, 10)
SliderFrame.TextTransparency = 1
SliderFrame.AutoButtonColor = false
Slider.Name = "Slider"
Slider.Parent = SliderFrame
Slider.AnchorPoint = Vector2.new(0, 1)
Slider.BackgroundColor3 = WindowConfig.Color
Slider.BorderSizePixel = 0
Slider.Position = UDim2.new(0, 0, 1, 0)
Slider.Size = UDim2.new(0.5, 0, 0, 10)
UICorner_2.CornerRadius = UDim.new(0, 10)
UICorner_2.Parent = Slider
UICorner_3.CornerRadius = UDim.new(0, 10)
UICorner_3.Parent = SliderFrame
AddConnection(SliderItem.MouseEnter, function()
TweenService:Create(UIStroke, tweenInfo, {Transparency = 0}):Play()
end)
AddConnection(SliderItem.MouseLeave, function()
TweenService:Create(UIStroke, tweenInfo, {Transparency = 1}):Play()
end)
local Value
AddConnection(SliderFrame.MouseButton1Down, function()
Value = math.floor((((tonumber(SliderConfig.Max) - tonumber(SliderConfig.Min)) / SliderFrame.AbsoluteSize.X) * Slider.AbsoluteSize.X) + tonumber(SliderConfig.Min)) or 0
Slider.Size = UDim2.new(0, math.clamp(mouse.X - Slider.AbsolutePosition.X, 0, SliderFrame.AbsoluteSize.X), 1, 0)
moveconnection = AddConnection(mouse.Move, function()
Value = math.floor((((tonumber(SliderConfig.Max) - tonumber(SliderConfig.Min)) / SliderFrame.AbsoluteSize.X) * Slider.AbsoluteSize.X) + tonumber(SliderConfig.Min))
SliderValue.Text = Value
SliderConfig.Callback(Value)
Slider.Size = UDim2.new(0, math.clamp(mouse.X - Slider.AbsolutePosition.X, 0, SliderFrame.AbsoluteSize.X), 1, 0)
end)
releaseconnection = AddConnection(uis.InputEnded, function(Mouse)
if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
Value = math.floor((((tonumber(SliderConfig.Max) - tonumber(SliderConfig.Min)) / SliderFrame.AbsoluteSize.X) * Slider.AbsoluteSize.X) + tonumber(SliderConfig.Min))
SliderValue.Text = Value
SliderConfig.Callback(Value)
Slider.Size = UDim2.new(0, math.clamp(mouse.X - Slider.AbsolutePosition.X, 0, SliderFrame.AbsoluteSize.X), 1, 0)
moveconnection:Disconnect()
releaseconnection:Disconnect()
end
end)
end)
end
function ItemsLib:Label(LabelConfig, LabelParent)
LabelConfig = LabelConfig or {}
LabelConfig.Description = LabelConfig.Description or "Description"
LabelParent = LabelParent or Section
local LabelItem = Instance.new("Frame")
local UIStroke = Instance.new("UIStroke")
local UICorner = Instance.new("UICorner")
local Description = Instance.new("TextLabel")
local UIPadding = Instance.new("UIPadding")
LabelItem.Name = "LabelItem"
LabelItem.Parent = LabelParent
LabelItem.BackgroundColor3 = WindowConfig.Color
LabelItem.BackgroundTransparency = 0.95
LabelItem.Size = UDim2.new(1, 0, 0, 40)
UIStroke.Parent = LabelItem
UIStroke.Color = WindowConfig.Color
UIStroke.Thickness = 2