-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.lua
More file actions
1378 lines (1201 loc) · 44.2 KB
/
Copy pathTest.lua
File metadata and controls
1378 lines (1201 loc) · 44.2 KB
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 ver = "1.1.0"
local changelog = game:HttpGet("https://raw.githubusercontent.com/TheoTheEpic/AquaLib/main/Changelog.txt") or "UNABLE TO GET CHANGELOG"
local lib = {}
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local UserInputService = game:GetService("UserInputService")
local function GetXY(GuiObject)
local X, Y = mouse.X - GuiObject.AbsolutePosition.X, mouse.Y - GuiObject.AbsolutePosition.Y
local MaxX, MaxY = GuiObject.AbsoluteSize.X, GuiObject.AbsoluteSize.Y
X, Y = math.clamp(X, 0, MaxX), math.clamp(Y, 0, MaxY)
return X, Y, X/MaxX, Y/MaxY
end
local function Tween(GuiObject, Dictionary)
local TweenService = game:GetService("TweenService")
local TweenBase = TweenService:Create(GuiObject, TweenInfo.new(0.1), Dictionary)
TweenBase:Play()
return TweenBase
end
lib.createWindow = function(name, title, draggable)
local MainGui = Instance.new("ScreenGui")
local ContainerFrame = Instance.new("Frame")
local SideBar = Instance.new("Frame")
local RoundEdge = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local TabList = Instance.new("Frame")
local UIListLayout = Instance.new("UIListLayout")
local Title = Instance.new("TextLabel")
local Seperator = Instance.new("TextLabel")
local Main = Instance.new("Frame")
local RoundEdge_2 = Instance.new("Frame")
local UICorner_2 = Instance.new("UICorner")
local TabHolder = Instance.new("Frame")
local MainFrame = Instance.new("Frame")
local tabs = {}
local WindowLib = {}
WindowLib.HighlightText = function(v)
local tweenservice = game:GetService("TweenService")
local info = TweenInfo.new(.3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
local unselected = {
TextColor3 = Color3.fromRGB(190, 190, 190)
}
local hover = {
TextColor3 = Color3.fromRGB(235, 235, 235)
}
v.MouseEnter:Connect(function()
tweenservice:Create(v, info, hover):Play()
end)
v.MouseLeave:Connect(function()
tweenservice:Create(v, info, unselected):Play()
end)
end
WindowLib.ImageFadeOut = function(v, duration)
if not duration then duration = .3 end
local tweenservice = game:GetService("TweenService")
local info = TweenInfo.new(duration, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
tweenservice:Create(v, info, {ImageTransparency = 1}):Play()
end
WindowLib.ImageFadeIn = function(v, duration)
if not duration then duration = .3 end
local tweenservice = game:GetService("TweenService")
local info = TweenInfo.new(duration, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
tweenservice:Create(v, info, {ImageTransparency = 0}):Play()
end
WindowLib.BackgroundFadeOut = function(v, duration)
if not duration then duration = .3 end
local tweenservice = game:GetService("TweenService")
local info = TweenInfo.new(duration, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
tweenservice:Create(v, info, {BackgroundTransparency = 1}):Play()
end
WindowLib.BackgroundFadeIn = function(v, duration)
if not duration then duration = .3 end
local tweenservice = game:GetService("TweenService")
local info = TweenInfo.new(duration, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
tweenservice:Create(v, info, {BackgroundTransparency = 0}):Play()
end
WindowLib.TextFadeOut = function(v, duration)
if not duration then duration = .3 end
local tweenservice = game:GetService("TweenService")
local info = TweenInfo.new(duration, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
tweenservice:Create(v, info, {TextTransparency = 1}):Play()
end
WindowLib.TextFadeIn = function(v, duration)
if not duration then duration = .3 end
local tweenservice = game:GetService("TweenService")
local info = TweenInfo.new(duration, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
tweenservice:Create(v, info, {TextTransparency = 0}):Play()
end
local defualt_tab = false
MainGui.Name = name or "noname"
MainGui.Parent = game.CoreGui
MainGui.ZIndexBehavior = Enum.ZIndexBehavior.Global
MainGui.ResetOnSpawn = false
ContainerFrame.Name = "ContainerFrame"
ContainerFrame.Parent = MainGui
ContainerFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ContainerFrame.BackgroundTransparency = 1.000
ContainerFrame.BorderSizePixel = 0
ContainerFrame.Size = UDim2.new(1, 0, 1, 0)
MainFrame.Name = "MainFrame"
MainFrame.Parent = ContainerFrame
MainFrame.BackgroundTransparency = 1
MainFrame.BorderSizePixel = 0
MainFrame.Position = UDim2.new(0.353, 0, 0.349, 0)
MainFrame.Size = UDim2.new(0, 563, 0, 323)
SideBar.Name = "SideBar"
SideBar.Parent = MainFrame
SideBar.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
SideBar.BorderSizePixel = 0
SideBar.Position = UDim2.new(0.015, 0, -0.002, 0)
SideBar.Size = UDim2.new(0, 157, 0, 324)
RoundEdge.Name = "RoundEdge"
RoundEdge.Parent = SideBar
RoundEdge.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
RoundEdge.BorderSizePixel = 0
RoundEdge.Position = UDim2.new(-0.051, 0, -0.001, 0)
RoundEdge.Size = UDim2.new(0, 15, 0, 324)
UICorner.CornerRadius = UDim.new(0, 10)
UICorner.Parent = RoundEdge
TabList.Name = "TabList"
TabList.Parent = SideBar
TabList.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TabList.BackgroundTransparency = 1.000
TabList.BorderSizePixel = 0
TabList.Position = UDim2.new(0, 0, 0.108024694, 0)
TabList.Size = UDim2.new(0, 149, 0, 288)
UIListLayout.Parent = TabList
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
Title.Name = "Title"
Title.Parent = SideBar
Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title.BackgroundTransparency = 1.000
Title.BorderSizePixel = 0
Title.Position = UDim2.new(-0.0573248416, 0, 0, 0)
Title.Size = UDim2.new(0, 165, 0, 35)
Title.Font = Enum.Font.GothamBold
Title.Text = title
Title.TextColor3 = Color3.fromRGB(156, 159, 161)
Title.TextSize = 15.000
Seperator.Name = "Seperator"
Seperator.Parent = SideBar
Seperator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Seperator.BackgroundTransparency = 1.000
Seperator.BorderSizePixel = 0
Seperator.Position = UDim2.new(0.00636942685, 0, 0.0679012313, 0)
Seperator.Size = UDim2.new(0, 147, 0, 6)
Seperator.Font = Enum.Font.SourceSansBold
Seperator.Text = "_____________________"
Seperator.TextColor3 = Color3.fromRGB(203, 203, 203)
Seperator.TextSize = 14.000
Main.Name = "Main"
Main.Parent = MainFrame
Main.BackgroundColor3 = Color3.fromRGB(63, 62, 71)
Main.BorderSizePixel = 0
Main.Position = UDim2.new(0.293, 0, -0.002, 0)
Main.Size = UDim2.new(0, 389, 0, 324)
RoundEdge_2.Name = "RoundEdge"
RoundEdge_2.Parent = Main
RoundEdge_2.BackgroundColor3 = Color3.fromRGB(63, 62, 71)
RoundEdge_2.BorderSizePixel = 0
RoundEdge_2.Position = UDim2.new(0.982, 0, -0.001, 0)
RoundEdge_2.Size = UDim2.new(0, 15, 0, 324)
UICorner_2.CornerRadius = UDim.new(0, 10)
UICorner_2.Parent = RoundEdge_2
TabHolder.Name = "TabHolder"
TabHolder.Parent = MainFrame
TabHolder.BackgroundColor3 = Color3.fromRGB(63, 62, 71)
TabHolder.BackgroundTransparency = 1.000
TabHolder.BorderSizePixel = 0
TabHolder.Position = UDim2.new(0.293, 0, -0.002, 0)
TabHolder.Size = UDim2.new(0, 397, 0, 324)
WindowLib.notification = function(title, text)
local Popup = Instance.new("Frame")
local UICorner_7 = Instance.new("UICorner")
local Main_2 = Instance.new("Frame")
local UICorner_8 = Instance.new("UICorner")
local Title_2 = Instance.new("TextLabel")
local Seperator_2 = Instance.new("TextLabel")
local Message = Instance.new("TextLabel")
local Close = Instance.new("TextButton")
local UICorner_9 = Instance.new("UICorner")
Popup.Name = "Notification"
Popup.Parent = MainFrame
Popup.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Popup.BackgroundTransparency = 1
Popup.BorderSizePixel = 0
Popup.Size = UDim2.new(0, 563, 0, 323)
Popup.Visible = true
Popup.ZIndex = 10
UICorner_7.Parent = Popup
Main_2.Name = "Main"
Main_2.Parent = Popup
Main_2.BackgroundTransparency = 1
Main_2.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
Main_2.BorderSizePixel = 0
Main_2.Position = UDim2.new(0.202486679, 0, 0.201238394, 0)
Main_2.Size = UDim2.new(0, 334, 0, 194)
Main_2.ZIndex = 10
UICorner_8.Parent = Main_2
Title_2.Name = "Title"
Title_2.Parent = Main_2
Title_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title_2.BackgroundTransparency = 1.000
Title_2.BorderSizePixel = 0
Title_2.Position = UDim2.new(0, 0, -0.00515463902, 0)
Title_2.Size = UDim2.new(0, 334, 0, 33)
Title_2.Font = Enum.Font.GothamBold
Title_2.Text = title
Title_2.TextColor3 = Color3.fromRGB(156, 159, 161)
Title_2.TextSize = 14.000
Title_2.TextTransparency = 1
Title_2.ZIndex = 11
Seperator_2.Name = "Seperator"
Seperator_2.Parent = Main_2
Seperator_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Seperator_2.BackgroundTransparency = 1.000
Seperator_2.BorderSizePixel = 0
Seperator_2.Position = UDim2.new(0.278824508, 0, 0.0988290682, 0)
Seperator_2.Size = UDim2.new(0, 147, 0, 6)
Seperator_2.Font = Enum.Font.SourceSansBold
Seperator_2.Text = "________________________________________________"
Seperator_2.TextColor3 = Color3.fromRGB(203, 203, 203)
Seperator_2.TextTransparency = 1
Seperator_2.TextSize = 14.000
Seperator_2.ZIndex = 11
Message.Name = "Message"
Message.Parent = Main_2
Message.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Message.BackgroundTransparency = 1.000
Message.BorderSizePixel = 0
Message.Position = UDim2.new(0.059880238, 0, 0.190721646, 0)
Message.Size = UDim2.new(0, 294, 0, 119)
Message.Font = Enum.Font.Gotham
Message.Text = text
Message.TextColor3 = Color3.fromRGB(245, 247, 244)
Message.TextSize = 12.000
Message.TextWrapped = true
Message.TextXAlignment = Enum.TextXAlignment.Left
Message.TextYAlignment = Enum.TextYAlignment.Top
Message.TextTransparency = 1
Message.ZIndex = 11
Close.Name = "Close"
Close.Parent = Main_2
Close.BackgroundColor3 = Color3.fromRGB(63, 62, 71)
Close.BorderSizePixel = 0
Close.TextTransparency = 1
Close.BackgroundTransparency = 1
Close.Position = UDim2.new(0.0613639504, 0, 0.802767217, 0)
Close.Size = UDim2.new(0, 294, 0, 29)
Close.Font = Enum.Font.Gotham
Close.Text = "Close"
Close.TextColor3 = Color3.fromRGB(255, 255, 255)
Close.TextSize = 12.000
Close.ZIndex = 11
Close.MouseButton1Down:Connect(function()
Tween(Popup, {BackgroundTransparency = 1})
for i,v in pairs(Popup:GetDescendants()) do
if v:IsA("Frame") then
Tween(v, {BackgroundTransparency = 1})
elseif v:IsA("TextLabel") or v:IsA("TextButton") then
Tween(v, {BackgroundTransparency = 1, TextTransparency = 1})
end
end
wait(1)
Popup:Destroy()
end)
UICorner_9.CornerRadius = UDim.new(0, 5)
UICorner_9.Parent = Close
Tween(Popup, {BackgroundTransparency = 0.5})
for i,v in pairs(Popup:GetDescendants()) do
if v:IsA("Frame") then
Tween(v, {BackgroundTransparency = 0})
elseif v:IsA("TextLabel") then
Tween(v, {BackgroundTransparency = 1, TextTransparency = 0})
elseif v:IsA("TextButton") then
Tween(v, {BackgroundTransparency = 0, TextTransparency = 0})
end
end
end
WindowLib.createTab = function(name)
local TabLib = {}
table.insert(tabs, name)
local TabButton = Instance.new("TextButton")
TabButton.Name = name
TabButton.Parent = TabList
TabButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TabButton.BackgroundTransparency = 1.000
TabButton.BorderSizePixel = 0
TabButton.Size = UDim2.new(0, 148, 0, 25)
TabButton.Font = Enum.Font.Gotham
TabButton.Text = name
TabButton.TextColor3 = Color3.fromRGB(245, 247, 244)
TabButton.TextSize = 14.000
local TabMain = Instance.new("ScrollingFrame")
TabMain.Name = name
TabMain.Parent = TabHolder
TabMain.Active = true
TabMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TabMain.BackgroundTransparency = 1.000
TabMain.BorderSizePixel = 0
TabMain.Position = UDim2.new(0.0176322423, 0, 0.0185185187, 0)
TabMain.Size = UDim2.new(0, 382, 0, 311)
TabMain.CanvasSize = UDim2.new(0, 0, 0, 0)
TabMain.ScrollBarThickness = 0
TabMain.AutomaticCanvasSize = Enum.AutomaticSize.Y
local TabLayout = Instance.new("UIListLayout")
TabLayout.Parent = TabMain
TabLayout.SortOrder = Enum.SortOrder.LayoutOrder
TabLayout.Padding = UDim.new(0, 5)
if not defualt_tab then
defualt_tab = TabButton.Name
else
TabMain.Visible = false
end
TabLib.createButton = function(text, callback)
local Button = Instance.new("TextButton")
local ButtonUICorner = Instance.new("UICorner")
local ButtonIcon = Instance.new("ImageLabel")
Button.Name = text
Button.Parent = TabMain
Button.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
Button.BorderSizePixel = 0
Button.Size = UDim2.new(0, 382, 0, 29)
Button.Font = Enum.Font.Gotham
Button.TextColor3 = Color3.fromRGB(255, 255, 255)
Button.TextSize = 14.000
Button.Text = text
Button.MouseButton1Down:Connect(callback or function() print("No callback specified") end)
ButtonUICorner.CornerRadius = UDim.new(0, 5)
ButtonUICorner.Parent = Button
ButtonIcon.Name = "ButtonIcon"
ButtonIcon.Parent = Button
ButtonIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ButtonIcon.BackgroundTransparency = 1.000
ButtonIcon.BorderSizePixel = 0
ButtonIcon.Position = UDim2.new(0.927924275, 0, 0.137931034, 0)
ButtonIcon.Size = UDim2.new(0, 19, 0, 20)
ButtonIcon.Image = "rbxassetid://7072719587"
end
TabLib.createText = function(text)
local Text = Instance.new("TextLabel")
local TextUICorner = Instance.new("UICorner")
Text.Name = text
Text.Parent = TabMain
Text.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
Text.BorderSizePixel = 0
Text.Size = UDim2.new(0, 382, 0, 29)
Text.Font = Enum.Font.Gotham
Text.Text = text
Text.TextColor3 = Color3.fromRGB(255, 255, 255)
Text.TextSize = 14.000
TextUICorner.CornerRadius = UDim.new(0, 5)
TextUICorner.Parent = Text
local TextIcon = Instance.new("ImageLabel")
TextIcon.Name = "TextIcon"
TextIcon.Parent = Text
TextIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextIcon.BackgroundTransparency = 1.000
TextIcon.BorderSizePixel = 0
TextIcon.Position = UDim2.new(0.924277246, 0, 0.137931034, 0)
TextIcon.Size = UDim2.new(0, 21, 0, 20)
TextIcon.Image = "rbxassetid://7072716382"
end
TabLib.createSection = function(text, isopen)
local SectionLib = {}
local Section = Instance.new("Frame")
local SectionText = Instance.new("TextLabel")
local SectionUICorner = Instance.new("UICorner")
local OpenCloseIcon = Instance.new("ImageButton")
local SectionListLayout = Instance.new("UIListLayout")
local isdown = isopen or false
Section.Name = text
Section.Parent = TabMain
Section.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
Section.BackgroundTransparency = 1.000
Section.BorderSizePixel = 0
Section.Size = UDim2.new(0, 382, 0, 2)
Section.AutomaticSize = Enum.AutomaticSize.Y
Section.ChildAdded:Connect(function(child)
if child.Name == "AquaSectionText" or child.Name == "UIListLayout" then
else
if isdown == false then
child.Visible = false
else
child.Visible = true
end
end
end)
SectionText.Name = "AquaSectionText"
SectionText.Parent = Section
SectionText.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
SectionText.BorderSizePixel = 0
SectionText.Size = UDim2.new(0, 382, 0, 29)
SectionText.Font = Enum.Font.Gotham
SectionText.Text = text
SectionText.TextColor3 = Color3.fromRGB(255, 255, 255)
SectionText.TextSize = 14.000
SectionUICorner.CornerRadius = UDim.new(0, 5)
SectionUICorner.Parent = SectionText
OpenCloseIcon.Name = "OpenCloseIcon"
OpenCloseIcon.Parent = SectionText
OpenCloseIcon.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
OpenCloseIcon.BackgroundTransparency = 1.000
OpenCloseIcon.Position = UDim2.new(0.986528814, -18, 0.148965776, 2)
OpenCloseIcon.Size = UDim2.new(0, 16, 0, 16)
OpenCloseIcon.ZIndex = 5
OpenCloseIcon.Image = "rbxassetid://3926307971"
OpenCloseIcon.ImageRectOffset = Vector2.new(324, 364)
OpenCloseIcon.ImageRectSize = Vector2.new(36, 36)
OpenCloseIcon.MouseButton1Down:Connect(function()
isdown = not isdown
Tween(OpenCloseIcon, {Rotation = isdown and 135 or 0})
for _,v in pairs(Section:GetChildren()) do
if v.Name == "AquaSectionText" or v.Name == "UIListLayout" then
else
v.Visible = isdown
end
end
end)
SectionListLayout.Parent = Section
SectionListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
SectionListLayout.SortOrder = Enum.SortOrder.LayoutOrder
SectionListLayout.Padding = UDim.new(0, 5)
Tween(OpenCloseIcon, {Rotation = isdown and 135 or 0})
SectionLib.createButton = function(text, callback)
local Button = Instance.new("TextButton")
local ButtonUICorner = Instance.new("UICorner")
local ButtonIcon = Instance.new("ImageLabel")
Button.Name = text
Button.Parent = Section
Button.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
Button.BorderSizePixel = 0
Button.Size = UDim2.new(0, 349, 0, 29)
Button.Font = Enum.Font.Gotham
Button.TextColor3 = Color3.fromRGB(255, 255, 255)
Button.TextSize = 14.000
Button.Text = text
Button.MouseButton1Down:Connect(callback or function() print("No callback specified") end)
ButtonUICorner.CornerRadius = UDim.new(0, 5)
ButtonUICorner.Parent = Button
ButtonIcon.Name = "ButtonIcon"
ButtonIcon.Parent = Button
ButtonIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ButtonIcon.BackgroundTransparency = 1.000
ButtonIcon.BorderSizePixel = 0
ButtonIcon.Position = UDim2.new(0.927924275, 0, 0.137931034, 0)
ButtonIcon.Size = UDim2.new(0, 19, 0, 20)
ButtonIcon.Image = "rbxassetid://7072719587"
end
SectionLib.createText = function(text)
local Text = Instance.new("TextLabel")
local TextUICorner = Instance.new("UICorner")
Text.Name = text
Text.Parent = Section
Text.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
Text.BorderSizePixel = 0
Text.Size = UDim2.new(0, 352, 0, 29)
Text.Font = Enum.Font.Gotham
Text.Text = text
Text.TextColor3 = Color3.fromRGB(255, 255, 255)
Text.TextSize = 14.000
TextUICorner.CornerRadius = UDim.new(0, 5)
TextUICorner.Parent = Text
local TextIcon = Instance.new("ImageLabel")
TextIcon.Name = "TextIcon"
TextIcon.Parent = Text
TextIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextIcon.BackgroundTransparency = 1.000
TextIcon.BorderSizePixel = 0
TextIcon.Position = UDim2.new(0.924277246, 0, 0.137931034, 0)
TextIcon.Size = UDim2.new(0, 21, 0, 20)
TextIcon.Image = "rbxassetid://7072716382"
end
SectionLib.createDropdown = function(text, options, defualt_option, callback)
local selected = defualt_option
local Dropdown = Instance.new("TextButton")
local DropdownUICorner = Instance.new("UICorner")
local Dropdown_2 = Instance.new("Frame")
local Dropdown2UICorner = Instance.new("UICorner")
local DropdownMain = Instance.new("Frame")
local MainUICorner = Instance.new("UICorner")
local Holderr = Instance.new("ScrollingFrame")
local DropdownUIList = Instance.new("UIListLayout")
local Invis = Instance.new("TextLabel")
Dropdown.Name = text
Dropdown.Parent = Section
Dropdown.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
Dropdown.BorderSizePixel = 0
Dropdown.Size = UDim2.new(0, 350, 0, 29)
Dropdown.Font = Enum.Font.Gotham
Dropdown.Text = text .. ": " .. defualt_option
Dropdown.TextColor3 = Color3.fromRGB(255, 255, 255)
Dropdown.TextSize = 14.000
Dropdown.MouseButton1Down:Connect(function()
Dropdown_2.Visible = true
Tween(Dropdown_2, {BackgroundTransparency = 0.5})
for i,v in pairs(Dropdown_2:GetDescendants()) do
if v:IsA("Frame") then
Tween(v, {BackgroundTransparency = 0})
elseif v:IsA("TextLabel") then
Tween(v, {BackgroundTransparency = 1, TextTransparency = 0})
elseif v:IsA("TextButton") then
Tween(v, {BackgroundTransparency = 0, TextTransparency = 0})
end
end
end)
local DropdownIcon = Instance.new("ImageLabel")
DropdownIcon.Name = "DropdownIcon"
DropdownIcon.Parent = Dropdown
DropdownIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
DropdownIcon.BackgroundTransparency = 1.000
DropdownIcon.BorderSizePixel = 0
DropdownIcon.Position = UDim2.new(0.927924275, 0, 0.137931034, 0)
DropdownIcon.Size = UDim2.new(0, 19, 0, 20)
DropdownIcon.Image = "rbxassetid://7072718266"
DropdownUICorner.CornerRadius = UDim.new(0, 5)
DropdownUICorner.Parent = Dropdown
Dropdown_2.Name = "DropdownMenu"
Dropdown_2.Parent = MainFrame
Dropdown_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Dropdown_2.BackgroundTransparency = 1
Dropdown_2.BorderSizePixel = 0
Dropdown_2.Position = UDim2.new(0.29, 0, 0, 0)
Dropdown_2.Size = UDim2.new(0, 398, 0, 323)
Dropdown_2.Visible = false
Dropdown_2.ZIndex = 10
Dropdown2UICorner.Parent = Dropdown_2
DropdownMain.Name = "Main"
DropdownMain.Parent = Dropdown_2
DropdownMain.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
DropdownMain.BorderSizePixel = 0
DropdownMain.Position = UDim2.new(0.0793711022, 0, 0.198142424, 0)
DropdownMain.Size = UDim2.new(0, 334, 0, 194)
DropdownMain.ZIndex = 10
DropdownMain.BackgroundTransparency = 1
MainUICorner.Parent = DropdownMain
Holderr.Name = "Holder"
Holderr.Parent = DropdownMain
Holderr.Active = true
Holderr.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Holderr.BackgroundTransparency = 1.000
Holderr.BorderSizePixel = 0
Holderr.Position = UDim2.new(0.0389221571, 0, 0.0502929688, 0)
Holderr.Size = UDim2.new(0, 317, 0, 177)
Holderr.ZIndex = 10
Holderr.CanvasSize = UDim2.new(0, 0, 0, 0)
Holderr.ScrollBarThickness = 3
Holderr.AutomaticCanvasSize = Enum.AutomaticSize.Y
DropdownUIList.Parent = Holderr
DropdownUIList.SortOrder = Enum.SortOrder.LayoutOrder
DropdownUIList.Padding = UDim.new(0, 5)
for i,v in pairs(options) do
local Option = Instance.new("TextButton")
local OptionUICorner = Instance.new("UICorner")
Option.Name = v
Option.Parent = Holderr
Option.BackgroundColor3 = Color3.fromRGB(63, 62, 71)
Option.BorderSizePixel = 0
Option.Size = UDim2.new(0, 310, 0, 29)
Option.Font = Enum.Font.Gotham
Option.Text = v
Option.TextColor3 = Color3.fromRGB(255, 255, 255)
Option.TextSize = 12.000
Option.ZIndex = 11
Option.MouseButton1Down:Connect(function()
Tween(Dropdown_2, {BackgroundTransparency = 1})
for i,v in pairs(Dropdown_2:GetDescendants()) do
if v:IsA("Frame") then
Tween(v, {BackgroundTransparency = 1})
elseif v:IsA("TextLabel") or v:IsA("TextButton") then
Tween(v, {BackgroundTransparency = 1, TextTransparency = 1})
end
end
Dropdown_2.Visible = false
selected = Option.Name
Dropdown.Text = text .. ": " .. selected
callback(selected)
end)
OptionUICorner.CornerRadius = UDim.new(0, 5)
OptionUICorner.Parent = Option
end
end
SectionLib.createTextBox = function(text, placeholder)
local TextBoxLib = {}
local TextBox = Instance.new("Frame")
local TboxUICorner = Instance.new("UICorner")
local Txt = Instance.new("TextLabel")
local TxtUICorner = Instance.new("UICorner")
local Input = Instance.new("TextBox")
local UICorner_7 = Instance.new("UICorner")
TextBox.Name = text
TextBox.Parent = Section
TextBox.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
TextBox.BorderSizePixel = 0
TextBox.Position = UDim2.new(0, 0, 0.320754707, 0)
TextBox.Size = UDim2.new(0, 354, 0, 32)
TboxUICorner.CornerRadius = UDim.new(0, 5)
TboxUICorner.Parent = TextBox
Txt.Name = "Text"
Txt.Parent = TextBox
Txt.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
Txt.BackgroundTransparency = 1.000
Txt.BorderSizePixel = 0
Txt.Size = UDim2.new(0, 100, 0, 32)
Txt.Font = Enum.Font.Gotham
Txt.Text = text
Txt.TextColor3 = Color3.fromRGB(255, 255, 255)
Txt.TextSize = 14.000
TxtUICorner.CornerRadius = UDim.new(0, 5)
TxtUICorner.Parent = Txt
Input.Name = "Input"
Input.Parent = TextBox
Input.BackgroundColor3 = Color3.fromRGB(63, 62, 71)
Input.BorderSizePixel = 0
Input.Position = UDim2.new(0.283, 0, 0.164, 0)
Input.Size = UDim2.new(0, 247, 0, 22)
Input.Font = Enum.Font.Gotham
Input.PlaceholderText = placeholder
Input.Text = ""
Input.TextColor3 = Color3.fromRGB(255, 255, 255)
Input.TextSize = 14.000
UICorner_7.CornerRadius = UDim.new(0, 5)
UICorner_7.Parent = Input
TextBoxLib.getText = function()
return Input.Text
end
TextBoxLib.clearText = function()
Input.Text = ""
end
return TextBoxLib
end
SectionLib.createSlider = function(text, config, callback)
local Configuration = config
local Minimum = Configuration["min"]
local Maximum = Configuration["max"]
local Default = Configuration["defualt"]
local Slider = Instance.new("Frame")
local SliderForeground = Instance.new("ImageLabel")
local P1 = Instance.new("TextButton")
local P2 = Instance.new("ImageLabel")
if Minimum > Maximum then
local StoreValue = Minimum
Minimum = Maximum
Maximum = StoreValue
end
Default = math.clamp(Default, Minimum, Maximum)
local DefaultScale = Default/Maximum
Slider.Name = text
Slider.Parent = Section
Slider.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
Slider.BackgroundTransparency = 1.000
Slider.Position = UDim2.new(0, 0, 0.544025183, 0)
Slider.Size = UDim2.new(0, 355, 0, 29)
SliderForeground.Name = "SliderForeground"
SliderForeground.Parent = Slider
SliderForeground.BackgroundTransparency = 1.000
SliderForeground.BorderSizePixel = 0
SliderForeground.Size = UDim2.new(1, 0, 1, 0)
SliderForeground.ZIndex = 5
SliderForeground.Image = "rbxassetid://3570695787"
SliderForeground.ImageColor3 = Color3.fromRGB(71, 75, 80)
SliderForeground.ScaleType = Enum.ScaleType.Slice
SliderForeground.SliceCenter = Rect.new(100, 100, 100, 100)
SliderForeground.SliceScale = 0.010
P1.Parent = SliderForeground
P1.BackgroundTransparency = 1.000
P1.BorderSizePixel = 0
P1.Size = UDim2.new(1, 0, 1, 0)
P1.ZIndex = 6
P1.Font = Enum.Font.Gotham
P1.Text = text .. ": " .. tostring(Default)
P1.TextColor3 = Color3.fromRGB(255, 255, 255)
P1.TextSize = 14.000
P2.Parent = P1
P2.BackgroundTransparency = 1.000
P2.BorderSizePixel = 0
P2.Size = UDim2.new(DefaultScale,0,1,0)
P2.ZIndex = 5
P2.Image = "rbxassetid://3570695787"
P2.ImageColor3 = Color3.fromRGB(54, 232, 96)
P2.ImageTransparency = 0.500
P2.ScaleType = Enum.ScaleType.Slice
P2.SliceCenter = Rect.new(100, 100, 100, 100)
P2.SliceScale = 0.050
P1.MouseButton1Down:Connect(function()
Tween(P2, {ImageTransparency = 0.5})
local X, Y, XScale, YScale = GetXY(P1)
local Value = math.floor(Minimum + ((Maximum - Minimum) * XScale))
callback(Value)
P1.Text = text..": "..tostring(Value)
local TargetSize = UDim2.new(XScale,0,1,0)
Tween(P2, {Size = TargetSize})
local SliderMove, SliderKill
SliderMove = mouse.Move:Connect(function()
Tween(P2, {ImageTransparency = 0.5})
local X, Y, XScale, YScale = GetXY(P1)
local Value = math.floor(Minimum + ((Maximum - Minimum) * XScale))
callback(Value)
P1.Text = text..": "..tostring(Value)
local TargetSize = UDim2.new(XScale,0,1,0)
Tween(P2, {Size = TargetSize})
end)
SliderKill = UserInputService.InputEnded:Connect(function(UserInput)
if UserInput.UserInputType == Enum.UserInputType.MouseButton1 then
Tween(P2, {ImageTransparency = 0.7})
SliderMove:Disconnect()
SliderKill:Disconnect()
end
end)
end)
end
SectionLib.createToggle = function(text, defualtvalue, callback)
local offc = Color3.fromRGB(226, 72, 75)
local onc = Color3.fromRGB(67, 226, 72)
local value
if typeof(defualtvalue) == "boolean" then
if defualtvalue == true then
value = true
callback(true)
else
value = false
end
else
value = false
end
local Toggle = Instance.new("TextButton")
local ToggleUICorner = Instance.new("UICorner")
local Indicator = Instance.new("Frame")
local IndicatorUICorner = Instance.new("UICorner")
Toggle.Name = text
Toggle.Parent = Section
Toggle.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
Toggle.BorderSizePixel = 0
Toggle.Size = UDim2.new(0, 350, 0, 29)
Toggle.Font = Enum.Font.Gotham
Toggle.Text = text
Toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
Toggle.TextSize = 14.000
Toggle.MouseButton1Down:Connect(function()
value = not value
task.wait()
if value == true then
Tween(Indicator, {BackgroundColor3 = onc})
else
Tween(Indicator, {BackgroundColor3 = offc})
end
callback(value)
end)
ToggleUICorner.CornerRadius = UDim.new(0, 5)
ToggleUICorner.Parent = Toggle
Indicator.Name = "Indicator"
Indicator.Parent = Toggle
if value == true then
Indicator.BackgroundColor3 = onc
else
Indicator.BackgroundColor3 = offc
end
Indicator.BorderSizePixel = 0
Indicator.Position = UDim2.new(0.926701605, 0, 0.137931034, 0)
Indicator.Size = UDim2.new(0, 21, 0, 20)
IndicatorUICorner.CornerRadius = UDim.new(0, 5)
IndicatorUICorner.Parent = Indicator
end
SectionLib.removeInstance = function(name)
if Section:FindFirstChild(name) then
Section[name]:Destroy()
else
warn("Could not find instance")
return
end
end
return SectionLib
end
TabLib.createDropdown = function(text, options, defualt_option, callback)
local selected = defualt_option
local Dropdown = Instance.new("TextButton")
local DropdownUICorner = Instance.new("UICorner")
local Dropdown_2 = Instance.new("Frame")
local Dropdown2UICorner = Instance.new("UICorner")
local DropdownMain = Instance.new("Frame")
local MainUICorner = Instance.new("UICorner")
local Holderr = Instance.new("ScrollingFrame")
local DropdownUIList = Instance.new("UIListLayout")
Dropdown.Name = text
Dropdown.Parent = TabMain
Dropdown.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
Dropdown.BorderSizePixel = 0
Dropdown.Size = UDim2.new(0, 382, 0, 29)
Dropdown.Font = Enum.Font.Gotham
Dropdown.Text = text .. ": " .. defualt_option
Dropdown.TextColor3 = Color3.fromRGB(255, 255, 255)
Dropdown.TextSize = 14.000
Dropdown.MouseButton1Down:Connect(function()
Dropdown_2.Visible = true
Tween(Dropdown_2, {BackgroundTransparency = 0.5})
for i,v in pairs(Dropdown_2:GetDescendants()) do
if v:IsA("Frame") then
Tween(v, {BackgroundTransparency = 0})
elseif v:IsA("TextLabel") then
Tween(v, {BackgroundTransparency = 1, TextTransparency = 0})
elseif v:IsA("TextButton") then
Tween(v, {BackgroundTransparency = 0, TextTransparency = 0})
end
end
end)
DropdownUICorner.CornerRadius = UDim.new(0, 5)
DropdownUICorner.Parent = Dropdown
local DropdownIcon = Instance.new("ImageLabel")
DropdownIcon.Name = "DropdownIcon"
DropdownIcon.Parent = Dropdown
DropdownIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
DropdownIcon.BackgroundTransparency = 1.000
DropdownIcon.BorderSizePixel = 0
DropdownIcon.Position = UDim2.new(0.927924275, 0, 0.137931034, 0)
DropdownIcon.Size = UDim2.new(0, 19, 0, 20)
DropdownIcon.Image = "rbxassetid://7072718266"
DropdownUICorner.CornerRadius = UDim.new(0, 5)
DropdownUICorner.Parent = Dropdown
Dropdown_2.Name = "DropdownMenu"
Dropdown_2.Parent = MainFrame
Dropdown_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Dropdown_2.BackgroundTransparency = 1
Dropdown_2.BorderSizePixel = 0
Dropdown_2.Position = UDim2.new(0.29, 0, 0, 0)
Dropdown_2.Size = UDim2.new(0, 398, 0, 323)
Dropdown_2.Visible = false
Dropdown_2.ZIndex = 10
Dropdown2UICorner.Parent = Dropdown_2
DropdownMain.Name = "Main"
DropdownMain.Parent = Dropdown_2
DropdownMain.BackgroundColor3 = Color3.fromRGB(50, 44, 53)
DropdownMain.BorderSizePixel = 0
DropdownMain.Position = UDim2.new(0.0793711022, 0, 0.198142424, 0)
DropdownMain.Size = UDim2.new(0, 334, 0, 194)
DropdownMain.ZIndex = 10
DropdownMain.BackgroundTransparency = 1
MainUICorner.Parent = DropdownMain
Holderr.Name = "Holder"
Holderr.Parent = DropdownMain
Holderr.Active = true
Holderr.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Holderr.BackgroundTransparency = 1.000
Holderr.BorderSizePixel = 0
Holderr.Position = UDim2.new(0.0389221571, 0, 0.0502929688, 0)
Holderr.Size = UDim2.new(0, 317, 0, 177)
Holderr.ZIndex = 10
Holderr.CanvasSize = UDim2.new(0, 0, 0, 0)
Holderr.ScrollBarThickness = 3
Holderr.AutomaticCanvasSize = Enum.AutomaticSize.Y
DropdownUIList.Parent = Holderr
DropdownUIList.SortOrder = Enum.SortOrder.LayoutOrder
DropdownUIList.Padding = UDim.new(0, 5)
for i,v in pairs(options) do
local Option = Instance.new("TextButton")
local OptionUICorner = Instance.new("UICorner")
Option.Name = v
Option.Parent = Holderr
Option.BackgroundColor3 = Color3.fromRGB(63, 62, 71)
Option.BorderSizePixel = 0
Option.Size = UDim2.new(0, 310, 0, 29)
Option.Font = Enum.Font.Gotham
Option.Text = v
Option.TextColor3 = Color3.fromRGB(255, 255, 255)
Option.TextSize = 12.000
Option.ZIndex = 11
Option.MouseButton1Down:Connect(function()
Tween(Dropdown_2, {BackgroundTransparency = 1})
for i,v in pairs(Dropdown_2:GetDescendants()) do
if v:IsA("Frame") then