-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathrandom
858 lines (858 loc) · 37.7 KB
/
random
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
local library = {
KeyBind = Enum.KeyCode.RightShift
}
local mouse = game.Players.LocalPlayer:GetMouse()
local uis = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local InsertedObjects = Instance.new("ScreenGui")
local MainContainer = Instance.new("Frame")
local TopFrame = Instance.new("Frame")
local TopFrameColors = Instance.new("UIGradient")
local TopFrameLine = Instance.new("Frame")
local TopFrameLineColor = Instance.new("UIGradient")
local SectionButtonsHolder = Instance.new("Frame")
local SectionButtonsLiter = Instance.new("UIListLayout")
local Close = Instance.new("TextButton")
local XColor = Instance.new("UIGradient")
local OriginalTitle = Instance.new("TextLabel")
local MainContainerColors = Instance.new("UIGradient")
local Sections = Instance.new("Folder")
InsertedObjects.Name = "InsertedObjects"
InsertedObjects.Parent = game.CoreGui
MainContainer.Name = "MainContainer"
MainContainer.Parent = InsertedObjects
MainContainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
MainContainer.BorderColor3 = Color3.fromRGB(149, 241, 255)
MainContainer.BorderSizePixel = 0
MainContainer.Position = UDim2.new(0.5, -300, 0.5, -200)
MainContainer.Size = UDim2.new(0, 600, 0, 400)
MainContainer.Active = true
MainContainer.Draggable = true
TopFrame.Name = "TopFrame"
TopFrame.Parent = MainContainer
TopFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TopFrame.BorderSizePixel = 0
TopFrame.Size = UDim2.new(0, 600, 0, 55)
TopFrameColors.Color = ColorSequence.new{
ColorSequenceKeypoint.new(0.00, Color3.fromRGB(27, 27, 27)),
ColorSequenceKeypoint.new(0.56, Color3.fromRGB(22, 22, 22)),
ColorSequenceKeypoint.new(1.00, Color3.fromRGB(25, 25, 25))
}
TopFrameColors.Rotation = 90
TopFrameColors.Name = "TopFrameColors"
TopFrameColors.Parent = TopFrame
TopFrameLine.Name = "TopFrameLine"
TopFrameLine.Parent = TopFrame
TopFrameLine.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TopFrameLine.BorderSizePixel = 0
TopFrameLine.Position = UDim2.new(0, 0, 0.290909111, 0)
TopFrameLine.Size = UDim2.new(0, 600, 0, 2)
TopFrameLineColor.Color = ColorSequence.new{
ColorSequenceKeypoint.new(0.00, Color3.fromRGB(26, 26, 26)),
ColorSequenceKeypoint.new(0.48, Color3.fromRGB(94, 94, 94)),
ColorSequenceKeypoint.new(1.00, Color3.fromRGB(26, 26, 26))
}
TopFrameLineColor.Name = "TopFrameLineColor"
TopFrameLineColor.Parent = TopFrameLine
SectionButtonsHolder.Name = "SectionButtonsHolder"
SectionButtonsHolder.Parent = TopFrame
SectionButtonsHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
SectionButtonsHolder.BackgroundTransparency = 1.000
SectionButtonsHolder.BorderSizePixel = 0
SectionButtonsHolder.Position = UDim2.new(0.00999999978, 0, 0.327272713, 0)
SectionButtonsHolder.Size = UDim2.new(0, 594, 0, 37)
SectionButtonsLiter.Name = "SectionButtonsLiter"
SectionButtonsLiter.Parent = SectionButtonsHolder
SectionButtonsLiter.FillDirection = Enum.FillDirection.Horizontal
SectionButtonsLiter.SortOrder = Enum.SortOrder.LayoutOrder
SectionButtonsLiter.VerticalAlignment = Enum.VerticalAlignment.Center
Close.Name = "Close"
Close.Parent = TopFrame
Close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Close.BackgroundTransparency = 1.000
Close.Position = UDim2.new(1, -16, 0, 0)
Close.Size = UDim2.new(0, 16, 0, 16)
Close.Font = Enum.Font.SourceSansSemibold
Close.Text = "X"
Close.TextColor3 = Color3.fromRGB(255, 255, 255)
Close.TextSize = 14.000
Close.MouseButton1Down:connect(function()
game:GetService("CoreGui").InsertedObjects:Destroy()
end)
XColor.Color = ColorSequence.new{
ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)),
ColorSequenceKeypoint.new(1.00, Color3.fromRGB(197, 197, 197))
}
XColor.Rotation = 90
XColor.Name = "XColor"
XColor.Parent = Close
OriginalTitle.Name = "OriginalTitle"
OriginalTitle.Parent = TopFrame
OriginalTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
OriginalTitle.BackgroundTransparency = 1.000
OriginalTitle.Position = UDim2.new(0.451666653, 0, 0, 0)
OriginalTitle.Size = UDim2.new(0, 58, 0, 16)
OriginalTitle.Font = Enum.Font.Gotham
OriginalTitle.Text = "CLOUD"
OriginalTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
OriginalTitle.TextSize = 14.000
MainContainerColors.Color = ColorSequence.new{
ColorSequenceKeypoint.new(0.00, Color3.fromRGB(25, 25, 25)),
ColorSequenceKeypoint.new(1.00, Color3.fromRGB(18, 18, 18))
}
MainContainerColors.Rotation = 90
MainContainerColors.Name = "MainContainerColors"
MainContainerColors.Parent = MainContainer
Sections.Name = "Sections"
Sections.Parent = MainContainer
function library:CreateSection(option)
option = option or {}
option.text = option.text or ""
local TextBounds = game:GetService("TextService"):GetTextSize(option.text, 18, Enum.Font.SourceSansSemibold, Vector2.new(math.huge, math.huge))
local Aimbot = Instance.new("TextButton")
Aimbot.Name = "Aimbot"
Aimbot.Parent = SectionButtonsHolder
Aimbot.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Aimbot.BackgroundTransparency = 1.000
Aimbot.Position = UDim2.new(0, 0, 0.0945945978, 0)
Aimbot.Size = UDim2.new(0, TextBounds.X + 15, 0, 30)
Aimbot.Font = Enum.Font.SourceSansSemibold
Aimbot.Text = option.text
Aimbot.TextColor3 = Color3.fromRGB(155, 155, 155)
Aimbot.TextSize = 18
local SectionFrame = Instance.new("Frame")
SectionFrame.Name = "SectionFrame"
SectionFrame.Parent = Sections
SectionFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
SectionFrame.BorderColor3 = Color3.fromRGB(77, 77, 77)
SectionFrame.Position = UDim2.new(0.5, -288, 0.5625, -161)
SectionFrame.Size = UDim2.new(0, 576, 0, 323)
SectionFrame.Visible = false
local nagars = Instance.new("Folder")
nagars.Name = "nagars"
nagars.Parent = SectionFrame
local NagarButtonsFrame = Instance.new("Frame")
NagarButtonsFrame.Name = "NagarButtonsFrame"
NagarButtonsFrame.Parent = SectionFrame
NagarButtonsFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
NagarButtonsFrame.BorderColor3 = Color3.fromRGB(77, 77, 77)
NagarButtonsFrame.Size = UDim2.new(0, 576, 0, 30)
local NagarButtonLister = Instance.new("UIListLayout")
NagarButtonLister.Name = "NagarButtonLister"
NagarButtonLister.Parent = NagarButtonsFrame
NagarButtonLister.FillDirection = Enum.FillDirection.Horizontal
NagarButtonLister.SortOrder = Enum.SortOrder.LayoutOrder
local NagarButtonPadder = Instance.new("UIPadding")
NagarButtonPadder.Name = "NagarButtonPadder"
NagarButtonPadder.Parent = NagarButtonsFrame
NagarButtonPadder.PaddingLeft = UDim.new(0, 5)
Aimbot.MouseButton1Click:Connect(function()
for i, v in next, Sections:GetChildren() do
v.Visible = false
end
SectionFrame.Visible = true
end)
Aimbot.MouseEnter:Connect(function()
TweenService:Create(Aimbot, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(255, 255, 255)
}):Play()
end)
Aimbot.MouseLeave:Connect(function()
TweenService:Create(Aimbot, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(155, 155, 155)
}):Play()
end)
local s = {}
function s:CreateNagar(option)
option = option or {}
option.text = option.text or ""
local TextBounds = game:GetService("TextService"):GetTextSize(option.text, 18, Enum.Font.SourceSansSemibold, Vector2.new(math.huge, math.huge))
local Aimbot_2 = Instance.new("TextButton")
Aimbot_2.Name = "Aimbot"
Aimbot_2.Parent = NagarButtonsFrame
Aimbot_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Aimbot_2.BackgroundTransparency = 1.000
Aimbot_2.Position = UDim2.new(0.00868055597, 0, 0, 0)
Aimbot_2.Size = UDim2.new(0, TextBounds.X + 15, 0, 30)
Aimbot_2.Font = Enum.Font.SourceSansSemibold
Aimbot_2.Text = option.text
Aimbot_2.TextColor3 = Color3.fromRGB(155, 155, 155)
Aimbot_2.TextSize = 18
local Nagars = Instance.new("Frame")
Nagars.Name = "Nagars"
Nagars.Parent = nagars
Nagars.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Nagars.BackgroundTransparency = 1.000
Nagars.BorderSizePixel = 0
Nagars.Position = UDim2.new(0, 0, 0.0928792581, 0)
Nagars.Size = UDim2.new(0, 576, 0, 293)
local NagarLister = Instance.new("UIListLayout")
NagarLister.Name = "NagarLister"
NagarLister.Parent = Nagars
NagarLister.FillDirection = Enum.FillDirection.Horizontal
NagarLister.SortOrder = Enum.SortOrder.LayoutOrder
NagarLister.VerticalAlignment = Enum.VerticalAlignment.Center
NagarLister.Padding = UDim.new(0, 10)
local NagarPadder = Instance.new("UIPadding")
NagarPadder.Name = "NagarPadder"
NagarPadder.Parent = Nagars
NagarPadder.PaddingLeft = UDim.new(0, 8)
Aimbot_2.MouseButton1Click:Connect(function()
for i, v in next, nagars:GetChildren() do
v.Visible = false
end
Nagars.Visible = true
end)
Aimbot_2.MouseEnter:Connect(function()
TweenService:Create(Aimbot_2, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(255, 255, 255)
}):Play()
end)
Aimbot_2.MouseLeave:Connect(function()
TweenService:Create(Aimbot_2, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(155, 155, 155)
}):Play()
end)
local a = {}
function a:CreateWindow(option)
option = option or {}
option.text = option.text or ""
local TextBounds = game:GetService("TextService"):GetTextSize(option.text, 14, Enum.Font.SourceSansLight, Vector2.new(math.huge, math.huge))
local NagarWindow = Instance.new("Frame")
NagarWindow.Name = "NagarWindow"
NagarWindow.Parent = Nagars
NagarWindow.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
NagarWindow.BorderColor3 = Color3.fromRGB(77, 77, 77)
NagarWindow.Position = UDim2.new(-0.107638888, 0, 0.046075087, 0)
NagarWindow.Size = UDim2.new(0, 180, 0, 268)
Nagars.Visible = false
local NagarText = Instance.new("TextLabel")
NagarText.Name = "NagarText"
NagarText.Parent = NagarWindow
NagarText.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
NagarText.BorderSizePixel = 0
NagarText.Position = UDim2.new(0.622, -22, 0, 0)
NagarText.Size = UDim2.new(0, TextBounds.X + 10, 0, 15)
NagarText.Font = Enum.Font.SourceSansLight
NagarText.Text = option.text
NagarText.TextColor3 = Color3.fromRGB(255, 255, 255)
NagarText.TextSize = 14.000
NagarText.AnchorPoint = Vector2.new(0.5, 0.5)
local Features = Instance.new("Frame")
Features.Name = "Features"
Features.Parent = NagarWindow
Features.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Features.BackgroundTransparency = 1.000
Features.Position = UDim2.new(0, 0, 0.0298507456, 0)
Features.Size = UDim2.new(0, 180, 0, 260)
local UIListLayout = Instance.new("UIListLayout")
UIListLayout.Parent = Features
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
local Nig = {}
function Nig:CreateToggle(option)
option = option or {}
option.text = option.text or ""
option.callback = option.callback or function()
end
local Toggle = Instance.new("TextButton")
local FrameToggled = Instance.new("ImageLabel")
local Inner = Instance.new("ImageLabel")
local Checked = Instance.new("ImageLabel")
local ToggleText = Instance.new("TextLabel")
Toggle.Name = "Toggle"
Toggle.Parent = Features
Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Toggle.BackgroundTransparency = 1.000
Toggle.Position = UDim2.new(1, -180, 0.5, -12)
Toggle.Size = UDim2.new(0, 180, 0, 25)
Toggle.Font = Enum.Font.SourceSans
Toggle.Text = ""
Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
Toggle.TextSize = 14.000
FrameToggled.Name = "FrameToggled"
FrameToggled.Parent = Toggle
FrameToggled.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
FrameToggled.BackgroundTransparency = 1.000
FrameToggled.Position = UDim2.new(0.961111128, -20, 0.539999962, -10)
FrameToggled.Size = UDim2.new(0, 20, 0, 20)
FrameToggled.Image = "rbxassetid://3570695787"
FrameToggled.ImageColor3 = Color3.fromRGB(35, 35, 35)
FrameToggled.ScaleType = Enum.ScaleType.Slice
FrameToggled.SliceCenter = Rect.new(100, 100, 100, 100)
FrameToggled.SliceScale = 0.040
Inner.Name = "Inner"
Inner.Parent = FrameToggled
Inner.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Inner.BackgroundTransparency = 1.000
Inner.Position = UDim2.new(0.5, -8, 0.5, -8)
Inner.Size = UDim2.new(0, 16, 0, 16)
Inner.ZIndex = 1
Inner.Image = "rbxassetid://3570695787"
Inner.ImageColor3 = Color3.fromRGB(25, 25, 25)
Inner.ScaleType = Enum.ScaleType.Slice
Inner.SliceCenter = Rect.new(100, 100, 100, 100)
Inner.SliceScale = 0.040
Checked.Name = "Checked"
Checked.Parent = FrameToggled
Checked.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Checked.BackgroundTransparency = 1.000
Checked.Position = UDim2.new(0.5, -5, 0.5, -5)
Checked.Size = UDim2.new(0, 10, 0, 10)
Checked.Image = "rbxassetid://4919148038"
Checked.SliceScale = 5.000
Checked.ImageTransparency = 1
Checked.ImageColor3 = Color3.fromRGB(155, 155, 155)
ToggleText.Name = "ToggleText"
ToggleText.Parent = Toggle
ToggleText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ToggleText.BackgroundTransparency = 1.000
ToggleText.Position = UDim2.new(0, 0, 0.171428218, 0)
ToggleText.Size = UDim2.new(0, 118, 0, 18)
ToggleText.Font = Enum.Font.SourceSans
ToggleText.Text = " "..option.text
ToggleText.TextColor3 = Color3.fromRGB(155, 155, 155)
ToggleText.TextSize = 15.000
ToggleText.TextXAlignment = Enum.TextXAlignment.Left
local toggled = false
Toggle.MouseEnter:Connect(function()
TweenService:Create(ToggleText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(255, 255, 255)
}):Play()
TweenService:Create(Checked, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
ImageColor3 = Color3.fromRGB(255, 255, 255)
}):Play()
end)
Toggle.MouseLeave:Connect(function()
TweenService:Create(ToggleText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(155, 155, 155)
}):Play()
TweenService:Create(Checked, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
ImageColor3 = Color3.fromRGB(155, 155, 155)
}):Play()
end)
Toggle.MouseButton1Click:Connect(function()
if toggled then
toggled = false
TweenService:Create(Checked, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
ImageTransparency = 1
}):Play()
elseif toggled == false then
toggled = true
TweenService:Create(Checked, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
ImageTransparency = 0
}):Play()
end
option.callback(toggled)
end)
end
function Nig:CreateDropdown(option)
option.text = option.text or ""
option.list = option.list or {}
option.callback = option.callback or function()
end
local BodyYSize = 10
local Dropdown = Instance.new("TextButton")
local DropdownText = Instance.new("TextLabel")
local DropdownList = Instance.new("Frame")
local ChosenDropdown = Instance.new("TextLabel")
local UIListLayout = Instance.new("UIListLayout")
UIListLayout.Parent = DropdownList
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
Dropdown.Name = "Dropdown"
Dropdown.Parent = Features
Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Dropdown.BackgroundTransparency = 1.000
Dropdown.Size = UDim2.new(0, 180, 0, 40)
Dropdown.Font = Enum.Font.SourceSans
Dropdown.Text = ""
Dropdown.TextColor3 = Color3.fromRGB(0, 0, 0)
Dropdown.TextSize = 14.000
DropdownText.Name = "DropdownText"
DropdownText.Parent = Dropdown
DropdownText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
DropdownText.BackgroundTransparency = 1.000
DropdownText.Position = UDim2.new(0, 0, 0.25, -12)
DropdownText.Size = UDim2.new(0, 118, 0, 25)
DropdownText.Font = Enum.Font.SourceSans
DropdownText.Text = " " .. option.text
DropdownText.TextColor3 = Color3.fromRGB(178, 178, 178)
DropdownText.TextSize = 15.000
DropdownText.TextXAlignment = Enum.TextXAlignment.Left
DropdownList.Name = "DropdownList"
DropdownList.Parent = Dropdown
DropdownList.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
DropdownList.BorderColor3 = Color3.fromRGB(35, 35, 35)
DropdownList.BorderSizePixel = 2
DropdownList.Position = UDim2.new(0.0388888903, 0, 0.574999988, 0)
DropdownList.Size = UDim2.new(0, 166, 0, 10)
DropdownList.ZIndex = 2
DropdownList.ClipsDescendants = true
ChosenDropdown.Name = "ChosenDropdown"
ChosenDropdown.Parent = DropdownList
ChosenDropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ChosenDropdown.BackgroundTransparency = 1.000
ChosenDropdown.Size = UDim2.new(0, 166, 0, 10)
ChosenDropdown.Font = Enum.Font.SourceSans
ChosenDropdown.TextColor3 = Color3.fromRGB(255, 255, 255)
ChosenDropdown.TextSize = 14.000
ChosenDropdown.ZIndex = 2
ChosenDropdown.Text = ""
Dropdown.MouseButton1Click:Connect(function()
TweenService:Create(DropdownList, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
Size = UDim2.new(0, 166, 0, BodyYSize)
}):Play()
ChosenDropdown.Text = "..."
end)
Dropdown.MouseEnter:Connect(function()
TweenService:Create(ChosenDropdown, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(255, 255, 255)
}):Play()
TweenService:Create(DropdownText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(255, 255, 255)
}):Play()
end)
Dropdown.MouseLeave:Connect(function()
TweenService:Create(ChosenDropdown, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(155, 155, 155)
}):Play()
TweenService:Create(DropdownText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(155, 155, 155)
}):Play()
end)
for i, v in next, option.list do
local OPTION = Instance.new("TextButton")
OPTION.Name = v
OPTION.Parent = DropdownList
OPTION.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
OPTION.BackgroundTransparency = 1.000
OPTION.Position = UDim2.new(0, 0, 0.0892857164, 0)
OPTION.Size = UDim2.new(0, 166, 0, 25)
OPTION.ZIndex = 2
OPTION.Font = Enum.Font.SourceSans
OPTION.TextColor3 = Color3.fromRGB(255, 255, 255)
OPTION.TextSize = 14.000
OPTION.Text = v
BodyYSize = BodyYSize + 25
OPTION.MouseButton1Click:Connect(function()
TweenService:Create(DropdownList, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
Size = UDim2.new(0, 166, 0, 10)
}):Play()
option.callback(v)
ChosenDropdown.Text = v
end)
OPTION.MouseEnter:Connect(function()
TweenService:Create(OPTION, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(255, 255, 255)
}):Play()
end)
OPTION.MouseLeave:Connect(function()
TweenService:Create(OPTION, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(155, 155, 155)
}):Play()
end)
end
end
function Nig:CreateSlider(option)
option.text = option.text or ""
option.minval = option.minval or 0
option.maxval = option.maxval or 0
option.callback = option.callback or function()
end
local Value;
local Slider = Instance.new("TextButton")
local SliderText = Instance.new("TextLabel")
local SliderLine = Instance.new("Frame")
local SliderInner = Instance.new("Frame")
local SliderValue = Instance.new("TextLabel")
Slider.Name = "Slider"
Slider.Parent = Features
Slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Slider.BackgroundTransparency = 1.000
Slider.Size = UDim2.new(0, 180, 0, 40)
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.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
SliderText.BackgroundTransparency = 1.000
SliderText.Position = UDim2.new(0, 0, 0.25, -12)
SliderText.Size = UDim2.new(0, 118, 0, 25)
SliderText.Font = Enum.Font.SourceSans
SliderText.Text = " " .. option.text
SliderText.TextColor3 = Color3.fromRGB(178, 178, 178)
SliderText.TextSize = 15.000
SliderText.TextXAlignment = Enum.TextXAlignment.Left
SliderLine.Name = "SliderLine"
SliderLine.Parent = Slider
SliderLine.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
SliderLine.BorderColor3 = Color3.fromRGB(35, 35, 35)
SliderLine.BorderSizePixel = 2
SliderLine.Position = UDim2.new(0.0388888903, 0, 0.574999988, 0)
SliderLine.Size = UDim2.new(0, 166, 0, 10)
SliderInner.Name = "SliderInner"
SliderInner.Parent = SliderLine
SliderInner.BackgroundColor3 = Color3.fromRGB(255, 80, 80)
SliderInner.BorderSizePixel = 0
SliderInner.Size = UDim2.new(0, 0, 0, 10)
SliderValue.Name = "SliderValue"
SliderValue.Parent = Slider
SliderValue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
SliderValue.BackgroundTransparency = 1.000
SliderValue.Position = UDim2.new(0.0388888903, 0, 0.574999988, 0)
SliderValue.Size = UDim2.new(0, 166, 0, 10)
SliderValue.Font = Enum.Font.SourceSans
SliderValue.Text = option.minval
SliderValue.TextColor3 = Color3.fromRGB(255, 255, 255)
SliderValue.TextSize = 13
SliderValue.TextTransparency = 1
local down = false
Slider.MouseButton1Down:Connect(function()
down = true
TweenService:Create(SliderValue, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextTransparency = 0
}):Play()
Value = math.floor((((tonumber(option.maxval) - tonumber(option.minval)) / 166) * SliderInner.AbsoluteSize.X) + tonumber(option.minval)) or 0
SliderValue.Text = Value
pcall(option.callback, Value)
SliderInner:TweenSize(UDim2.new(0, math.clamp(mouse.X - SliderInner.AbsolutePosition.X, 0, 166), 0, 10), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, .07)
while game:GetService("RunService").RenderStepped:wait() and down do
Value = math.floor((((tonumber(option.maxval) - tonumber(option.minval)) / 166) * SliderInner.AbsoluteSize.X) + tonumber(option.minval)) or 0
SliderValue.Text = Value
pcall(option.callback, Value)
SliderInner:TweenSize(UDim2.new(0, math.clamp(mouse.X - SliderInner.AbsolutePosition.X, 0, 166), 0, 10), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, .07)
end
end)
uis.InputEnded:connect(function(key)
if key.UserInputType == Enum.UserInputType.MouseButton1 and down then
down = false
TweenService:Create(SliderValue, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextTransparency = 1
}):Play()
Value = math.floor((((tonumber(option.maxval) - tonumber(option.minval)) / 166) * SliderInner.AbsoluteSize.X) + tonumber(option.minval)) or 0
SliderValue.Text = Value
pcall(option.callback, Value)
SliderInner:TweenSize(UDim2.new(0, math.clamp(mouse.X - SliderInner.AbsolutePosition.X, 0, 166), 0, 10), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.1)
end
end)
Slider.MouseEnter:Connect(function()
TweenService:Create(SliderText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(255, 255, 255)
}):Play()
end)
Slider.MouseLeave:Connect(function()
TweenService:Create(SliderText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(155, 155, 155)
}):Play()
end)
end
function Nig:CreateBind(option)
option.text = option.text or ""
option.bind = option.bind or nil
local binding
local holding
local loop
local text = string.match(option.key, "Mouse") and string.sub(option.key, 1, 5) .. string.sub(option.key, 12, 13) or option.key
local inContact
local Keybind = Instance.new("TextButton")
local KeybingText = Instance.new("TextLabel")
local KeyBindButton = Instance.new("TextButton")
Keybind.Name = "Keybind"
Keybind.Parent = Features
Keybind.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Keybind.BackgroundTransparency = 1.000
Keybind.Position = UDim2.new(0, 0, 0.403846145, 0)
Keybind.Size = UDim2.new(0, 180, 0, 30)
Keybind.Font = Enum.Font.SourceSans
Keybind.Text = ""
Keybind.TextColor3 = Color3.fromRGB(0, 0, 0)
Keybind.TextSize = 14.000
KeybingText.Name = "KeybingText"
KeybingText.Parent = Keybind
KeybingText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
KeybingText.BackgroundTransparency = 1.000
KeybingText.Position = UDim2.new(0, 0, 0.466666669, -12)
KeybingText.Size = UDim2.new(0, 118, 0, 25)
KeybingText.Font = Enum.Font.SourceSans
KeybingText.Text = " " .. option.text
KeybingText.TextColor3 = Color3.fromRGB(178, 178, 178)
KeybingText.TextSize = 15.000
KeybingText.TextXAlignment = Enum.TextXAlignment.Left
local TextBounds = game:GetService("TextService"):GetTextSize(text, 14, Enum.Font.SourceSansSemibold, Vector2.new(math.huge, math.huge))
KeyBindButton.Name = "KeyBindButton"
KeyBindButton.Parent = Keybind
KeyBindButton.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
KeyBindButton.BorderColor3 = Color3.fromRGB(77, 77, 77)
KeyBindButton.Position = UDim2.new(0.961, 0, 0.458, 0)
KeyBindButton.Size = UDim2.new(0, TextBounds.X + 15, 0, 20)
KeyBindButton.Font = Enum.Font.SourceSans
KeyBindButton.Text = text
KeyBindButton.TextColor3 = Color3.fromRGB(178, 178, 178)
KeyBindButton.TextSize = 14.000
KeyBindButton.AnchorPoint = Vector2.new(1, 0.5)
Keybind.MouseEnter:Connect(function()
TweenService:Create(KeybingText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(255, 255, 255)
}):Play()
end)
Keybind.MouseLeave:Connect(function()
TweenService:Create(KeybingText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(155, 155, 155)
}):Play()
end)
local UnknownKeys = {
Enum.KeyCode.Unknown,
Enum.KeyCode.W,
Enum.KeyCode.A,
Enum.KeyCode.S,
Enum.KeyCode.D,
Enum.KeyCode.Slash,
Enum.KeyCode.Tab,
Enum.KeyCode.Backspace,
Enum.KeyCode.Escape
}
local MouseButtons = {
Enum.UserInputType.MouseButton1,
Enum.UserInputType.MouseButton2,
Enum.UserInputType.MouseButton3
}
local function keyCheck(a, b)
for _, v in next, b do
if v == a then
return true
end
end
end
Keybind.InputBegan:connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement then
inContact = true
if not binding then
TweenService:Create(KeyBindButton, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
BackgroundColor3 = Color3.fromRGB(25, 25, 25)
}):Play()
end
end
end)
Keybind.InputEnded:connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
binding = true
KeyBindButton.Text = "..."
TweenService:Create(KeyBindButton, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
BackgroundColor3 = Color3.fromRGB(255, 80, 80)
}):Play()
end
if input.UserInputType == Enum.UserInputType.MouseMovement then
inContact = false
if not binding then
TweenService:Create(KeyBindButton, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
BackgroundColor3 = Color3.fromRGB(25, 25, 25)
}):Play()
end
end
end)
uis.InputBegan:connect(function(input)
if uis:GetFocusedTextBox() then
return
end
if (input.KeyCode.Name == option.key or input.UserInputType.Name == option.key) and not binding then
if option.hold then
loop = game:GetService("RunService").Heartbeat:connect(function()
if binding then
option.callback(true)
loop:Disconnect()
loop = nil
else
option.callback()
end
end)
else
option.callback()
end
elseif binding then
local key
pcall(function()
if not keyCheck(input.KeyCode, UnknownKeys) then
key = input.KeyCode
end
end)
pcall(function()
if keyCheck(input.UserInputType, MouseButtons) and not key then
key = input.UserInputType
end
end)
key = key or option.key
option:SetKey(key)
end
end)
uis.InputEnded:connect(function(input)
if input.KeyCode.Name == option.key or input.UserInputType.Name == option.key or input.UserInputType.Name == "MouseMovement" then
if loop then
loop:Disconnect()
loop = nil
option.callback(true)
end
end
end)
function option:SetKey(key)
binding = false
if loop then
loop:Disconnect()
loop = nil
end
self.key = key or self.key
self.key = self.key.Name or self.key
if string.match(self.key, "Mouse") then
KeyBindButton.Text = string.sub(self.key, 1, 5) .. string.sub(self.key, 12, 13)
else
KeyBindButton.Text = self.key
end
TweenService:Create(KeyBindButton, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
BackgroundColor3 = inContact and Color3.fromRGB(40, 40, 40) or Color3.fromRGB(25, 25, 25)
}):Play()
end
end
function Nig:CreateButton(option)
option.text = option.text or ""
option.callback = option.callback or function()
end
local Button = Instance.new("TextButton")
local ButtonImage = Instance.new("ImageButton")
local ButtonText = Instance.new("TextLabel")
Button.Name = "Button"
Button.Parent = Features
Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Button.BackgroundTransparency = 1.000
Button.Position = UDim2.new(0, 0, 0.519230783, 0)
Button.Size = UDim2.new(0, 180, 0, 30)
Button.Font = Enum.Font.SourceSans
Button.Text = ""
Button.TextColor3 = Color3.fromRGB(0, 0, 0)
Button.TextSize = 14.000
ButtonImage.Name = "ButtonImage"
ButtonImage.Parent = Button
ButtonImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ButtonImage.BackgroundTransparency = 1.000
ButtonImage.Position = UDim2.new(0.5, -83, 0.5, -10)
ButtonImage.Size = UDim2.new(0, 166, 0, 20)
ButtonImage.Image = "rbxassetid://3570695787"
ButtonImage.ImageColor3 = Color3.fromRGB(25, 25, 25)
ButtonImage.ScaleType = Enum.ScaleType.Slice
ButtonImage.SliceCenter = Rect.new(100, 100, 100, 100)
ButtonImage.SliceScale = 0.001
ButtonText.Name = "ButtonText"
ButtonText.Parent = ButtonImage
ButtonText.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
ButtonText.BorderColor3 = Color3.fromRGB(77, 77, 77)
ButtonText.Size = UDim2.new(0, 166, 0, 20)
ButtonText.Font = Enum.Font.SourceSans
ButtonText.Text = option.text
ButtonText.TextColor3 = Color3.fromRGB(178, 178, 178)
ButtonText.TextSize = 14.000
local inContact
local clicking
ButtonImage.InputBegan:connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
clicking = true
TweenService:Create(ButtonText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
BackgroundColor3 = Color3.fromRGB(255, 80, 80)
}):Play()
option.callback()
end
if input.UserInputType == Enum.UserInputType.MouseMovement then
inContact = true
TweenService:Create(ButtonText, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
BackgroundColor3 = Color3.fromRGB(25, 25, 25)
}):Play()
end
end)
ButtonImage.InputEnded:connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
clicking = false
if inContact then
TweenService:Create(ButtonText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
BackgroundColor3 = Color3.fromRGB(25, 25, 25)
}):Play()
else
TweenService:Create(ButtonText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
BackgroundColor3 = Color3.fromRGB(25, 25, 25)
}):Play()
end
end
if input.UserInputType == Enum.UserInputType.MouseMovement then
inContact = false
if not clicking then
TweenService:Create(ButtonImage, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
BackgroundColor3 = Color3.fromRGB(25, 25, 25)
}):Play()
end
end
end)
Button.MouseEnter:Connect(function()
TweenService:Create(ButtonText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(255, 255, 255)
}):Play()
end)
Button.MouseLeave:Connect(function()
TweenService:Create(ButtonText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(155, 155, 155)
}):Play()
end)
end
function Nig:CreateTextBox(option)
local Textbox = Instance.new("TextButton")
local TextBoxText = Instance.new("TextBox")
Textbox.Name = "Textbox"
Textbox.Parent = Features
Textbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Textbox.BackgroundTransparency = 1.000
Textbox.Position = UDim2.new(0, 0, 0.519230783, 0)
Textbox.Size = UDim2.new(0, 180, 0, 30)
Textbox.Font = Enum.Font.SourceSans
Textbox.Text = ""
Textbox.TextColor3 = Color3.fromRGB(0, 0, 0)
Textbox.TextSize = 14.000
TextBoxText.Name = "TextBoxText"
TextBoxText.Parent = Textbox
TextBoxText.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
TextBoxText.BorderColor3 = Color3.fromRGB(77, 77, 77)
TextBoxText.Position = UDim2.new(0.5, -83, 0.5, -10)
TextBoxText.Size = UDim2.new(0, 166, 0, 20)
TextBoxText.Font = Enum.Font.SourceSans
TextBoxText.PlaceholderColor3 = Color3.fromRGB(155, 155, 155)
TextBoxText.PlaceholderText = option.text
TextBoxText.Text = ""
TextBoxText.TextColor3 = Color3.fromRGB(0, 0, 0)
TextBoxText.TextSize = 14.000
TextBoxText.Focused:Connect(function()
TextBoxText.TextColor3 = Color3.fromRGB(255, 255, 255)
end)
TextBoxText.FocusLost:Connect(function(enbter)
if enbter then
TextBoxText.TextColor3 = Color3.fromRGB(155, 155, 155)
option.callback(TextBoxText.Text)
end
end)
Textbox.MouseEnter:Connect(function()
TweenService:Create(TextBoxText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(255, 255, 255)
}):Play()
TweenService:Create(TextBoxText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
}):Play()
end)
Textbox.MouseLeave:Connect(function()
TweenService:Create(TextBoxText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
TextColor3 = Color3.fromRGB(155, 155, 155)
}):Play()
TweenService:Create(TextBoxText, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
PlaceholderColor3 = Color3.fromRGB(155, 155, 155)
}):Play()
end)
end
return Nig;
end
return a;
end
return s;
end