-
Notifications
You must be signed in to change notification settings - Fork 6
/
NexoLuxware
1263 lines (1105 loc) · 66.7 KB
/
NexoLuxware
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 Luxt1 = {}
function Luxt1.CreateWindow(libName, logoId)
local LuxtLib = Instance.new("ScreenGui")
local shadow = Instance.new("ImageLabel")
local MainFrame = Instance.new("Frame")
local sideHeading = Instance.new("Frame")
local MainCorner = Instance.new("UICorner")
local sideCover = Instance.new("Frame")
local hubLogo = Instance.new("ImageLabel")
local MainCorner_2 = Instance.new("UICorner")
local hubName = Instance.new("TextLabel")
local tabFrame = Instance.new("ScrollingFrame")
local UIListLayout = Instance.new("UIListLayout")
local usename = Instance.new("TextLabel")
local MainCorner_3 = Instance.new("UICorner")
local wave = Instance.new("ImageLabel")
local MainCorner_4 = Instance.new("UICorner")
local framesAll = Instance.new("Frame")
local pageFolder = Instance.new("Folder")
local key1 = Instance.new("TextButton")
local UICorner = Instance.new("UICorner")
local keybindInfo1 = Instance.new("TextLabel")
key1.Name = "key1"
key1.Parent = sideHeading
key1.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
key1.Position = UDim2.new(0.0508064516, 0, 0.935261786, 0)
key1.Size = UDim2.new(0, 76, 0, 22)
key1.ZIndex = 2
key1.Font = Enum.Font.GothamSemibold
key1.Text = "LeftAlt"
key1.TextColor3 = Color3.fromRGB(153, 255, 238)
key1.TextSize = 14.000
local oldKey = Enum.KeyCode.LeftAlt.Name
key1.MouseButton1Click:connect(function(e)
key1.Text = ". . ."
local a, b = game:GetService('UserInputService').InputBegan:wait();
if a.KeyCode.Name ~= "Unknown" then
key1.Text = a.KeyCode.Name
oldKey = a.KeyCode.Name;
end
end)
game:GetService("UserInputService").InputBegan:connect(function(current, ok)
if not ok then
if current.KeyCode.Name == oldKey then
if LuxtLib.Enabled == true then
LuxtLib.Enabled = false
else
LuxtLib.Enabled = true
end
end
end
end)
UICorner.CornerRadius = UDim.new(0, 5)
UICorner.Parent = key1
keybindInfo1.Name = "keybindInfo"
keybindInfo1.Parent = sideHeading
keybindInfo1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
keybindInfo1.BackgroundTransparency = 1.000
keybindInfo1.Position = UDim2.new(0.585064113, 0, 0.935261846, 0)
keybindInfo1.Size = UDim2.new(0, 50, 0, 22)
keybindInfo1.ZIndex = 2
keybindInfo1.Font = Enum.Font.GothamSemibold
keybindInfo1.Text = "Close"
keybindInfo1.TextColor3 = Color3.fromRGB(255, 255, 255)
keybindInfo1.TextSize = 13.000
keybindInfo1.TextXAlignment = Enum.TextXAlignment.Left
local UserInputService = game:GetService("UserInputService")
local TopBar = sideHeading
local Camera = workspace:WaitForChild("Camera")
local DragMousePosition
local FramePosition
local Draggable = false
TopBar.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
Draggable = true
DragMousePosition = Vector2.new(input.Position.X, input.Position.Y)
FramePosition = Vector2.new(shadow.Position.X.Scale, shadow.Position.Y.Scale)
end
end)
UserInputService.InputChanged:Connect(function(input)
if Draggable == true then
local NewPosition = FramePosition + ((Vector2.new(input.Position.X, input.Position.Y) - DragMousePosition) / Camera.ViewportSize)
shadow.Position = UDim2.new(NewPosition.X, 0, NewPosition.Y, 0)
end
end)
UserInputService.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
Draggable = false
end
end)
pageFolder.Name = "pageFolder"
pageFolder.Parent = framesAll
--
libName = libName or "LuxtLib"
logoId = logoId or ""
--
LuxtLib.Name = "LuxtLib"..libName
LuxtLib.Parent = game.CoreGui
LuxtLib.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
MainFrame.Name = "MainFrame"
MainFrame.Parent = shadow
MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
MainFrame.Position = UDim2.new(0.048, 0,0.075, 0)
MainFrame.Size = UDim2.new(0, 553, 0, 452)
sideHeading.Name = "sideHeading"
sideHeading.Parent = MainFrame
sideHeading.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
sideHeading.Size = UDim2.new(0, 155, 0, 452)
sideHeading.ZIndex = 2
MainCorner.CornerRadius = UDim.new(0, 5)
MainCorner.Name = "MainCorner"
MainCorner.Parent = sideHeading
sideCover.Name = "sideCover"
sideCover.Parent = sideHeading
sideCover.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
sideCover.BorderSizePixel = 0
sideCover.Position = UDim2.new(0.909677446, 0, 0, 0)
sideCover.Size = UDim2.new(0, 14, 0, 452)
hubLogo.Name = "hubLogo"
hubLogo.Parent = sideHeading
hubLogo.BackgroundColor3 = Color3.fromRGB(153, 255, 238)
hubLogo.Position = UDim2.new(0.0567928664, 0, 0.0243411884, 0)
hubLogo.Size = UDim2.new(0, 30, 0, 30)
hubLogo.ZIndex = 2
hubLogo.Image = "https://www.roblox.com/headshot-thumbnail/image?userId="..logoId.."&width=420&height=420&format=png"
MainCorner_2.CornerRadius = UDim.new(0, 999)
MainCorner_2.Name = "MainCorner"
MainCorner_2.Parent = hubLogo
hubName.Name = "hubName"
hubName.Parent = sideHeading
hubName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
hubName.BackgroundTransparency = 1.000
hubName.Position = UDim2.new(0.290000081, 0, 0.0299999975, 0)
hubName.Size = UDim2.new(0, 110, 0, 16)
hubName.ZIndex = 2
hubName.Font = Enum.Font.GothamSemibold
hubName.Text = libName
hubName.TextColor3 = Color3.fromRGB(153, 255, 238)
hubName.TextSize = 14.000
hubName.TextWrapped = true
hubName.TextXAlignment = Enum.TextXAlignment.Left
tabFrame.Name = "tabFrame"
tabFrame.Parent = sideHeading
tabFrame.Active = true
tabFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
tabFrame.BackgroundTransparency = 1.000
tabFrame.BorderSizePixel = 0
tabFrame.Position = UDim2.new(0.0761478543, 0, 0.126385808, 0)
tabFrame.Size = UDim2.new(0, 135, 0, 347)
tabFrame.ZIndex = 2
tabFrame.ScrollBarThickness = 0
UIListLayout.Parent = tabFrame
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.Padding = UDim.new(0, 5)
usename.Name = "usename"
usename.Parent = sideHeading
usename.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
usename.BackgroundTransparency = 1.000
usename.Position = UDim2.new(0.290000081, 0, 0.0700000152, 0)
usename.Size = UDim2.new(0, 110, 0, 16)
usename.ZIndex = 2
usename.Font = Enum.Font.GothamSemibold
usename.Text = game.Players.LocalPlayer.Name
usename.TextColor3 = Color3.fromRGB(103, 172, 161)
usename.TextSize = 12.000
usename.TextWrapped = true
usename.TextXAlignment = Enum.TextXAlignment.Left
MainCorner_3.CornerRadius = UDim.new(0, 5)
MainCorner_3.Name = "MainCorner"
MainCorner_3.Parent = MainFrame
wave.Name = "wave"
wave.Parent = MainFrame
wave.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
wave.BackgroundTransparency = 1.000
wave.Position = UDim2.new(0.0213434305, 0, 0, 0)
wave.Size = UDim2.new(0.97865659, 0, 0.557522118, 0)
wave.Image = "http://www.roblox.com/asset/?id=6087537285"
wave.ImageColor3 = Color3.fromRGB(181, 249, 255)
wave.ImageTransparency = 0.300
wave.ScaleType = Enum.ScaleType.Slice
MainCorner_4.CornerRadius = UDim.new(0, 3)
MainCorner_4.Name = "MainCorner"
MainCorner_4.Parent = wave
framesAll.Name = "framesAll"
framesAll.Parent = MainFrame
framesAll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
framesAll.BackgroundTransparency = 1.000
framesAll.BorderSizePixel = 0
framesAll.Position = UDim2.new(0.296564192, 0, 0.0242873337, 0)
framesAll.Size = UDim2.new(0, 381, 0, 431)
framesAll.ZIndex = 2
shadow.Name = "shadow"
shadow.Parent = LuxtLib
shadow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
shadow.BackgroundTransparency = 1.000
shadow.Position = UDim2.new(0.319562584, 0, 0.168689325, 0)
shadow.Size = UDim2.new(0, 609, 0, 530)
shadow.ZIndex = 0
shadow.Image = "http://www.roblox.com/asset/?id=6105530152"
shadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
shadow.ImageTransparency = 0.200
local TabHandling = {}
function TabHandling:Tab(tabText, tabId)
local tabBtnFrame = Instance.new("Frame")
local tabBtn = Instance.new("TextButton")
local tabLogo = Instance.new("ImageLabel")
--
tabText = tabText or "Tab"
tabId = tabId or ""
tabBtnFrame.Name = "tabBtnFrame"
tabBtnFrame.Parent = tabFrame
tabBtnFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
tabBtnFrame.BackgroundTransparency = 1.000
tabBtnFrame.Size = UDim2.new(0, 135, 0, 30)
tabBtnFrame.ZIndex = 2
tabBtn.Name = "tabBtn"
tabBtn.Parent = tabBtnFrame
tabBtn.BackgroundColor3 = Color3.fromRGB(166, 248, 255)
tabBtn.BackgroundTransparency = 1.000
tabBtn.Position = UDim2.new(0.245534033, 0, 0, 0)
tabBtn.Size = UDim2.new(0, 101, 0, 30)
tabBtn.ZIndex = 2
tabBtn.Font = Enum.Font.Gotham
tabBtn.Text = tabText
tabBtn.TextColor3 = Color3.fromRGB(153, 255, 238)
tabBtn.TextSize = 14.000
tabBtn.TextXAlignment = Enum.TextXAlignment.Left
tabLogo.Name = "tabLogo"
tabLogo.Position = UDim2.new(-0.007, 0,0.067, 0)
tabLogo.Parent = tabBtnFrame
tabLogo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
tabLogo.BackgroundTransparency = 1.000
tabLogo.BorderSizePixel = 0
tabLogo.Size = UDim2.new(0, 25, 0, 25)
tabLogo.ZIndex = 2
tabLogo.Image = "rbxassetid://"..tabId
tabLogo.ImageColor3 = Color3.fromRGB(153, 255, 238)
--
local newPage = Instance.new("ScrollingFrame")
local sectionList = Instance.new("UIListLayout")
newPage.Name = "newPage"..tabText
newPage.Parent = pageFolder
newPage.Active = true
newPage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
newPage.BackgroundTransparency = 1.000
newPage.BorderSizePixel = 0
newPage.Size = UDim2.new(1, 0, 1, 0)
newPage.ZIndex = 2
newPage.ScrollBarThickness = 0
newPage.Visible = false
sectionList.Name = "sectionList"
sectionList.Parent = newPage
sectionList.SortOrder = Enum.SortOrder.LayoutOrder
sectionList.Padding = UDim.new(0, 3)
local function UpdateSize()
local cS = sectionList.AbsoluteContentSize
game.TweenService:Create(newPage, TweenInfo.new(0.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
CanvasSize = UDim2.new(0,cS.X,0,cS.Y)
}):Play()
end
UpdateSize()
newPage.ChildAdded:Connect(UpdateSize)
newPage.ChildRemoved:Connect(UpdateSize)
tabBtn.MouseButton1Click:Connect(function()
UpdateSize()
for i,v in next, pageFolder:GetChildren() do
UpdateSize()
v.Visible = false
end
newPage.Visible = true
for i,v in next, tabFrame:GetChildren() do
if v:IsA("Frame") then
for i,v in next, v:GetChildren() do
if v:IsA("TextButton") then
game.TweenService:Create(v, TweenInfo.new(0.18, Enum.EasingStyle.Quint, Enum.EasingDirection.In), {
TextColor3 = Color3.fromRGB(35, 59, 55)
}):Play()
end
if v:IsA("ImageLabel") then
game.TweenService:Create(v, TweenInfo.new(0.18, Enum.EasingStyle.Quint, Enum.EasingDirection.In), {
ImageColor3 = Color3.fromRGB(35, 59, 55)
}):Play()
end
end
end
end
game.TweenService:Create(tabLogo, TweenInfo.new(0.18, Enum.EasingStyle.Quint, Enum.EasingDirection.In), {
ImageColor3 = Color3.fromRGB(153, 255, 238)
}):Play()
game.TweenService:Create(tabBtn, TweenInfo.new(0.18, Enum.EasingStyle.Quint, Enum.EasingDirection.In), {
TextColor3 = Color3.fromRGB(153, 255, 238)
}):Play()
end)
local sectionHandling = {}
function sectionHandling:Section(sectionText)
local sectionFrame = Instance.new("Frame")
local MainCorner = Instance.new("UICorner")
local mainSectionHead = Instance.new("Frame")
local sectionName = Instance.new("TextLabel")
local sectionExpannd = Instance.new("ImageButton")
local sectionInnerList = Instance.new("UIListLayout")
sectionInnerList.Name = "sectionInnerList"
sectionInnerList.Parent = sectionFrame
sectionInnerList.HorizontalAlignment = Enum.HorizontalAlignment.Center
sectionInnerList.SortOrder = Enum.SortOrder.LayoutOrder
sectionInnerList.Padding = UDim.new(0, 3)
--
sectionText = sectionText or "Section"
local isDropped = false
--
sectionFrame.Name = "sectionFrame"
sectionFrame.Parent = newPage
sectionFrame.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
sectionFrame.Position = UDim2.new(0, 0, 7.08064434e-08, 0)
sectionFrame.Size = UDim2.new(1, 0,0, 36)
sectionFrame.ZIndex = 2
sectionFrame.ClipsDescendants = true
MainCorner.CornerRadius = UDim.new(0, 5)
MainCorner.Name = "MainCorner"
MainCorner.Parent = sectionFrame
mainSectionHead.Name = "mainSectionHead"
mainSectionHead.Parent = sectionFrame
mainSectionHead.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
mainSectionHead.BackgroundTransparency = 1.000
mainSectionHead.BorderSizePixel = 0
mainSectionHead.Size = UDim2.new(0, 381, 0, 36)
sectionName.Name = "sectionName"
sectionName.Parent = mainSectionHead
sectionName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
sectionName.BackgroundTransparency = 1.000
sectionName.Position = UDim2.new(0.0236220472, 0, 0, 0)
sectionName.Size = UDim2.new(0, 302, 0, 36)
sectionName.Font = Enum.Font.GothamSemibold
sectionName.Text = sectionText
sectionName.TextColor3 = Color3.fromRGB(153, 255, 238)
sectionName.TextSize = 14.000
sectionName.TextXAlignment = Enum.TextXAlignment.Left
sectionExpannd.Name = "sectionExpannd"
sectionExpannd.Parent = mainSectionHead
sectionExpannd.BackgroundTransparency = 1.000
sectionExpannd.Position = UDim2.new(0.91863519, 0, 0.138888896, 0)
sectionExpannd.Size = UDim2.new(0, 25, 0, 25)
sectionExpannd.ZIndex = 2
sectionExpannd.Image = "rbxassetid://3926305904"
sectionExpannd.ImageColor3 = Color3.fromRGB(153, 255, 238)
sectionExpannd.ImageRectOffset = Vector2.new(564, 284)
sectionExpannd.ImageRectSize = Vector2.new(36, 36)
sectionExpannd.MouseButton1Click:Connect(function()
if isDropped then
isDropped = false
sectionFrame:TweenSize(UDim2.new(1, 0,0, 36), "In", "Quint", 0.10)
game.TweenService:Create(sectionExpannd, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
Rotation = 0
}):Play()
wait(0.10)
UpdateSize()
else
isDropped = true
sectionFrame:TweenSize(UDim2.new(1,0, 0, sectionInnerList.AbsoluteContentSize.Y + 5), "In", "Quint", 0.10)
game.TweenService:Create(sectionExpannd, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
Rotation = 180
}):Play()
wait(0.10)
UpdateSize()
end
end)
local ItemHandling = {}
function ItemHandling:Button(btnText, callback)
local ButtonFrame = Instance.new("Frame")
local TextButton = Instance.new("TextButton")
local UICorner = Instance.new("UICorner")
local UIListLayout = Instance.new("UIListLayout")
--
btnText = btnText or "TextButton"
callback = callback or function() end
--
ButtonFrame.Name = "ButtonFrame"
ButtonFrame.Parent = sectionFrame
ButtonFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
ButtonFrame.BackgroundTransparency = 1.000
ButtonFrame.Size = UDim2.new(0, 365, 0, 36)
TextButton.Parent = ButtonFrame
TextButton.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
TextButton.Size = UDim2.new(0, 365, 0, 36)
TextButton.ZIndex = 2
TextButton.AutoButtonColor = false
TextButton.Text = btnText
TextButton.Font = Enum.Font.GothamSemibold
TextButton.TextColor3 = Color3.fromRGB(180, 180, 180)
TextButton.TextSize = 14.000
local debounce = false
local debounce1 = false
TextButton.MouseButton1Click:Connect(function()
if not debounce then
debounce = true
callback()
wait(1)
debounce = false
end
end)
UICorner.CornerRadius = UDim.new(0, 3)
UICorner.Parent = TextButton
UIListLayout.Parent = ButtonFrame
UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
TextButton.MouseButton1Up:Connect(function()
TextButton:TweenSize(UDim2.new(0, 365,0, 36), "InOut", "Quint", 0.18, true)
game.TweenService:Create(TextButton, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),{
BackgroundColor3 = Color3.fromRGB(18,18,18),
TextColor3 = Color3.fromRGB(180, 180, 180)
}):Play()
end)
TextButton.MouseButton1Down:Connect(function()
if not debounce1 then
debounce1 = true
TextButton:TweenSize(UDim2.new(0, 359,0, 30), "InOut", "Quint", 0.18, true)
game.TweenService:Create(TextButton, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),{
BackgroundColor3 = Color3.fromRGB(101, 168, 157),
TextColor3 = Color3.fromRGB(0,0,0)
}):Play()
wait(1)
debounce1 = false
end
end)
TextButton.MouseEnter:Connect(function()
game.TweenService:Create(TextButton, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),{
BackgroundColor3 = Color3.fromRGB(30, 30, 30),
TextColor3 = Color3.fromRGB(250,250,250)
}):Play()
end)
TextButton.MouseLeave:Connect(function()
game.TweenService:Create(TextButton, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),{
BackgroundColor3 = Color3.fromRGB(18,18,18),
TextColor3 = Color3.fromRGB(180, 180, 180)
}):Play()
end)
end
function ItemHandling:Toggle(toggInfo, callback)
local ToggleFrame = Instance.new("Frame")
local toggleFrame = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local checkBtn = Instance.new("ImageButton")
local toggleInfo = Instance.new("TextLabel")
local togInList = Instance.new("UIListLayout")
local toginPad = Instance.new("UIPadding")
local UIListLayout = Instance.new("UIListLayout")
local a
--
toggInfo = toggInfo or "Toggle"
callback = callback or function() end
ToggleFrame.Name = "ToggleFrame"
ToggleFrame.Parent = sectionFrame
ToggleFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
ToggleFrame.BackgroundTransparency = 1.000
ToggleFrame.Size = UDim2.new(0, 365, 0, 36)
toggleFrame.Name = "toggleFrame"
toggleFrame.Parent = ToggleFrame
toggleFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
toggleFrame.Size = UDim2.new(0, 365, 0, 36)
toggleFrame.ZIndex = 2
UICorner.CornerRadius = UDim.new(0, 3)
UICorner.Parent = toggleFrame
checkBtn.Name = "checkBtn"
checkBtn.Parent = toggleFrame
checkBtn.BackgroundTransparency = 1.000
checkBtn.Position = UDim2.new(0.0191780813, 0, 0.138888896, 0)
checkBtn.Size = UDim2.new(0, 25, 0, 25)
checkBtn.ZIndex = 2
checkBtn.Image = "rbxassetid://3926311105"
checkBtn.ImageColor3 = Color3.fromRGB(97, 97, 97)
checkBtn.ImageRectOffset = Vector2.new(940, 784)
checkBtn.ImageRectSize = Vector2.new(48, 48)
toggleInfo.Name = "toggleInfo"
toggleInfo.Parent = toggleFrame
toggleInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
toggleInfo.BackgroundTransparency = 1.000
toggleInfo.Position = UDim2.new(0.104109593, 0, 0, 0)
toggleInfo.Size = UDim2.new(0.254794508, 162, 1, 0)
toggleInfo.ZIndex = 2
toggleInfo.Font = Enum.Font.GothamSemibold
toggleInfo.Text = toggInfo
toggleInfo.TextColor3 = Color3.fromRGB(97, 97, 97)
toggleInfo.TextSize = 14.000
toggleInfo.TextXAlignment = Enum.TextXAlignment.Left
togInList.Name = "togInList"
togInList.Parent = toggleFrame
togInList.FillDirection = Enum.FillDirection.Horizontal
togInList.SortOrder = Enum.SortOrder.LayoutOrder
togInList.VerticalAlignment = Enum.VerticalAlignment.Center
togInList.Padding = UDim.new(0, 5)
toginPad.Name = "toginPad"
toginPad.Parent = toggleFrame
toginPad.PaddingLeft = UDim.new(0, 7)
UIListLayout.Parent = ToggleFrame
UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
local on = false
local togDe = false
checkBtn.MouseButton1Click:Connect(function()
if not togDe then
togDe = true
on = not on
callback(on)
if on then
checkBtn.Parent.toggleInfo.TextColor3 = Color3.fromRGB(153, 255, 238)
checkBtn.ImageColor3 = Color3.fromRGB(153, 255, 238)
checkBtn.ImageRectOffset = Vector2.new(4, 836)
checkBtn.ImageRectSize = Vector2.new(48,48)
else
checkBtn.Parent.toggleInfo.TextColor3 = Color3.fromRGB(97, 97, 97)
checkBtn.ImageColor3 = Color3.fromRGB(97, 97, 97)
checkBtn.ImageRectOffset = Vector2.new(940, 784)
checkBtn.ImageRectSize = Vector2.new(48,48)
end
wait(1)
togDe = false
end
end)
checkBtn.MouseButton1Up:Connect(function()
checkBtn.Parent:TweenSize(UDim2.new(0, 365,0, 36), "InOut", "Quint", 0.18, true)
end)
checkBtn.MouseButton1Down:Connect(function()
checkBtn.Parent:TweenSize(UDim2.new(0, 359,0, 30), "InOut", "Quint", 0.18, true)
end)
end
function ItemHandling:KeyBind(keyInfo, first, callback)
--
keyInfo = keyInfo or "KeyBind"
local oldKey = first.Name
callback = callback or function() end
local KeyBindFrame = Instance.new("Frame")
local keybindFrame = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local key = Instance.new("TextButton")
local UICorner_2 = Instance.new("UICorner")
local keybindInfo = Instance.new("TextLabel")
local toginPad = Instance.new("UIPadding")
local togInList = Instance.new("UIListLayout")
local UIListLayout = Instance.new("UIListLayout")
KeyBindFrame.Name = "KeyBindFrame"
KeyBindFrame.Parent = sectionFrame
KeyBindFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
KeyBindFrame.BackgroundTransparency = 1.000
KeyBindFrame.Size = UDim2.new(0, 365, 0, 36)
keybindFrame.Name = "keybindFrame"
keybindFrame.Parent = KeyBindFrame
keybindFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
keybindFrame.Size = UDim2.new(0, 365, 0, 36)
keybindFrame.ZIndex = 2
UICorner.CornerRadius = UDim.new(0, 3)
UICorner.Parent = keybindFrame
key.Name = "key"
key.Parent = keybindFrame
key.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
key.Position = UDim2.new(0.0250000004, 0, 0.194111288, 0)
key.Size = UDim2.new(0, 100, 0, 22)
key.ZIndex = 2
key.Font = Enum.Font.GothamSemibold
key.Text = oldKey
key.TextColor3 = Color3.fromRGB(153, 255, 238)
key.TextSize = 14.000
UICorner_2.CornerRadius = UDim.new(0, 5)
UICorner_2.Parent = key
keybindInfo.Name = "keybindInfo"
keybindInfo.Parent = keybindFrame
keybindInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
keybindInfo.BackgroundTransparency = 1.000
keybindInfo.Position = UDim2.new(0.320547938, 0, 0.166666672, 0)
keybindInfo.Size = UDim2.new(0, 239, 0, 22)
keybindInfo.ZIndex = 2
keybindInfo.Font = Enum.Font.GothamSemibold
keybindInfo.Text = keyInfo
keybindInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
keybindInfo.TextSize = 13.000
keybindInfo.TextXAlignment = Enum.TextXAlignment.Left
toginPad.Name = "toginPad"
toginPad.Parent = keybindFrame
toginPad.PaddingLeft = UDim.new(0, 7)
togInList.Name = "togInList"
togInList.Parent = keybindFrame
togInList.FillDirection = Enum.FillDirection.Horizontal
togInList.SortOrder = Enum.SortOrder.LayoutOrder
togInList.VerticalAlignment = Enum.VerticalAlignment.Center
togInList.Padding = UDim.new(0, 8)
UIListLayout.Parent = KeyBindFrame
UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
key.MouseButton1Click:connect(function(e)
keybindFrame:TweenSize(UDim2.new(0, 359,0, 30), "InOut", "Quint", 0.18, true)
key.Text = ". . ."
local a, b = game:GetService('UserInputService').InputBegan:wait();
if a.KeyCode.Name ~= "Unknown" then
keybindFrame:TweenSize(UDim2.new(0, 365,0, 36), "InOut", "Quint", 0.18, true)
key.Text = a.KeyCode.Name
oldKey = a.KeyCode.Name;
end
end)
local keyDebounce = false
game:GetService("UserInputService").InputBegan:connect(function(current, ok)
if not ok then
if current.KeyCode.Name == oldKey then
if not keyDebounce then
keyDebounce = true
callback()
keybindFrame:TweenSize(UDim2.new(0, 359,0, 30), "InOut", "Quint", 0.18, true)
wait(0.18)
keybindFrame:TweenSize(UDim2.new(0, 365,0, 36), "InOut", "Quint", 0.18, true)
wait(0.5)
keyDebounce = false
end
end
end
end)
end
function ItemHandling:TextBox(infbix, textPlace, callback)
--
infbix = infbix or "TextBox"
textPlace = textPlace or "PlaceHolder"
callback = callback or function() end
--
local a
local TextBoxFrame = Instance.new("Frame")
local textboxFrame = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local textboxInfo = Instance.new("TextLabel")
local TextBox = Instance.new("TextBox")
local UICorner_2 = Instance.new("UICorner")
local textboxinlist = Instance.new("UIListLayout")
local txtboxpa = Instance.new("UIPadding")
local UIListLayout = Instance.new("UIListLayout")
TextBoxFrame.Name = "TextBoxFrame"
TextBoxFrame.Parent = sectionFrame
TextBoxFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
TextBoxFrame.BackgroundTransparency = 1.000
TextBoxFrame.Size = UDim2.new(0, 365, 0, 36)
textboxFrame.Name = "textboxFrame"
textboxFrame.Parent = TextBoxFrame
textboxFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
textboxFrame.Size = UDim2.new(0, 365, 0, 36)
textboxFrame.ZIndex = 2
UICorner.CornerRadius = UDim.new(0, 3)
UICorner.Parent = textboxFrame
textboxInfo.Name = "textboxInfo"
textboxInfo.Parent = textboxFrame
textboxInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
textboxInfo.BackgroundTransparency = 1.000
textboxInfo.Position = UDim2.new(0.320547938, 0, 0.166666672, 0)
textboxInfo.Size = UDim2.new(0, 239, 0, 22)
textboxInfo.ZIndex = 2
textboxInfo.Font = Enum.Font.GothamSemibold
textboxInfo.Text = infbix
textboxInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
textboxInfo.TextSize = 13.000
textboxInfo.TextXAlignment = Enum.TextXAlignment.Left
TextBox.Parent = textboxFrame
TextBox.BackgroundColor3 = Color3.fromRGB(153, 255, 238)
TextBox.ClipsDescendants = true
TextBox.Position = UDim2.new(0.0250000004, 0, 0.194000006, 0)
TextBox.Size = UDim2.new(0, 100, 0, 22)
TextBox.ZIndex = 2
TextBox.ClearTextOnFocus = false
TextBox.Font = Enum.Font.GothamSemibold
TextBox.PlaceholderColor3 = Color3.fromRGB(24, 24, 24)
TextBox.Text = ""
TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
TextBox.TextSize = 13.000
TextBox.PlaceholderText = textPlace
UICorner_2.CornerRadius = UDim.new(0, 5)
UICorner_2.Parent = TextBox
textboxinlist.Name = "textboxinlist"
textboxinlist.Parent = textboxFrame
textboxinlist.FillDirection = Enum.FillDirection.Horizontal
textboxinlist.VerticalAlignment = Enum.VerticalAlignment.Center
textboxinlist.Padding = UDim.new(0, 8)
txtboxpa.Name = "txtboxpa"
txtboxpa.Parent = textboxFrame
txtboxpa.PaddingLeft = UDim.new(0, 7)
UIListLayout.Parent = TextBoxFrame
UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
function anim(property)
if property == "Text" then
textboxFrame:TweenSize(UDim2.new(0, 359,0, 30), "InOut", "Quint", 0.18, true)
wait(0.18)
textboxFrame:TweenSize(UDim2.new(0, 365,0, 36), "InOut", "Quint", 0.18, true)
end
end
TextBox.Changed:Connect(anim)
TextBox.FocusLost:Connect(function(EnterPressed)
if not EnterPressed then return end
callback(TextBox.Text)
textboxFrame:TweenSize(UDim2.new(0, 359,0, 30), "InOut", "Quint", 0.18, true)
wait(0.18)
textboxFrame:TweenSize(UDim2.new(0, 365,0, 36), "InOut", "Quint", 0.18, true)
--TextBox.Text = ""
end)
end
function ItemHandling:Slider(slidInfo, minvalue, maxvalue, callback)
local SliderFrame = Instance.new("Frame")
local sliderFrame = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local sliderbtn = Instance.new("TextButton")
local UICorner_2 = Instance.new("UICorner")
local dragSlider = Instance.new("Frame")
local UICorner_3 = Instance.new("UICorner")
local dragPrecent = Instance.new("TextLabel")
local UICorner_4 = Instance.new("UICorner")
local triangle = Instance.new("ImageLabel")
local precentlist = Instance.new("UIListLayout")
local precentPad = Instance.new("UIPadding")
local dragList = Instance.new("UIListLayout")
local dragPad = Instance.new("UIPadding")
local sliderlist_2 = Instance.new("UIListLayout")
local sliderlist = Instance.new("UIListLayout")
local UIListLayout = Instance.new("UIListLayout")
local sliderInfo = Instance.new("TextLabel")
--
slidInfo = slidInfo or "Slider"
minvalue = minvalue or 0
maxvalue = maxvalue or 500
---
SliderFrame.Name = "SliderFrame"
SliderFrame.Parent = sectionFrame
SliderFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
SliderFrame.BackgroundTransparency = 1.000
SliderFrame.Size = UDim2.new(0, 365, 0, 36)
sliderFrame.Name = "sliderFrame"
sliderFrame.Parent = SliderFrame
sliderFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
sliderFrame.Size = UDim2.new(0, 365, 0, 36)
sliderFrame.ZIndex = 2
UICorner.CornerRadius = UDim.new(0, 3)
UICorner.Parent = sliderFrame
sliderbtn.Name = "sliderbtn"
sliderbtn.Parent = sliderFrame
sliderbtn.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
sliderbtn.Position = UDim2.new(0.0167808235, 0, 0.416333348, 0)
sliderbtn.Size = UDim2.new(0, 150, 0, 6)
sliderbtn.ZIndex = 2
sliderbtn.AutoButtonColor = false
sliderbtn.Font = Enum.Font.SourceSans
sliderbtn.Text = ""
sliderbtn.TextColor3 = Color3.fromRGB(0, 0, 0)
sliderbtn.TextSize = 14.000
UICorner_2.CornerRadius = UDim.new(0, 5)
UICorner_2.Parent = sliderbtn
dragSlider.Name = "dragSlider"
dragSlider.Parent = sliderbtn
dragSlider.BackgroundColor3 = Color3.fromRGB(153, 255, 238)
dragSlider.Size = UDim2.new(0, 0, 0, 6)
dragSlider.ZIndex = 2
UICorner_3.CornerRadius = UDim.new(0, 5)
UICorner_3.Parent = dragSlider
dragPrecent.Name = "dragPrecent"
dragPrecent.Parent = dragSlider
dragPrecent.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
dragPrecent.BorderSizePixel = 0
dragPrecent.Position = UDim2.new(0.727272749, 0, -2, 0)
dragPrecent.Size = UDim2.new(0, 44, 0, 15)
dragPrecent.ZIndex = 2
dragPrecent.Font = Enum.Font.GothamSemibold
dragPrecent.Text = "0%"
dragPrecent.TextColor3 = Color3.fromRGB(255, 255, 255)
dragPrecent.TextSize = 12.000
dragPrecent.BackgroundTransparency = 1
dragPrecent.TextTransparency = 1
UICorner_4.CornerRadius = UDim.new(0, 3)
UICorner_4.Parent = dragPrecent
triangle.Name = "triangle"
triangle.Parent = dragPrecent
triangle.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
triangle.BackgroundTransparency = 1.000
triangle.Size = UDim2.new(0, 44, 0, 39)
triangle.ZIndex = 2
triangle.Image = "rbxassetid://3926307971"
triangle.ImageColor3 = Color3.fromRGB(31, 31, 31)
triangle.ImageRectOffset = Vector2.new(324, 524)
triangle.ImageRectSize = Vector2.new(36, 36)
triangle.ImageTransparency = 1
precentlist.Name = "precentlist"
precentlist.Parent = dragPrecent
precentlist.HorizontalAlignment = Enum.HorizontalAlignment.Right
precentlist.SortOrder = Enum.SortOrder.LayoutOrder
precentPad.Name = "precentPad"
precentPad.Parent = dragPrecent
dragList.Name = "dragList"
dragList.Parent = dragSlider
dragList.HorizontalAlignment = Enum.HorizontalAlignment.Right
dragList.SortOrder = Enum.SortOrder.LayoutOrder
dragPad.Name = "dragPad"
dragPad.Parent = dragSlider
dragPad.PaddingLeft = UDim.new(0, -15)
dragPad.PaddingRight = UDim.new(0, -20)
dragPad.PaddingTop = UDim.new(0, -18)
sliderlist.Name = "sliderlist"
sliderlist.Parent = sliderbtn
sliderlist.SortOrder = Enum.SortOrder.LayoutOrder
sliderlist.VerticalAlignment = Enum.VerticalAlignment.Center
sliderlist_2.Name = "sliderlist"
sliderlist_2.Parent = sliderFrame
sliderlist_2.FillDirection = Enum.FillDirection.Horizontal
sliderlist_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
sliderlist_2.SortOrder = Enum.SortOrder.LayoutOrder
sliderlist_2.VerticalAlignment = Enum.VerticalAlignment.Center
sliderlist_2.Padding = UDim.new(0, 8)
UIListLayout.Parent = SliderFrame
UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
sliderInfo.Name = "sliderInfo"
sliderInfo.Parent = sliderFrame
sliderInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
sliderInfo.BackgroundTransparency = 1.000
sliderInfo.Position = UDim2.new(0.466095895, 0, 0, 0)
sliderInfo.Size = UDim2.new(0, 193, 0, 36)
sliderInfo.ZIndex = 2
sliderInfo.Font = Enum.Font.GothamSemibold
sliderInfo.Text = slidInfo
sliderInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
sliderInfo.TextSize = 14.000
sliderInfo.TextXAlignment = Enum.TextXAlignment.Left
local mouse = game.Players.LocalPlayer:GetMouse()
local uis = game:GetService("UserInputService")
local Value;
sliderbtn.MouseButton1Down:Connect(function()
Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 150) * dragSlider.AbsoluteSize.X) + tonumber(minvalue)) or 0
pcall(function()
callback(Value)
end)
dragSlider.Size = UDim2.new(0, math.clamp(mouse.X - dragSlider.AbsolutePosition.X, 0, 150), 0, 6)
moveconnection = mouse.Move:Connect(function()
local Percentage = (Value/ maxvalue) * 100
dragPrecent.Text = math.floor(Percentage).."%"
Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 150) * dragSlider.AbsoluteSize.X) + tonumber(minvalue))
pcall(function()
callback(Value)
end)
dragSlider.Size = UDim2.new(0, math.clamp(mouse.X - dragSlider.AbsolutePosition.X, 0, 150), 0, 6)
end)
releaseconnection = uis.InputEnded:Connect(function(Mouse)
if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 150) * dragSlider.AbsoluteSize.X) + tonumber(minvalue))
pcall(function()
callback(Value)
end)
Percentage = (Value/ maxvalue) * 100
dragPrecent.Text = math.floor(Percentage).."%"
dragSlider.Size = UDim2.new(0, math.clamp(mouse.X - dragSlider.AbsolutePosition.X, 0, 150), 0, 6)
moveconnection:Disconnect()
releaseconnection:Disconnect()
end
end)
end)
function anim(property)
if property == "Size" then
sliderFrame:TweenSize(UDim2.new(0, 359,0, 30), "InOut", "Quint", 0.18, true)
wait(0.18)
sliderFrame:TweenSize(UDim2.new(0, 365,0, 36), "InOut", "Quint", 0.18, true)
end
end
dragSlider.Changed:Connect(anim)
sliderbtn.MouseButton1Up:Connect(function()
game.TweenService:Create(dragPrecent, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.In),{
BackgroundTransparency = 1,
TextTransparency = 1
}):Play()
game.TweenService:Create(triangle, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.In),{
ImageTransparency = 1
}):Play()
end)
sliderbtn.MouseButton1Down:Connect(function()