-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUI7.lua
More file actions
1411 lines (1233 loc) · 54.8 KB
/
Copy pathUI7.lua
File metadata and controls
1411 lines (1233 loc) · 54.8 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
repeat task.wait() until game:IsLoaded()
local library = {}
local ToggleUI = false
library.currentTab = nil
library.flags = {}
local services = setmetatable({}, {
__index = function(t, k)
return game.GetService(game, k)
end
})
local mouse = services.Players.LocalPlayer:GetMouse()
function Tween(obj, t, data)
services.TweenService:Create(obj, TweenInfo.new(t[1], Enum.EasingStyle[t[2]], Enum.EasingDirection[t[3]]), data):Play()
return true
end
function Ripple(obj)
spawn(function()
if obj.ClipsDescendants ~= true then
obj.ClipsDescendants = true
end
local Ripple = Instance.new("ImageLabel")
Ripple.Name = "Ripple"
Ripple.Parent = obj
Ripple.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
Ripple.BackgroundTransparency = 1.000
Ripple.ZIndex = 8
Ripple.Image = "rbxassetid://16060333448"
Ripple.ImageTransparency = 0.800
Ripple.ScaleType = Enum.ScaleType.Fit
Ripple.ImageColor3 = Color3.fromRGB(139, 0, 255)
Ripple.Position = UDim2.new((mouse.X - Ripple.AbsolutePosition.X) / obj.AbsoluteSize.X, 0, (mouse.Y - Ripple.AbsolutePosition.Y) / obj.AbsoluteSize.Y, 0)
Tween(Ripple, {.3, 'Linear', 'InOut'}, {Position = UDim2.new(-5.5, 0, -5.5, 0), Size = UDim2.new(12, 0, 12, 0)})
wait(0.15)
Tween(Ripple, {.3, 'Linear', 'InOut'}, {ImageTransparency = 1})
wait(.3)
Ripple:Destroy()
end)
end
local toggled = false
-- # Switch Tabs # --
local switchingTabs = false
function switchTab(new)
if switchingTabs then return end
local old = library.currentTab
if old == nil then
new[2].Visible = true
library.currentTab = new
services.TweenService:Create(new[1], TweenInfo.new(0.1), {ImageTransparency = 0}):Play()
services.TweenService:Create(new[1].TabText, TweenInfo.new(0.1), {TextTransparency = 0}):Play()
return
end
if old[1] == new[1] then return end
switchingTabs = true
library.currentTab = new
services.TweenService:Create(old[1], TweenInfo.new(0.1), {ImageTransparency = 0.2}):Play()
services.TweenService:Create(new[1], TweenInfo.new(0.1), {ImageTransparency = 0}):Play()
services.TweenService:Create(old[1].TabText, TweenInfo.new(0.1), {TextTransparency = 0.2}):Play()
services.TweenService:Create(new[1].TabText, TweenInfo.new(0.1), {TextTransparency = 0}):Play()
old[2].Visible = false
new[2].Visible = true
task.wait(0.1)
switchingTabs = false
end
-- # Drag, Stolen from Kiriot or Wally # --
function drag(frame, hold)
if not hold then
hold = frame
end
local dragging
local dragInput
local dragStart
local startPos
local function update(input)
local delta = input.Position - dragStart
frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end
hold.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
dragStart = input.Position
startPos = frame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)
frame.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement then
dragInput = input
end
end)
services.UserInputService.InputChanged:Connect(function(input)
if input == dragInput and dragging then
update(input)
end
end)
end
function library.new(library, name,theme)
for _, v in next, services.CoreGui:GetChildren() do
if v.Name == "frosty" then
v:Destroy()
end
end
-------------------------AL------------------------------
ALTransparency = 0.6
ALcolor = Color3.fromRGB(0,255,127)
-------------------------AL------------------------------
if theme == 'dark' then
MainColor = Color3.fromRGB(25, 25, 25)
Background = Color3.fromRGB(25, 25, 25)
zyColor= Color3.fromRGB(25, 25, 25)
beijingColor = Color3.fromRGB(25, 25, 25)
else
MainColor = Color3.fromRGB(25, 25, 25)
Background = Color3.fromRGB(25, 25, 25)
zyColor= Color3.fromRGB(25, 25, 25)
beijingColor = Color3.fromRGB(25, 25, 25)
end
local dogent = Instance.new("ScreenGui")
local Main = Instance.new("Frame")
local TabMain = Instance.new("Frame")
local MainC = Instance.new("UICorner")
local SB = Instance.new("Frame")
local SBC = Instance.new("UICorner")
local Side = Instance.new("Frame")
local SideG = Instance.new("UIGradient")
local TabBtns = Instance.new("ScrollingFrame")
local TabBtnsL = Instance.new("UIListLayout")
local ScriptTitle = Instance.new("TextLabel")
local SBG = Instance.new("UIGradient")
local Open = Instance.new("ImageButton")
local UIG=Instance.new("UIGradient")
local DropShadowHolder = Instance.new("Frame")
local DropShadow = Instance.new("ImageLabel")
local UICornerMain = Instance.new("UICorner")
local UIGradient=Instance.new("UIGradient")
local UIGradientTitle=Instance.new("UIGradient")
local Frame = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local UICorner_2 = Instance.new("UICorner")
if syn and syn.protect_gui then syn.protect_gui(dogent) end
dogent.Name = "frosty"
dogent.Parent = services.CoreGui
function UiDestroy()
dogent:Destroy()
end
function ToggleUILib()
if not ToggleUI then
dogent.Enabled = false
ToggleUI = true
else
ToggleUI = false
dogent.Enabled = true
end
end
Main.Name = "Main"
Main.Parent = dogent
Main.AnchorPoint = Vector2.new(0.5, 0.5)
Main.BackgroundColor3 = Background
Main.BorderColor3 = MainColor
Main.Position = UDim2.new(0.5, 0, 0.5, 0)
Main.Size = UDim2.new(0, 572, 0, 353)
Main.ZIndex = 1
Main.Active = true
Main.Draggable = true
Main.Transparency = 1.0
services.UserInputService.InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode.LeftControl then
if Main.Visible == true then
Main.Visible = false else
Main.Visible = true
end
end
end)
drag(Main)
UICornerMain.Parent = Main
UICornerMain.CornerRadius = UDim.new(0,3)
DropShadowHolder.Name = "DropShadowHolder"
DropShadowHolder.Parent = Main
DropShadowHolder.BackgroundTransparency = 1.000
DropShadowHolder.BorderSizePixel = 0
DropShadowHolder.Size = UDim2.new(1, 0, 1, 0)
DropShadowHolder.BorderColor3 = Color3.fromRGB(255,255,255)
DropShadowHolder.ZIndex = 0
DropShadow.Name = "DropShadow"
DropShadow.Parent = DropShadowHolder
DropShadow.AnchorPoint = Vector2.new(0.5, 0.5)
DropShadow.BackgroundTransparency = 1.000
DropShadow.Position = UDim2.new(0.5, 0, 0.5, 0)
DropShadow.Size = UDim2.new(1, 10, 1, 10)
DropShadow.Image = "rbxassetid://96554573986802" --背景
DropShadow.ImageColor3 = Color3.fromRGB(255,255,255)
DropShadow.SliceCenter = Rect.new(49, 49, 450, 450)
UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(0.10, Color3.fromRGB(255, 127, 0)), ColorSequenceKeypoint.new(0.20, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(0.30, Color3.fromRGB(0, 255, 0)), ColorSequenceKeypoint.new(0.40, Color3.fromRGB(0, 255, 255)), ColorSequenceKeypoint.new(0.50, Color3.fromRGB(0, 0, 255)), ColorSequenceKeypoint.new(0.60, Color3.fromRGB(139, 0, 255)), ColorSequenceKeypoint.new(0.70, Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(0.80, Color3.fromRGB(255, 127, 0)), ColorSequenceKeypoint.new(0.90, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 255, 0))}
local TweenService = game:GetService("TweenService")
local tweeninfo = TweenInfo.new(7, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1)
local tween = TweenService:Create(UIGradient, tweeninfo, {Rotation = 360})
tween:Play()
function toggleui()
toggled = not toggled
spawn(function()
if toggled then wait(0.3) end
end)
Tween(Main, {0.3, 'Sine', 'InOut'}, {
Size = UDim2.new(0, 609, 0, (toggled and 505 or 0))
})
end
TabMain.Name = "TabMain"
TabMain.Parent = Main
TabMain.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
TabMain.BackgroundTransparency = 1.000
TabMain.Position = UDim2.new(0.217000037, 0, 0, 3)
TabMain.Size = UDim2.new(0, 448, 0, 353)
TabMain.Transparency = 1.0
MainC.CornerRadius = UDim.new(0, 5.5)
MainC.Name = "MainC"
MainC.Parent = Frame
SB.Name = "SB"
SB.Parent = Main
SB.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
SB.BorderColor3 = MainColor
SB.Size = UDim2.new(0, 8, 0, 353)
SB.Transparency = 1.0
SBC.CornerRadius = UDim.new(0, 6)
SBC.Name = "SBC"
SBC.Parent = SB
Side.Name = "Side"
Side.Parent = SB
Side.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
Side.BorderColor3 = Color3.fromRGB(139, 0, 255)
Side.BorderSizePixel = 0
Side.ClipsDescendants = true
Side.Position = UDim2.new(1, 0, 0, 0)
Side.Size = UDim2.new(0, 110, 0, 353)
Side.Transparency = 1.0
SideG.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, zyColor), ColorSequenceKeypoint.new(1.00, zyColor)}
SideG.Rotation = 90
SideG.Name = "SideG"
SideG.Parent = Side
TabBtns.Name = "TabBtns"
TabBtns.Parent = Side
TabBtns.Active = true
TabBtns.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
TabBtns.BackgroundTransparency = 1.000
TabBtns.BorderSizePixel = 0
TabBtns.Position = UDim2.new(0, 0, 0.0973535776, 0)
TabBtns.Size = UDim2.new(0, 110, 0, 318)
TabBtns.CanvasSize = UDim2.new(0, 0, 1, 0)
TabBtns.ScrollBarThickness = 0
TabBtnsL.Name = "TabBtnsL"
TabBtnsL.Parent = TabBtns
TabBtnsL.SortOrder = Enum.SortOrder.LayoutOrder
TabBtnsL.Padding = UDim.new(0, 12)
ScriptTitle.Name = "ScriptTitle"
ScriptTitle.Parent = Side
ScriptTitle.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
ScriptTitle.BackgroundTransparency = 1.000
ScriptTitle.Position = UDim2.new(0, 0, 0.00953488424, 0)
ScriptTitle.Size = UDim2.new(0, 102, 0, 20)
ScriptTitle.Font = Enum.Font.GothamSemibold
ScriptTitle.Text = name
ScriptTitle.TextColor3 = Color3.fromRGB(139, 0, 255)
ScriptTitle.TextSize = 14.000
ScriptTitle.TextScaled = true
ScriptTitle.TextXAlignment = Enum.TextXAlignment.Left
UIGradientTitle.Parent = ScriptTitle
local function NPLHKB_fake_script()
local script = Instance.new('LocalScript', ScriptTitle)
local button = script.Parent
local gradient = button.UIGradient
local ts = game:GetService("TweenService")
local ti = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
local offset = {Offset = Vector2.new(1, 0)}
local create = ts:Create(gradient, ti, offset)
local startingPos = Vector2.new(-1, 0)
local list = {}
local s, kpt = ColorSequence.new, ColorSequenceKeypoint.new
local counter = 0
local status = "down"
gradient.Offset = startingPos
local function rainbowColors()
local sat, val = 255, 255
for i = 1, 10 do
local hue = i * 17
table.insert(list, Color3.fromHSV(hue / 255, sat / 255, val / 255))
end
end
rainbowColors()
gradient.Color = s({
kpt(0, list[#list]),
kpt(0.5, list[#list - 1]),
kpt(1, list[#list - 2])
})
counter = #list
local function animate()
create:Play()
create.Completed:Wait()
gradient.Offset = startingPos
gradient.Rotation = 180
if counter == #list - 1 and status == "down" then
gradient.Color = s({
kpt(0, gradient.Color.Keypoints[1].Value),
kpt(0.5, list[#list]),
kpt(1, list[1])
})
counter = 1
status = "up"
elseif counter == #list and status == "down" then
gradient.Color = s({
kpt(0, gradient.Color.Keypoints[1].Value),
kpt(0.5, list[1]),
kpt(1, list[2])
})
counter = 2
status = "up"
elseif counter <= #list - 2 and status == "down" then
gradient.Color = s({
kpt(0, gradient.Color.Keypoints[1].Value),
kpt(0.5, list[counter + 1]),
kpt(1, list[counter + 2])
})
counter = counter + 2
status = "up"
end
create:Play()
create.Completed:Wait()
gradient.Offset = startingPos
gradient.Rotation = 0
if counter == #list - 1 and status == "up" then
gradient.Color = s({
kpt(0, list[1]),
kpt(0.5, list[#list]),
kpt(1, gradient.Color.Keypoints[3].Value)
})
counter = 1
status = "down"
elseif counter == #list and status == "up" then
gradient.Color = s({
kpt(0, list[2]),
kpt(0.5, list[1]),
kpt(1, gradient.Color.Keypoints[3].Value)
})
counter = 2
status = "down"
elseif counter <= #list - 2 and status == "up" then
gradient.Color = s({
kpt(0, list[counter + 2]),
kpt(0.5, list[counter + 1]),
kpt(1, gradient.Color.Keypoints[3].Value)
})
counter = counter + 2
status = "down"
end
animate()
end
animate()
end
coroutine.wrap(NPLHKB_fake_script)()
SBG.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, zyColor), ColorSequenceKeypoint.new(1.00, zyColor)}
SBG.Rotation = 90
SBG.Name = "SBG"
SBG.Parent = SB
TabBtnsL:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
TabBtns.CanvasSize = UDim2.new(0, 0, 0, TabBtnsL.AbsoluteContentSize.Y + 18)
end)
--[[
Open.Name = "Open"
Open.Parent = dogent
Open.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
Open.Position = UDim2.new(0.00829315186, 0, 0.31107837, 0)
Open.Size = UDim2.new(0, 61, 0, 32)
Open.Font = Enum.Font.SourceSans
Open.Text = "King.Script/King"
Open.TextColor3 = Color3.fromRGB(139, 0, 255)
Open.TextSize = 15.000
Open.Active = true
Open.Draggable = true
Open.MouseButton1Click:Connect(function()
Main.Visible = not Main.Visible
Open.Text=Main.Visible and "King.Script隐藏" or "King打开"
end)
]]
-- Properties:
Frame.Parent = dogent
Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
Frame.BorderSizePixel = 0
Frame.Position = UDim2.new(0.00829315186, 0, 0.31107837, 0)
Frame.Size = UDim2.new(0, 50, 0, 50)
Frame.BackgroundTransparency = 1.000
UICorner.CornerRadius = UDim.new(0, 90)
UICorner.Parent = Frame
Open.Parent = Frame
Open.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Open.BorderColor3 = Color3.fromRGB(0, 0, 0)
Open.BorderSizePixel = 0
Open.Size = UDim2.new(0, 50, 0, 50)
Open.Active = true
Open.Draggable = true
Open.Image = "rbxassetid://124223650793773"
Open.MouseButton1Click:Connect(function()
Main.Visible = not Main.Visible
Open.Image = Main.Visible and "rbxassetid://124223650793773" or "rbxassetid://124223650793773" --开关的图
end)
UICorner_2.CornerRadius = UDim.new(0, 90)
UICorner_2.Parent = Open
UIG.Parent = Open
local window = {}
function window.Tab(window, name, icon)
local Tab = Instance.new("ScrollingFrame")
local TabIco = Instance.new("ImageLabel")
local TabText = Instance.new("TextLabel")
local TabBtn = Instance.new("TextButton")
local TabL = Instance.new("UIListLayout")
Tab.Name = "Tab"
Tab.Parent = TabMain
Tab.Active = true
Tab.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
Tab.BackgroundTransparency = 1.000
Tab.Size = UDim2.new(1, 0, 1, 0)
Tab.ScrollBarThickness = 2
Tab.Visible = false
TabIco.Name = "TabIco"
TabIco.Parent = TabBtns
TabIco.BackgroundTransparency = 1.000
TabIco.BorderSizePixel = 0
TabIco.Size = UDim2.new(0, 24, 0, 24)
TabIco.Image = "rbxassetid://16060333448" or icon and "rbxassetid://"..icon
TabIco.ImageTransparency = 0.2
TabText.Name = "TabText"
TabText.Parent = TabIco
TabText.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
TabText.BackgroundTransparency = 1.000
TabText.Position = UDim2.new(1.41666663, 0, 0, 0)
TabText.Size = UDim2.new(0, 76, 0, 24)
TabText.Font = Enum.Font.GothamSemibold
TabText.Text = name
TabText.TextColor3 = ALcolor
TabText.TextSize = 14.000
TabText.TextXAlignment = Enum.TextXAlignment.Left
TabText.TextTransparency = 0.2
TabBtn.Name = "TabBtn"
TabBtn.Parent = TabIco
TabBtn.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
TabBtn.BackgroundTransparency = 1.000
TabBtn.BorderSizePixel = 0
TabBtn.Size = UDim2.new(0, 110, 0, 24)
TabBtn.AutoButtonColor = false
TabBtn.Font = Enum.Font.SourceSans
TabBtn.Text = ""
TabBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
TabBtn.TextSize = 14.000
TabL.Name = "TabL"
TabL.Parent = Tab
TabL.SortOrder = Enum.SortOrder.LayoutOrder
TabL.Padding = UDim.new(0, 4)
TabBtn.MouseButton1Click:Connect(function()
spawn(function()
Ripple(TabBtn)
end)
switchTab({TabIco, Tab})
end)
if library.currentTab == nil then switchTab({TabIco, Tab}) end
TabL:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
Tab.CanvasSize = UDim2.new(0, 0, 0, TabL.AbsoluteContentSize.Y + 8)
end)
------------------------------------------------------AL.King音乐-------------------------------------------------------
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://6797864253" --音乐id
sound.Parent = game.Workspace
sound:Play()
---------------分割线-------------------------------分割线-------------------------------分割线----------------
local tab = {}
function tab.section(tab, name, TabVal)
local Section = Instance.new("Frame")
local SectionC = Instance.new("UICorner")
local SectionText = Instance.new("TextLabel")
local SectionOpen = Instance.new("ImageLabel")
local SectionOpened = Instance.new("ImageLabel")
local SectionToggle = Instance.new("ImageButton")
local Objs = Instance.new("Frame")
local ObjsL = Instance.new("UIListLayout")
Section.Name = "Section"
Section.Parent = Tab
Section.BackgroundColor3 = zyColor
Section.BackgroundTransparency = 1.000
Section.BorderSizePixel = 0
Section.ClipsDescendants = true
Section.Size = UDim2.new(0.981000006, 0, 0, 36)
SectionC.CornerRadius = UDim.new(0, 6)
SectionC.Name = "SectionC"
SectionC.Parent = Section
SectionText.Name = "SectionText"
SectionText.Parent = Section
SectionText.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
SectionText.BackgroundTransparency = 1.000
SectionText.Position = UDim2.new(0.0887396261, 0, 0, 0)
SectionText.Size = UDim2.new(0, 401, 0, 36)
SectionText.Font = Enum.Font.GothamSemibold
SectionText.Text = name
SectionText.TextColor3 = ALcolor
SectionText.TextSize = 16.000
SectionText.TextXAlignment = Enum.TextXAlignment.Left
SectionOpen.Name = "SectionOpen"
SectionOpen.Parent = SectionText
SectionOpen.BackgroundTransparency = 1
SectionOpen.BorderSizePixel = 0
SectionOpen.Position = UDim2.new(0, -33, 0, 5)
SectionOpen.Size = UDim2.new(0, 26, 0, 26)
SectionOpen.Image = "rbxassetid://16060333448"
SectionOpened.Name = "SectionOpened"
SectionOpened.Parent = SectionOpen
SectionOpened.BackgroundTransparency = 1.000
SectionOpened.BorderSizePixel = 0
SectionOpened.Size = UDim2.new(0, 26, 0, 26)
SectionOpened.Image = "rbxassetid://16060333448"
SectionOpened.ImageTransparency = 1.000
SectionToggle.Name = "SectionToggle"
SectionToggle.Parent = SectionOpen
SectionToggle.BackgroundTransparency = 1
SectionToggle.BorderSizePixel = 0
SectionToggle.Size = UDim2.new(0, 26, 0, 26)
Objs.Name = "Objs"
Objs.Parent = Section
Objs.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
Objs.BackgroundTransparency = 1
Objs.BorderSizePixel = 0
Objs.Position = UDim2.new(0, 6, 0, 36)
Objs.Size = UDim2.new(0.986347735, 0, 0, 0)
ObjsL.Name = "ObjsL"
ObjsL.Parent = Objs
ObjsL.SortOrder = Enum.SortOrder.LayoutOrder
ObjsL.Padding = UDim.new(0, 8)
local open = TabVal
if TabVal ~= false then
Section.Size = UDim2.new(0.981000006, 0, 0, open and 36 + ObjsL.AbsoluteContentSize.Y + 8 or 36)
SectionOpened.ImageTransparency = (open and 0 or 1)
SectionOpen.ImageTransparency = (open and 1 or 0)
end
SectionToggle.MouseButton1Click:Connect(function()
open = not open
Section.Size = UDim2.new(0.981000006, 0, 0, open and 36 + ObjsL.AbsoluteContentSize.Y + 8 or 36)
SectionOpened.ImageTransparency = (open and 0 or 1)
SectionOpen.ImageTransparency = (open and 1 or 0)
end)
ObjsL:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
if not open then return end
Section.Size = UDim2.new(0.981000006, 0, 0, 36 + ObjsL.AbsoluteContentSize.Y + 8)
end)
local section = {}
function section.Button(section, text, callback)
local callback = callback or function() end
local BtnModule = Instance.new("Frame")
local Btn = Instance.new("TextButton")
local BtnC = Instance.new("UICorner")
BtnModule.Name = "BtnModule"
BtnModule.Parent = Objs
BtnModule.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
BtnModule.BackgroundTransparency = 1.000
BtnModule.BorderSizePixel = 0
BtnModule.Position = UDim2.new(0, 0, 0, 0)
BtnModule.Size = UDim2.new(0, 428, 0, 38)
BtnModule.Transparency = 0.75
Btn.Name = "Btn"
Btn.Parent = BtnModule
Btn.BackgroundColor3 = zyColor
Btn.BorderSizePixel = 0
Btn.Size = UDim2.new(0, 428, 0, 38)
Btn.AutoButtonColor = false
Btn.Font = Enum.Font.GothamSemibold
Btn.Text = " " .. text
Btn.TextColor3 = ALcolor
Btn.TextSize = 16.000
Btn.TextXAlignment = Enum.TextXAlignment.Left
Btn.BackgroundTransparency = ALTransparency
BtnC.CornerRadius = UDim.new(0, 6)
BtnC.Name = "BtnC"
BtnC.Parent = Btn
Btn.MouseButton1Click:Connect(function()
spawn(function()
Ripple(Btn)
end)
spawn(callback)
end)
end
function section:Label(text)
local LabelModule = Instance.new("Frame")
local TextLabel = Instance.new("TextLabel")
local LabelC = Instance.new("UICorner")
LabelModule.Name = "LabelModule"
LabelModule.Parent = Objs
LabelModule.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
LabelModule.BackgroundTransparency = 1.000
LabelModule.BorderSizePixel = 0
LabelModule.Position = UDim2.new(0, 0, NAN, 0)
LabelModule.Size = UDim2.new(0, 428, 0, 19)
TextLabel.Parent = LabelModule
TextLabel.BackgroundColor3 = zyColor
TextLabel.Size = UDim2.new(0, 428, 0, 22)
TextLabel.Font = Enum.Font.GothamSemibold
TextLabel.Text = text
TextLabel.TextColor3 = ALcolor
TextLabel.BackgroundTransparency = ALTransparency
TextLabel.TextSize = 14.000
LabelC.CornerRadius = UDim.new(0, 6)
LabelC.Name = "LabelC"
LabelC.Parent = TextLabel
return TextLabel
end
function section.Toggle(section, text, flag, enabled, callback)
local callback = callback or function() end
local enabled = enabled or false
assert(text, "No text provided")
assert(flag, "No flag provided")
library.flags[flag] = enabled
local ToggleModule = Instance.new("Frame")
local ToggleBtn = Instance.new("TextButton")
local ToggleBtnC = Instance.new("UICorner")
local ToggleDisable = Instance.new("Frame")
local ToggleSwitch = Instance.new("Frame")
local ToggleSwitchC = Instance.new("UICorner")
local ToggleDisableC = Instance.new("UICorner")
ToggleModule.Name = "ToggleModule"
ToggleModule.Parent = Objs
ToggleModule.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
ToggleModule.BackgroundTransparency = 1.000
ToggleModule.BorderSizePixel = 0
ToggleModule.Position = UDim2.new(0, 0, 0, 0)
ToggleModule.Size = UDim2.new(0, 428, 0, 38)
ToggleBtn.Name = "ToggleBtn"
ToggleBtn.Parent = ToggleModule
ToggleBtn.BackgroundColor3 = zyColor
ToggleBtn.BackgroundTransparency = ALTransparency
ToggleBtn.BorderSizePixel = 0
ToggleBtn.Size = UDim2.new(0, 428, 0, 38)
ToggleBtn.AutoButtonColor = false
ToggleBtn.Font = Enum.Font.GothamSemibold
ToggleBtn.Text = " " .. text
ToggleBtn.TextColor3 = ALcolor
ToggleBtn.TextSize = 16.000
ToggleBtn.TextXAlignment = Enum.TextXAlignment.Left
ToggleBtnC.CornerRadius = UDim.new(0, 6)
ToggleBtnC.Name = "ToggleBtnC"
ToggleBtnC.Parent = ToggleBtn
ToggleDisable.Name = "ToggleDisable"
ToggleDisable.Parent = ToggleBtn
ToggleDisable.BackgroundColor3 = Background
ToggleDisable.BackgroundTransparency = 0.5
ToggleDisable.BorderSizePixel = 0
ToggleDisable.Position = UDim2.new(0.901869178, 0, 0.208881587, 0)
ToggleDisable.Size = UDim2.new(0, 36, 0, 22)
ToggleSwitch.Name = "ToggleSwitch"
ToggleSwitch.Parent = ToggleDisable
ToggleSwitch.BackgroundColor3 = beijingColor
ToggleSwitch.Size = UDim2.new(0, 24, 0, 22)
ToggleSwitchC.CornerRadius = UDim.new(0, 6)
ToggleSwitchC.Name = "ToggleSwitchC"
ToggleSwitchC.Parent = ToggleSwitch
ToggleDisableC.CornerRadius = UDim.new(0, 6)
ToggleDisableC.Name = "ToggleDisableC"
ToggleDisableC.Parent = ToggleDisable
local funcs = {
SetState = function(self, state)
if state == nil then state = not library.flags[flag] end
if library.flags[flag] == state then return end
services.TweenService:Create(ToggleSwitch, TweenInfo.new(0.2), {Position = UDim2.new(0, (state and ToggleSwitch.Size.X.Offset / 2 or 0), 0, 0), BackgroundColor3 = (state and Color3.fromRGB(139, 0, 255) or beijingColor)}):Play()
library.flags[flag] = state
callback(state)
end,
Module = ToggleModule
}
if enabled ~= false then
funcs:SetState(flag,true)
end
ToggleBtn.MouseButton1Click:Connect(function()
funcs:SetState()
end)
return funcs
end
function section.Keybind(section, text, default, callback)
local callback = callback or function() end
assert(text, "No text provided")
assert(default, "No default key provided")
local default = (typeof(default) == "string" and Enum.KeyCode[default] or default)
local banned = {
Return = true;
Space = true;
Tab = true;
Backquote = true;
CapsLock = true;
Escape = true;
Unknown = true;
}
local shortNames = {
RightControl = 'Right Ctrl',
LeftControl = 'Left Ctrl',
LeftShift = 'Left Shift',
RightShift = 'Right Shift',
Semicolon = ";",
Quote = '"',
LeftBracket = '[',
RightBracket = ']',
Equals = '=',
Minus = '-',
RightAlt = 'Right Alt',
LeftAlt = 'Left Alt'
}
local bindKey = default
local keyTxt = (default and (shortNames[default.Name] or default.Name) or "None")
local KeybindModule = Instance.new("Frame")
local KeybindBtn = Instance.new("TextButton")
local KeybindBtnC = Instance.new("UICorner")
local KeybindValue = Instance.new("TextButton")
local KeybindValueC = Instance.new("UICorner")
local KeybindL = Instance.new("UIListLayout")
local UIPadding = Instance.new("UIPadding")
KeybindModule.Name = "KeybindModule"
KeybindModule.Parent = Objs
KeybindModule.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
KeybindModule.BackgroundTransparency = 1.000
KeybindModule.BorderSizePixel = 0
KeybindModule.Position = UDim2.new(0, 0, 0, 0)
KeybindModule.Size = UDim2.new(0, 428, 0, 38)
KeybindBtn.Name = "KeybindBtn"
KeybindBtn.Parent = KeybindModule
KeybindBtn.BackgroundColor3 = zyColor
KeybindBtn.BorderSizePixel = 0
KeybindBtn.Size = UDim2.new(0, 428, 0, 38)
KeybindBtn.AutoButtonColor = false
KeybindBtn.Font = Enum.Font.GothamSemibold
KeybindBtn.Text = " " .. text
KeybindBtn.TextColor3 = ALcolor
KeybindBtn.TextSize = 16.000
KeybindBtn.TextXAlignment = Enum.TextXAlignment.Left
KeybindBtnC.CornerRadius = UDim.new(0, 6)
KeybindBtnC.Name = "KeybindBtnC"
KeybindBtnC.Parent = KeybindBtn
KeybindValue.Name = "KeybindValue"
KeybindValue.Parent = KeybindBtn
KeybindValue.BackgroundColor3 = Background
KeybindValue.BorderSizePixel = 0
KeybindValue.Position = UDim2.new(0.763033211, 0, 0.289473683, 0)
KeybindValue.Size = UDim2.new(0, 100, 0, 28)
KeybindValue.AutoButtonColor = false
KeybindValue.Font = Enum.Font.Gotham
KeybindValue.Text = keyTxt
KeybindValue.TextColor3 = Color3.fromRGB(139, 0, 255)
KeybindValue.TextSize = 14.000
KeybindValueC.CornerRadius = UDim.new(0, 6)
KeybindValueC.Name = "KeybindValueC"
KeybindValueC.Parent = KeybindValue
KeybindL.Name = "KeybindL"
KeybindL.Parent = KeybindBtn
KeybindL.HorizontalAlignment = Enum.HorizontalAlignment.Right
KeybindL.SortOrder = Enum.SortOrder.LayoutOrder
KeybindL.VerticalAlignment = Enum.VerticalAlignment.Center
UIPadding.Parent = KeybindBtn
UIPadding.PaddingRight = UDim.new(0, 6)
services.UserInputService.InputBegan:Connect(function(inp, gpe)
if gpe then return end
if inp.UserInputType ~= Enum.UserInputType.Keyboard then return end
if inp.KeyCode ~= bindKey then return end
callback(bindKey.Name)
end)
KeybindValue.MouseButton1Click:Connect(function()
KeybindValue.Text = "..."
wait()
local key, uwu = services.UserInputService.InputEnded:Wait()
local keyName = tostring(key.KeyCode.Name)
if key.UserInputType ~= Enum.UserInputType.Keyboard then
KeybindValue.Text = keyTxt
return
end
if banned[keyName] then
KeybindValue.Text = keyTxt
return
end
wait()
bindKey = Enum.KeyCode[keyName]
KeybindValue.Text = shortNames[keyName] or keyName
end)
KeybindValue:GetPropertyChangedSignal("TextBounds"):Connect(function()
KeybindValue.Size = UDim2.new(0, KeybindValue.TextBounds.X + 30, 0, 28)
end)
KeybindValue.Size = UDim2.new(0, KeybindValue.TextBounds.X + 30, 0, 28)
end
function section.Textbox(section, text, flag, default, callback)
local callback = callback or function() end
assert(text, "No text provided")
assert(flag, "No flag provided")
assert(default, "No default text provided")
library.flags[flag] = default
local TextboxModule = Instance.new("Frame")
local TextboxBack = Instance.new("TextButton")
local TextboxBackC = Instance.new("UICorner")
local BoxBG = Instance.new("TextButton")
local BoxBGC = Instance.new("UICorner")
local TextBox = Instance.new("TextBox")
local TextboxBackL = Instance.new("UIListLayout")
local TextboxBackP = Instance.new("UIPadding")
TextboxModule.Name = "TextboxModule"
TextboxModule.Parent = Objs
TextboxModule.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
TextboxModule.BackgroundTransparency = 1.000
TextboxModule.BorderSizePixel = 0
TextboxModule.Position = UDim2.new(0, 0, 0, 0)
TextboxModule.Size = UDim2.new(0, 428, 0, 38)
TextboxBack.Name = "TextboxBack"
TextboxBack.Parent = TextboxModule
TextboxBack.BackgroundColor3 = zyColor
TextboxBack.BackgroundTransparency = ALTransparency
TextboxBack.BorderSizePixel = 0
TextboxBack.Size = UDim2.new(0, 428, 0, 38)
TextboxBack.AutoButtonColor = false
TextboxBack.Font = Enum.Font.GothamSemibold
TextboxBack.Text = " " .. text
TextboxBack.TextColor3 = ALcolor
TextboxBack.TextSize = 16.000
TextboxBack.TextXAlignment = Enum.TextXAlignment.Left
TextboxBackC.CornerRadius = UDim.new(0, 6)
TextboxBackC.Name = "TextboxBackC"
TextboxBackC.Parent = TextboxBack
BoxBG.Name = "BoxBG"
BoxBG.Parent = TextboxBack
BoxBG.BackgroundColor3 = Background
BoxBG.BorderSizePixel = 0
BoxBG.Position = UDim2.new(0.763033211, 0, 0.289473683, 0)
BoxBG.Size = UDim2.new(0, 100, 0, 28)
BoxBG.AutoButtonColor = false
BoxBG.Font = Enum.Font.Gotham
BoxBG.Text = ""
BoxBG.TextColor3 = Color3.fromRGB(139, 0, 255)
BoxBG.TextSize = 14.000
BoxBGC.CornerRadius = UDim.new(0, 6)
BoxBGC.Name = "BoxBGC"
BoxBGC.Parent = BoxBG
TextBox.Parent = BoxBG
TextBox.BackgroundColor3 = Color3.fromRGB(139, 0, 255)
TextBox.BackgroundTransparency = 1.000
TextBox.BorderSizePixel = 0
TextBox.Size = UDim2.new(1, 0, 1, 0)
TextBox.Font = Enum.Font.Gotham
TextBox.Text = default
TextBox.TextColor3 = Color3.fromRGB(139, 0, 255)
TextBox.TextSize = 14.000
TextboxBackL.Name = "TextboxBackL"
TextboxBackL.Parent = TextboxBack
TextboxBackL.HorizontalAlignment = Enum.HorizontalAlignment.Right
TextboxBackL.SortOrder = Enum.SortOrder.LayoutOrder
TextboxBackL.VerticalAlignment = Enum.VerticalAlignment.Center
TextboxBackP.Name = "TextboxBackP"
TextboxBackP.Parent = TextboxBack
TextboxBackP.PaddingRight = UDim.new(0, 6)
TextBox.FocusLost:Connect(function()
if TextBox.Text == "" then
TextBox.Text = default
end
library.flags[flag] = TextBox.Text
callback(TextBox.Text)
end)
TextBox:GetPropertyChangedSignal("TextBounds"):Connect(function()
BoxBG.Size = UDim2.new(0, TextBox.TextBounds.X + 30, 0, 28)
end)
BoxBG.Size = UDim2.new(0, TextBox.TextBounds.X + 30, 0, 28)
end
function section.Slider(section, text, flag, default, min, max, precise, callback)
local callback = callback or function() end
local min = min or 1
local max = max or 10
local default = default or min
local precise = precise or false
library.flags[flag] = default