-
Notifications
You must be signed in to change notification settings - Fork 318
/
HeliosHub Lib Old
1765 lines (1576 loc) · 69.1 KB
/
HeliosHub Lib Old
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--This lib is special because it supports custom themes. You can read through it for info on how to make your own theme. Credit goes to the creator and his/her absolutely amazing dev team.
do
local ui = game:GetService("CoreGui"):FindFirstChild("helioslib_by_dawid#0001")
if ui then
ui:Destroy()
end
end
local mouse = game:GetService("Players").LocalPlayer:GetMouse()
local lib = {}
local themesettings = {
Dark = {
MainFrameColor = Color3.fromRGB(24, 24, 24),
ItemsColor = Color3.fromRGB(18, 18, 18),
TextColor = Color3.fromRGB(255, 255, 255),
hovercolor = Color3.fromRGB(13, 13, 13),
SliderCircleColor = Color3.fromRGB(28, 28, 28),
ripplecolor = Color3.fromRGB(193, 193, 193)
},
Light = {
MainFrameColor = Color3.fromRGB(235, 235, 235),
ItemsColor = Color3.fromRGB(255, 255, 255),
TextColor = Color3.fromRGB(0, 0, 0),
hovercolor = Color3.fromRGB(211, 211, 211),
SliderCircleColor = Color3.fromRGB(206, 206, 206),
ripplecolor = Color3.fromRGB(195, 195, 195)
}
}
local theme = ""
local themesetting = "Light"
pcall(
function()
theme = readfile("heliostheme.txt")
end
)
if theme == "Light" then
themesetting = "Light"
elseif theme == "Dark" then
themesetting = "Dark"
else
themesetting = "Light"
writefile("heliostheme.txt", "Light")
end
local TweenService = game:GetService("TweenService")
function zigzag(X)
return math.acos(math.cos(X * math.pi)) / math.pi
end
local counter = 0
local rainbowcolor = Color3.fromHSV(zigzag(counter), 0.6, 1)
game:GetService("RunService").Stepped:Connect(
function()
rainbowcolor = Color3.fromHSV(zigzag(counter), 0.6, 1)
counter = counter + 0.0010
end
)
local function ripple(obj)
spawn(
function()
local Mouse = game.Players.LocalPlayer:GetMouse()
local Circle = Instance.new("ImageLabel")
Circle.Name = "Circle"
Circle.Parent = obj
Circle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Circle.BackgroundTransparency = 1.000
Circle.ZIndex = 10
Circle.Image = "rbxassetid://266543268"
Circle.ImageColor3 = Color3.fromRGB(255, 255, 255)
Circle.ImageTransparency = 0.7
local NewX, NewY = Mouse.X - Circle.AbsolutePosition.X, Mouse.Y - Circle.AbsolutePosition.Y
Circle.Position = UDim2.new(0, NewX, 0, NewY)
local Size = 0
if obj.AbsoluteSize.X > obj.AbsoluteSize.Y then
Size = obj.AbsoluteSize.X * 1.5
elseif obj.AbsoluteSize.X < obj.AbsoluteSize.Y then
Size = obj.AbsoluteSize.Y * 1.5
elseif obj.AbsoluteSize.X == obj.AbsoluteSize.Y then
Size = obj.AbsoluteSize.X * 1.5
end
Circle:TweenSizeAndPosition(
UDim2.new(0, Size, 0, Size),
UDim2.new(0.5, -Size / 2, 0.5, -Size / 2),
"Out",
"Quad",
0.2,
false
)
for i = 1, 10 do
Circle.ImageTransparency = Circle.ImageTransparency + 0.01
wait()
end
Circle:Destroy()
end
)
end
local function makeDraggable(obj)
--// Original code by Tiffblocks, edited so that it has a cool tween to it.
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local gui = obj
local dragging
local dragInput
local dragStart
local startPos
local function update(input)
local delta = input.Position - dragStart
local EndPos =
UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
local Tween = TweenService:Create(gui, TweenInfo.new(0.2), {Position = EndPos})
Tween:Play()
end
gui.InputBegan:Connect(
function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position
startPos = gui.Position
input.Changed:Connect(
function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end
)
end
end
)
gui.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 helioslib_by_dawid0001 = Instance.new("ScreenGui")
helioslib_by_dawid0001.Name = "helioslib_by_dawid#0001"
helioslib_by_dawid0001.Parent = game.CoreGui
helioslib_by_dawid0001.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
local usi = game:GetService("UserInputService")
local uitoggled = false
usi.InputBegan:Connect(
function(io, p)
if io.KeyCode == Enum.KeyCode.RightShift then
if uitoggled == false then
helioslib_by_dawid0001.Enabled = false
uitoggled = true
else
helioslib_by_dawid0001.Enabled = true
uitoggled = false
end
end
end
)
function lib:notification(text)
for i, v in next, helioslib_by_dawid0001:GetChildren() do
if v.Name == "notification" then
v:Destroy()
end
end
local notification = Instance.new("ImageButton")
local Glow = Instance.new("ImageLabel")
local top = Instance.new("Frame")
local title = Instance.new("TextLabel")
local button = Instance.new("TextButton")
local buttontext = Instance.new("TextLabel")
local corner = Instance.new("UICorner")
local desc = Instance.new("TextLabel")
notification.Name = "notification"
notification.Parent = helioslib_by_dawid0001
notification.BackgroundColor3 = themesettings[themesetting].MainFrameColor
notification.BackgroundTransparency = 1.000
notification.LayoutOrder = 1
notification.Position = UDim2.new(0.424479187, 0, 0.413428158, 0)
notification.Size = UDim2.new(0, 289, 0, 156)
notification.SizeConstraint = Enum.SizeConstraint.RelativeYY
notification.Image = "rbxassetid://2790389767"
notification.ImageColor3 = themesettings[themesetting].MainFrameColor
notification.ScaleType = Enum.ScaleType.Slice
notification.SliceCenter = Rect.new(8, 8, 248, 248)
Glow.Name = "Glow"
Glow.Parent = notification
Glow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Glow.BackgroundTransparency = 1.000
Glow.BorderSizePixel = 0
Glow.Position = UDim2.new(0, -15, 0, -15)
Glow.Size = UDim2.new(1, 30, 1, 30)
Glow.ZIndex = 0
Glow.Image = "rbxassetid://4996891970"
Glow.ImageColor3 = Color3.fromRGB(15, 15, 15)
Glow.ScaleType = Enum.ScaleType.Slice
Glow.SliceCenter = Rect.new(20, 20, 280, 280)
top.Name = "top"
top.Parent = notification
top.AnchorPoint = Vector2.new(0.5, 0)
top.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
top.BackgroundTransparency = 1.000
top.Position = UDim2.new(0.5, 0, 0, 25)
top.Size = UDim2.new(1, -40, 0, 20)
title.Name = "title"
title.Parent = top
title.BackgroundColor3 = themesettings[themesetting].TextColor
title.BackgroundTransparency = 1.000
title.Size = UDim2.new(1, 0, 1, 0)
title.Font = Enum.Font.SourceSans
title.Text = "Helios Hub"
title.TextColor3 = themesettings[themesetting].TextColor
title.TextSize = 25.000
title.TextXAlignment = Enum.TextXAlignment.Left
button.Name = "button"
button.Parent = notification
button.BackgroundColor3 = themesettings[themesetting].ItemsColor
button.BorderSizePixel = 0
button.Position = UDim2.new(0.0519031137, 0, 0.748603344, 0)
button.Size = UDim2.new(0.896193743, 0, -0.00558659201, 26)
button.AutoButtonColor = false
button.Font = Enum.Font.SourceSans
button.Text = ""
button.TextColor3 = Color3.fromRGB(0, 0, 0)
button.TextSize = 14.000
buttontext.Name = "buttontext"
buttontext.Parent = button
buttontext.AnchorPoint = Vector2.new(0, 0.5)
buttontext.BackgroundColor3 = themesettings[themesetting].TextColor
buttontext.BackgroundTransparency = 1.000
buttontext.Position = UDim2.new(0, 8, 0.5, 0)
buttontext.Size = UDim2.new(0, 49, 1, -8)
buttontext.Font = Enum.Font.SourceSans
buttontext.Text = "Okay"
buttontext.TextColor3 = themesettings[themesetting].TextColor
buttontext.TextSize = 13.000
buttontext.TextXAlignment = Enum.TextXAlignment.Left
corner.Name = "corner"
corner.Parent = button
desc.Name = "desc"
desc.Parent = notification
desc.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
desc.BackgroundTransparency = 1.000
desc.Position = UDim2.new(0.152249128, 0, 0.333333343, 0)
desc.Size = UDim2.new(0.698961914, 0, 0.339743733, 0)
desc.Font = Enum.Font.SourceSans
desc.Text = text
desc.TextColor3 = themesettings[themesetting].TextColor
desc.TextScaled = true
desc.TextSize = 20.000
desc.TextTransparency = 0.200
desc.TextWrapped = true
local MouseEntered =
TweenService:Create(
button,
TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{
BackgroundColor3 = themesettings[themesetting].hovercolor
}
)
local MouseLeft =
TweenService:Create(
button,
TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{
BackgroundColor3 = themesettings[themesetting].ItemsColor
}
)
button.MouseEnter:Connect(
function()
MouseEntered:Play()
end
)
button.MouseLeave:Connect(
function()
MouseLeft:Play()
end
)
button.MouseButton1Click:Connect(
function()
notification:Destroy()
end
)
end
function lib:MainWindow(size, gametext)
local FirstTab = false
local tabscontainer = Instance.new("Frame")
local mainframe = Instance.new("ImageButton")
local Glow = Instance.new("ImageLabel")
local top = Instance.new("Frame")
local title = Instance.new("TextLabel")
local tablist = Instance.new("UIListLayout")
local gamename = Instance.new("TextLabel")
local Vis = true
mainframe.Name = "mainframe"
mainframe.Parent = helioslib_by_dawid0001
mainframe.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
mainframe.BackgroundTransparency = 1.000
mainframe.Position = UDim2.new(0.420833319, 0, 0.0150703797, 0)
mainframe.Size = size
mainframe.SizeConstraint = Enum.SizeConstraint.RelativeYY
mainframe.Image = "rbxassetid://2790389767"
mainframe.ImageColor3 = themesettings[themesetting].MainFrameColor
mainframe.ScaleType = Enum.ScaleType.Slice
mainframe.SliceCenter = Rect.new(8, 8, 248, 248)
mainframe.LayoutOrder = 2
makeDraggable(mainframe)
Glow.Name = "Glow"
Glow.Parent = mainframe
Glow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Glow.BackgroundTransparency = 1.000
Glow.BorderSizePixel = 0
Glow.Position = UDim2.new(0, -15, 0, -15)
Glow.Size = UDim2.new(1, 30, 1, 30)
Glow.ZIndex = 0
Glow.Image = "rbxassetid://4996891970"
Glow.ImageColor3 = Color3.fromRGB(15, 15, 15)
Glow.ScaleType = Enum.ScaleType.Slice
Glow.SliceCenter = Rect.new(20, 20, 280, 280)
top.Name = "top"
top.Parent = mainframe
top.AnchorPoint = Vector2.new(0.5, 0)
top.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
top.BackgroundTransparency = 1.000
top.Position = UDim2.new(0.5, 0, 0, 25)
top.Size = UDim2.new(1, -40, 0, 20)
title.Name = "title"
title.Parent = top
title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
title.BackgroundTransparency = 1.000
title.Size = UDim2.new(1, 0, 1, 0)
title.Font = Enum.Font.SourceSans
title.Text = "Helios Hub"
title.TextColor3 = themesettings[themesetting].TextColor
title.TextSize = 25.000
title.TextXAlignment = Enum.TextXAlignment.Left
gamename.Name = "gamename"
gamename.Parent = top
gamename.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
gamename.BackgroundTransparency = 1.000
gamename.Position = UDim2.new(0, 0, 0.797674537, 0)
gamename.Size = UDim2.new(1, 0, 0.702325463, 0)
gamename.Font = Enum.Font.SourceSans
gamename.Text = gametext
gamename.TextColor3 = themesettings[themesetting].TextColor
gamename.TextSize = 15.000
gamename.TextXAlignment = Enum.TextXAlignment.Left
tabscontainer.Name = "tabscontainer"
tabscontainer.Parent = top
tabscontainer.AnchorPoint = Vector2.new(1, 0)
tabscontainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
tabscontainer.BackgroundTransparency = 1.000
tabscontainer.Position = UDim2.new(1, 0, 0, 2)
tabscontainer.Size = UDim2.new(1, 0, 1, 0)
tablist.Name = "tablist"
tablist.Parent = tabscontainer
tablist.FillDirection = Enum.FillDirection.Horizontal
tablist.HorizontalAlignment = Enum.HorizontalAlignment.Right
tablist.SortOrder = Enum.SortOrder.LayoutOrder
tablist.Padding = UDim.new(0, 14)
local tabholder = {}
function tabholder:Tab(name)
local tab = Instance.new("TextButton")
local container = Instance.new("Frame")
local containerlist = Instance.new("UIListLayout")
local tabcurrent = {}
local scrollframe = Instance.new("ScrollingFrame")
scrollframe.Name = "scrollframe"
scrollframe.Parent = mainframe
scrollframe.Active = true
scrollframe.AnchorPoint = Vector2.new(0.5, 0)
scrollframe.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
scrollframe.BackgroundTransparency = 1.000
scrollframe.BorderSizePixel = 0
scrollframe.Visible = Vis
scrollframe.Position = UDim2.new(0.5, 4, 0, 63)
scrollframe.Size = UDim2.new(1, -20, 1, -77)
scrollframe.BottomImage = "rbxassetid://5234388158"
scrollframe.CanvasSize = UDim2.new(0, 0, 0, 0)
scrollframe.MidImage = "rbxassetid://5234388158"
scrollframe.ScrollBarThickness = 6
scrollframe.TopImage = "rbxassetid://5234388158"
scrollframe.ScrollBarImageColor3 = themesettings[themesetting].ItemsColor
tab.Name = "tab"
tab.Parent = tabscontainer
tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
tab.BackgroundTransparency = 1.000
tab.Position = UDim2.new(0.907380342, 0, 0, 0)
tab.Font = Enum.Font.GothamBold
tab.Text = name
tab.TextColor3 = themesettings[themesetting].TextColor
tab.TextSize = 14.000
tab.Size = UDim2.new(0, tab.TextBounds.X + 5, 1, 1, 0)
tab.TextTransparency = 0.3
container.Name = "container"
container.Parent = scrollframe
container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
container.BackgroundTransparency = 1.000
container.Size = UDim2.new(1, -11, 1.5831753, 0)
container.Visible = true
containerlist.Name = "containerlist"
containerlist.Parent = container
containerlist.SortOrder = Enum.SortOrder.LayoutOrder
containerlist.Padding = UDim.new(0, 4)
local CurrentPageName = ""
if FirstTab == false then
CurrentPageName = title
FirstTab = true
Vis = false
tab.TextTransparency = 0
end
tab.MouseButton1Click:Connect(
function()
for i, v in next, mainframe:GetChildren() do
if v.Name == "scrollframe" then
v.Visible = false
end
end
for i, v in next, tabscontainer:GetChildren() do
if v.ClassName == "TextButton" then
v.TextTransparency = 0.3
end
end
tab.TextTransparency = 0
scrollframe.Visible = true
end
)
function tabcurrent:Button(name, callback)
callback = callback or function(...)
end
local button = Instance.new("TextButton")
local buttontext = Instance.new("TextLabel")
local corner = Instance.new("UICorner")
button.Name = "button"
button.Parent = container
button.BackgroundColor3 = themesettings[themesetting].ItemsColor
button.BorderSizePixel = 0
button.Size = UDim2.new(1, 0, 0, 26)
button.AutoButtonColor = false
button.Font = Enum.Font.SourceSans
button.Text = ""
button.ClipsDescendants = true
button.TextColor3 = Color3.fromRGB(0, 0, 0)
button.TextSize = 14.000
buttontext.Name = "buttontext"
buttontext.Parent = button
buttontext.AnchorPoint = Vector2.new(0, 0.5)
buttontext.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
buttontext.BackgroundTransparency = 1.000
buttontext.Position = UDim2.new(0, 8, 0.5, 0)
buttontext.Size = UDim2.new(0, 49, 1, -8)
buttontext.Font = Enum.Font.SourceSans
buttontext.Text = name
buttontext.TextColor3 = themesettings[themesetting].TextColor
buttontext.TextSize = 13.000
buttontext.TextXAlignment = Enum.TextXAlignment.Left
local MouseEntered =
TweenService:Create(
button,
TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{
BackgroundColor3 = themesettings[themesetting].hovercolor
}
)
local MouseLeft =
TweenService:Create(
button,
TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{
BackgroundColor3 = themesettings[themesetting].ItemsColor
}
)
button.MouseEnter:Connect(
function()
MouseEntered:Play()
end
)
button.MouseLeave:Connect(
function()
MouseLeft:Play()
end
)
button.MouseButton1Click:Connect(
function()
pcall(callback)
ripple(button, Color3.fromRGB(193, 193, 193))
end
)
corner.Name = "corner"
corner.Parent = button
scrollframe.CanvasSize = UDim2.new(0, 0, 0, containerlist.AbsoluteContentSize.Y)
end
function tabcurrent:Spliter()
local spliter = Instance.new("Frame")
spliter.Name = "spliter"
spliter.Parent = container
spliter.BackgroundColor3 = themesettings[themesetting].ItemsColor
spliter.BorderColor3 = Color3.fromRGB(43, 42, 49)
spliter.BorderSizePixel = 0
spliter.Position = UDim2.new(0, 0, 1, 2)
spliter.Size = UDim2.new(1, 0, 0, 1)
scrollframe.CanvasSize = UDim2.new(0, 0, 0, containerlist.AbsoluteContentSize.Y)
end
function tabcurrent:Toggle(name, toggled, callback)
callback = callback or function(...)
end
local t = toggled
local toggle = Instance.new("TextButton")
local toggletext = Instance.new("TextLabel")
local corner = Instance.new("UICorner")
local box = Instance.new("Frame")
local fill = Instance.new("Frame")
local corner_2 = Instance.new("UICorner")
local corner_3 = Instance.new("UICorner")
toggle.Name = "toggle"
toggle.Parent = container
toggle.BackgroundColor3 = themesettings[themesetting].ItemsColor
toggle.BorderSizePixel = 0
toggle.Size = UDim2.new(1, 0, 0, 26)
toggle.AutoButtonColor = false
toggle.Font = Enum.Font.SourceSans
toggle.Text = ""
toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
toggle.TextSize = 14.000
toggle.ClipsDescendants = true
toggletext.Name = "toggletext"
toggletext.Parent = toggle
toggletext.AnchorPoint = Vector2.new(0, 0.5)
toggletext.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
toggletext.BackgroundTransparency = 1.000
toggletext.Position = UDim2.new(0, 8, 0.5, 0)
toggletext.Size = UDim2.new(0, 49, 1, -8)
toggletext.Font = Enum.Font.SourceSans
toggletext.Text = name
toggletext.TextColor3 = themesettings[themesetting].TextColor
toggletext.TextSize = 13.000
toggletext.TextXAlignment = Enum.TextXAlignment.Left
corner.Name = "corner"
corner.Parent = toggle
box.Name = "box"
box.Parent = toggle
box.AnchorPoint = Vector2.new(1, 0.5)
box.BackgroundColor3 = themesettings[themesetting].MainFrameColor
box.BorderSizePixel = 0
box.Position = UDim2.new(1, -10, 0.5, 0)
box.Size = UDim2.new(0, 36, 1, -8)
fill.Name = "fill"
fill.Parent = box
fill.AnchorPoint = Vector2.new(0, 0.5)
fill.BackgroundColor3 = themesettings[themesetting].ItemsColor
fill.BorderSizePixel = 0
fill.Position = UDim2.new(0, 2, 0.5, 0)
fill.Size = UDim2.new(0.5, -4, 1, -4)
corner_2.CornerRadius = UDim.new(0, 30)
corner_2.Name = "corner"
corner_2.Parent = fill
corner_3.Name = "corner"
corner_3.Parent = box
local MouseEntered =
TweenService:Create(
toggle,
TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{
BackgroundColor3 = themesettings[themesetting].hovercolor
}
)
local MouseLeft =
TweenService:Create(
toggle,
TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{
BackgroundColor3 = themesettings[themesetting].ItemsColor
}
)
local truetoggle =
TweenService:Create(
box,
TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{
BackgroundColor3 = Color3.fromRGB(59, 153, 253)
}
)
local falsetoggle =
TweenService:Create(
box,
TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{
BackgroundColor3 = themesettings[themesetting].MainFrameColor
}
)
toggle.MouseEnter:Connect(
function()
MouseEntered:Play()
end
)
toggle.MouseLeave:Connect(
function()
MouseLeft:Play()
end
)
toggle.MouseButton1Click:Connect(
function()
if t == true then
fill:TweenPosition(UDim2.new(0, 2, 0.5, 0), "In", "Quint", 0.2)
falsetoggle:Play()
elseif t == false then
fill:TweenPosition(UDim2.new(0.528, 2, 0.5, 0), "In", "Quint", 0.2)
truetoggle:Play()
end
t = not t
pcall(callback, t)
end
)
if toggled == true then
pcall(callback, t)
fill:TweenPosition(UDim2.new(0.528, 2, 0.5, 0), "In", "Quint", 0.2)
truetoggle:Play()
end
scrollframe.CanvasSize = UDim2.new(0, 0, 0, containerlist.AbsoluteContentSize.Y)
end
function tabcurrent:Slider(name, min, max, callback)
local dragging = false
callback = callback or function(...)
end
local slider = Instance.new("TextButton")
local slidertext = Instance.new("TextLabel")
local corner = Instance.new("UICorner")
local placetoslide = Instance.new("Frame")
local corner_2 = Instance.new("UICorner")
local actualslide = Instance.new("Frame")
local corner_3 = Instance.new("UICorner")
local Value = Instance.new("TextLabel")
slider.Name = "slider"
slider.Parent = container
slider.BackgroundColor3 = themesettings[themesetting].ItemsColor
slider.BorderSizePixel = 0
slider.Position = UDim2.new(-0.0121703856, 0, 0.00985016767, 0)
slider.Size = UDim2.new(1, 0, 0, 26)
slider.AutoButtonColor = false
slider.Font = Enum.Font.SourceSans
slider.Text = ""
slider.TextColor3 = Color3.fromRGB(0, 0, 0)
slider.TextSize = 14.000
slidertext.Name = "slidertext"
slidertext.Parent = slider
slidertext.AnchorPoint = Vector2.new(0, 0.5)
slidertext.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
slidertext.BackgroundTransparency = 1.000
slidertext.Position = UDim2.new(0, 8, 0.5, 0)
slidertext.Size = UDim2.new(0, 49, 1, -8)
slidertext.Font = Enum.Font.SourceSans
slidertext.Text = name
slidertext.TextColor3 = themesettings[themesetting].TextColor
slidertext.TextSize = 13.000
slidertext.TextXAlignment = Enum.TextXAlignment.Left
corner.Name = "corner"
corner.Parent = slider
placetoslide.Name = "placetoslide"
placetoslide.Parent = slider
placetoslide.AnchorPoint = Vector2.new(1, 0.5)
placetoslide.BackgroundColor3 = themesettings[themesetting].MainFrameColor
placetoslide.BorderSizePixel = 0
placetoslide.Position = UDim2.new(1, -10, 0.5, 0)
placetoslide.Size = UDim2.new(0.237322509, 36, 1.70000005, -40)
corner_2.Name = "corner"
corner_2.Parent = placetoslide
actualslide.Name = "actualslide"
actualslide.Parent = placetoslide
actualslide.AnchorPoint = Vector2.new(0, 0.5)
actualslide.BackgroundColor3 = themesettings[themesetting].SliderCircleColor
actualslide.BorderSizePixel = 0
actualslide.Position = UDim2.new(-0.00999999978, 2, 0.354999989, 0)
actualslide.Size = UDim2.new(0.098718904, -4, 3.61909699, -4)
corner_3.CornerRadius = UDim.new(1000, 100)
corner_3.Name = "corner"
corner_3.Parent = actualslide
Value.Name = "Value"
Value.Parent = slider
Value.AnchorPoint = Vector2.new(0, 0.5)
Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Value.BackgroundTransparency = 1.000
Value.Position = UDim2.new(0.575510263, 8, 0.5, 0)
Value.Size = UDim2.new(-0.042857144, 49, 1, -8)
Value.Font = Enum.Font.SourceSans
Value.Text = min .. " / " .. max
Value.TextColor3 = themesettings[themesetting].TextColor
Value.TextSize = 13.000
Value.TextTransparency = 1.000
Value.TextXAlignment = Enum.TextXAlignment.Right
local function move(input)
local pos =
UDim2.new(
math.clamp((input.Position.X - placetoslide.AbsolutePosition.X) / placetoslide.AbsoluteSize.X, 0, 1),
-6,
0.354999989,
0
)
actualslide:TweenPosition(pos, "Out", "Sine", 0.1, true)
local value = math.floor(((pos.X.Scale * max) / max) * (max - min) + min)
Value.Text = tostring(value) .. " / " .. tostring(max)
callback(value)
end
actualslide.InputBegan:Connect(
function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
local b =
game:GetService("TweenService"):Create(Value, TweenInfo.new(0.2), {TextTransparency = 0})
b:Play()
end
end
)
actualslide.InputEnded:Connect(
function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = false
wait(1)
local b =
game:GetService("TweenService"):Create(Value, TweenInfo.new(0.2), {TextTransparency = 1})
b:Play()
end
end
)
actualslide.MouseEnter:Connect(
function()
local b = game:GetService("TweenService"):Create(Value, TweenInfo.new(0.2), {TextTransparency = 0})
b:Play()
end
)
actualslide.MouseLeave:Connect(
function()
wait(1)
local b = game:GetService("TweenService"):Create(Value, TweenInfo.new(0.2), {TextTransparency = 1})
b:Play()
end
)
game:GetService("UserInputService").InputChanged:Connect(
function(input)
if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
move(input)
end
end
)
scrollframe.CanvasSize = UDim2.new(0, 0, 0, containerlist.AbsoluteContentSize.Y)
end
function tabcurrent:Colorpicker(name, presetcolor, callback)
callback = callback or function(...)
end
local c = false
local r = false
local colorpickerbutton = Instance.new("TextButton")
local corner = Instance.new("UICorner")
local color = Instance.new("Frame")
local corner_2 = Instance.new("UICorner")
local colortext = Instance.new("TextLabel")
colorpickerbutton.Name = "colorpickerbutton"
colorpickerbutton.Parent = container
colorpickerbutton.BackgroundColor3 = themesettings[themesetting].ItemsColor
colorpickerbutton.BorderSizePixel = 0
colorpickerbutton.Size = UDim2.new(1, 0, 0, 26)
colorpickerbutton.AutoButtonColor = false
colorpickerbutton.Font = Enum.Font.SourceSans
colorpickerbutton.Text = ""
colorpickerbutton.TextColor3 = Color3.fromRGB(0, 0, 0)
colorpickerbutton.TextSize = 14.000
colorpickerbutton.ClipsDescendants = true
corner.Name = "corner"
corner.Parent = colorpickerbutton
color.Name = "color"
color.Parent = colorpickerbutton
color.AnchorPoint = Vector2.new(1, 0.5)
color.BackgroundColor3 = presetcolor
color.BorderSizePixel = 0
color.Position = UDim2.new(0.995918632, -10, 0.5, 0)
color.Size = UDim2.new(-0.0367344432, 36, 1, -8)
corner_2.CornerRadius = UDim.new(0, 4)
corner_2.Name = "corner"
corner_2.Parent = color
colortext.Name = "colortext"
colortext.Parent = colorpickerbutton
colortext.AnchorPoint = Vector2.new(0, 0.5)
colortext.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
colortext.BackgroundTransparency = 1.000
colortext.Position = UDim2.new(0, 8, 0.5, 0)
colortext.Size = UDim2.new(0, 49, 1, -8)
colortext.Font = Enum.Font.SourceSans
colortext.Text = name
colortext.TextColor3 = themesettings[themesetting].TextColor
colortext.TextSize = 13.000
colortext.TextXAlignment = Enum.TextXAlignment.Left
local colorpickerframe = Instance.new("Frame")
local corner = Instance.new("UICorner")
local ColourGradientFrame = Instance.new("TextButton")
local ColourGradient = Instance.new("UIGradient")
local Slider = Instance.new("TextButton")
local Glow = Instance.new("ImageLabel")
local DarknessGradientFrame = Instance.new("TextButton")
local Slider_2 = Instance.new("TextButton")
local DarknessGradient = Instance.new("UIGradient")
local Glow_2 = Instance.new("ImageLabel")
local Button = Instance.new("TextButton")
local Title = Instance.new("TextLabel")
local rainbow = Instance.new("TextButton")
local rainbowtitle = Instance.new("TextLabel")
local box = Instance.new("Frame")
local fill = Instance.new("Frame")
local corner_2 = Instance.new("UICorner")
local corner_3 = Instance.new("UICorner")
colorpickerframe.Name = "colorpickerframe"
colorpickerframe.Parent = container
colorpickerframe.BackgroundColor3 = themesettings[themesetting].ItemsColor
colorpickerframe.BorderSizePixel = 0
colorpickerframe.Position = UDim2.new(0, 0, 0.169431865, 0)
colorpickerframe.Size = UDim2.new(1, 0, 0.00677727442, 78)
colorpickerframe.Visible = false
corner.Name = "corner"
corner.Parent = colorpickerframe
ColourGradientFrame.Name = "ColourGradientFrame"
ColourGradientFrame.Parent = colorpickerframe
ColourGradientFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ColourGradientFrame.BorderSizePixel = 0
ColourGradientFrame.Position = UDim2.new(0.0204498973, 0, 0.120481938, 0)
ColourGradientFrame.Size = UDim2.new(0.963190079, 0, 0.209114, 0)
ColourGradientFrame.AutoButtonColor = false
ColourGradientFrame.Font = Enum.Font.SourceSans
ColourGradientFrame.Text = ""
ColourGradientFrame.TextColor3 = Color3.fromRGB(0, 0, 0)
ColourGradientFrame.TextSize = 14.000
ColourGradient.Color =
ColorSequence.new {
ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)),
ColorSequenceKeypoint.new(0.20, Color3.fromRGB(255, 255, 0)),
ColorSequenceKeypoint.new(0.40, Color3.fromRGB(0, 255, 0)),
ColorSequenceKeypoint.new(0.60, Color3.fromRGB(0, 255, 255)),
ColorSequenceKeypoint.new(0.80, Color3.fromRGB(0, 0, 255)),
ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 255))
}
ColourGradient.Name = "ColourGradient"
ColourGradient.Parent = ColourGradientFrame
Slider.Name = "Slider"
Slider.Parent = ColourGradientFrame
Slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Slider.BorderSizePixel = 0
Slider.Size = UDim2.new(0.00300000003, 0, 1, 0)
Slider.AutoButtonColor = false
Slider.Font = Enum.Font.SourceSans
Slider.Text = ""
Slider.TextColor3 = Color3.fromRGB(0, 0, 0)
Slider.TextSize = 14.000
Slider.BackgroundTransparency = 1
Glow.Name = "Glow"
Glow.Parent = ColourGradientFrame
Glow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Glow.BackgroundTransparency = 1.000
Glow.BorderSizePixel = 0
Glow.Position = UDim2.new(0, -15, 0, -15)
Glow.Size = UDim2.new(1, 30, 1, 30)
Glow.ZIndex = 0
Glow.Image = "rbxassetid://4996891970"
Glow.ImageColor3 = Color3.fromRGB(15, 15, 15)
Glow.ScaleType = Enum.ScaleType.Slice
Glow.SliceCenter = Rect.new(20, 20, 280, 280)
DarknessGradientFrame.Name = "DarknessGradientFrame"
DarknessGradientFrame.Parent = colorpickerframe
DarknessGradientFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
DarknessGradientFrame.BorderSizePixel = 0
DarknessGradientFrame.Position = UDim2.new(0.0204498973, 0, 0.364844948, 0)
DarknessGradientFrame.Size = UDim2.new(0.963190079, 0, 0.209114, 0)
DarknessGradientFrame.AutoButtonColor = false
DarknessGradientFrame.Font = Enum.Font.SourceSans
DarknessGradientFrame.Text = ""
DarknessGradientFrame.TextColor3 = Color3.fromRGB(0, 0, 0)
DarknessGradientFrame.TextSize = 14.000
Slider_2.Name = "Slider"
Slider_2.Parent = DarknessGradientFrame
Slider_2.BackgroundColor3 = Color3.fromRGB(255, 149, 0)
Slider_2.BorderSizePixel = 0
Slider_2.Size = UDim2.new(0.00300000003, 0, 1, 0)
Slider_2.AutoButtonColor = false
Slider_2.Font = Enum.Font.SourceSans
Slider_2.Text = ""
Slider_2.BackgroundTransparency = 1
Slider_2.TextColor3 = Color3.fromRGB(0, 0, 0)
Slider_2.TextSize = 14.000
DarknessGradient.Color =
ColorSequence.new {
ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)),
ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 0, 0))
}
DarknessGradient.Name = "DarknessGradient"
DarknessGradient.Parent = DarknessGradientFrame
Glow_2.Name = "Glow"
Glow_2.Parent = DarknessGradientFrame
Glow_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Glow_2.BackgroundTransparency = 1.000
Glow_2.BorderSizePixel = 0
Glow_2.Position = UDim2.new(0, -15, 0, -15)
Glow_2.Size = UDim2.new(1, 30, 1, 30)
Glow_2.ZIndex = 0
Glow_2.Image = "rbxassetid://4996891970"
Glow_2.ImageColor3 = Color3.fromRGB(15, 15, 15)
Glow_2.ScaleType = Enum.ScaleType.Slice
Glow_2.SliceCenter = Rect.new(20, 20, 280, 280)