-
Notifications
You must be signed in to change notification settings - Fork 0
/
sus.lua.txt
11526 lines (10529 loc) · 570 KB
/
sus.lua.txt
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
if game.PlaceId == 2753915549 or game.PlaceId == 4442272183 or game.PlaceId == 7449423635 then
_G.Color = Color3.fromRGB(255,0,0)
if not game:IsLoaded() then repeat game.Loaded:Wait() until game:IsLoaded() end
repeat wait() until game:GetService("Players")
if not game:GetService("Players").LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then repeat wait() until game:GetService("Players").LocalPlayer.Character:FindFirstChild("HumanoidRootPart") end
wait(1)
do
local ui = game.CoreGui:FindFirstChild("UlLib")
if ui then
ui:Destroy()
end
end
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local function MakeDraggable(topbarobject, object)
local Dragging = nil
local DragInput = nil
local DragStart = nil
local StartPosition = nil
local function Update(input)
local Delta = input.Position - DragStart
local pos =
UDim2.new(
StartPosition.X.Scale,
StartPosition.X.Offset + Delta.X,
StartPosition.Y.Scale,
StartPosition.Y.Offset + Delta.Y
)
local Tween = TweenService:Create(object, TweenInfo.new(0.2), {Position = pos})
Tween:Play()
end
topbarobject.InputBegan:Connect(
function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
Dragging = true
DragStart = input.Position
StartPosition = object.Position
input.Changed:Connect(
function()
if input.UserInputState == Enum.UserInputState.End then
Dragging = false
end
end
)
end
end
)
topbarobject.InputChanged:Connect(
function(input)
if
input.UserInputType == Enum.UserInputType.MouseMovement or
input.UserInputType == Enum.UserInputType.Touch
then
DragInput = input
end
end
)
UserInputService.InputChanged:Connect(
function(input)
if input == DragInput and Dragging then
Update(input)
end
end
)
end
local library = {}
function library:AddWindow(text,keybind)
local bind = keybind or Enum.KeyCode.RightControl
local ff = false
local currenttab = ""
local DoctorShiba = Instance.new("ScreenGui")
DoctorShiba.Name = "UlLib"
DoctorShiba.Parent = game.CoreGui
DoctorShiba.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
local Main = Instance.new("Frame")
Main.Name = "Main"
Main.Parent = DoctorShiba
Main.AnchorPoint = Vector2.new(0.5, 0.5)
Main.BackgroundColor3 = Color3.fromRGB(30, 28, 39)
Main.BackgroundTransparency = 0.100
Main.BorderSizePixel = 0
Main.ClipsDescendants = true
Main.Position = UDim2.new(0.499526083, 0, 0.499241292, 0)
Main.Size = UDim2.new(0, 600, 0, 350)
local Top = Instance.new("Frame")
Top.Name = "Top"
Top.Parent = Main
Top.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Top.BackgroundTransparency = 1.000
Top.BorderSizePixel = 0
Top.Size = UDim2.new(0, 600, 0, 20)
local Page = Instance.new("Frame")
Page.Name = "Page"
Page.Parent = Main
Page.BackgroundColor3 = Color3.fromRGB(25, 23, 35)
Page.BackgroundTransparency = 0.100
Page.BorderSizePixel = 0
Page.Size = UDim2.new(0, 125, 0, 350)
local NameHub = Instance.new("TextLabel")
NameHub.Name = "NameHub"
NameHub.Parent = Page
NameHub.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
NameHub.BackgroundTransparency = 1.000
NameHub.Position = UDim2.new(0.113333493, 0, 0, 0)
NameHub.Size = UDim2.new(0, 110, 0, 20)
NameHub.Font = Enum.Font.GothamSemibold
NameHub.Text = text
NameHub.TextColor3 = Color3.fromRGB(225, 0, 0)
NameHub.TextSize = 11.000
NameHub.TextXAlignment = Enum.TextXAlignment.Left
local User = Instance.new("Frame")
User.Name = "User"
User.Parent = Page
User.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
User.BackgroundTransparency = 1.000
User.Position = UDim2.new(0, 0, 0.8, 30)
User.Size = UDim2.new(0, 125, 0, 40)
local UserText = Instance.new("TextLabel")
UserText.Name = "UserText"
UserText.Parent = User
UserText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
UserText.BackgroundTransparency = 1.000
UserText.Position = UDim2.new(0.354999989, 0, 0, 11)
UserText.Size = UDim2.new(0, 80, 0, 20)
UserText.Font = Enum.Font.Gotham
UserText.Text = tostring(game.Players.LocalPlayer.Name)
spawn(function()
while wait() do
pcall(function()
wait(0.1)
game:GetService('TweenService'):Create(
UserText,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{TextColor3 = Color3.fromRGB(255, 0, 0)}
):Play()
wait(.5)
game:GetService('TweenService'):Create(
UserText,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{TextColor3 = Color3.fromRGB(255, 155, 0)}
):Play()
wait(.5)
game:GetService('TweenService'):Create(
UserText,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{TextColor3 = Color3.fromRGB(255, 255, 0)}
):Play()
wait(.5)
game:GetService('TweenService'):Create(
UserText,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{TextColor3 = Color3.fromRGB(0, 255, 0)}
):Play()
wait(.5)
game:GetService('TweenService'):Create(
UserText,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{TextColor3 = Color3.fromRGB(0, 255, 255)}
):Play()
wait(.5)
game:GetService('TweenService'):Create(
UserText,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{TextColor3 = Color3.fromRGB(0, 155, 255)}
):Play()
wait(.5)
game:GetService('TweenService'):Create(
UserText,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{TextColor3 = Color3.fromRGB(255, 0, 255)}
):Play()
wait(.5)
game:GetService('TweenService'):Create(
UserText,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{TextColor3 = Color3.fromRGB(255, 0, 155)}
):Play()
wait(.5)
end)
end
end)
UserText.TextScaled = true
UserText.TextSize = 11.000
UserText.TextWrapped = true
UserText.TextXAlignment = Enum.TextXAlignment.Left
local UITextSizeConstraint = Instance.new("UITextSizeConstraint")
UITextSizeConstraint.Parent = UserText
UITextSizeConstraint.MaxTextSize = 11
local UserImage = Instance.new("ImageLabel")
UserImage.Name = "UserImage"
UserImage.Parent = User
UserImage.BackgroundColor3 = Color3.fromRGB(225, 225, 225)
UserImage.Position = UDim2.new(0, 10, 0, 9)
UserImage.Size = UDim2.new(0, 25, 0, 25)
UserImage.Image = "https://www.roblox.com/headshot-thumbnail/image?userId="..game.Players.LocalPlayer.UserId.."&width=420&height=420&format=png"
local UserImageCorner = Instance.new("UICorner")
UserImageCorner.CornerRadius = UDim.new(0, 100)
UserImageCorner.Name = "UserImageCorner"
UserImageCorner.Parent = UserImage
local ScrollPage = Instance.new("ScrollingFrame")
ScrollPage.Name = "ScrollPage"
ScrollPage.Parent = Page
ScrollPage.Active = true
ScrollPage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ScrollPage.BackgroundTransparency = 1.000
ScrollPage.BorderSizePixel = 0
ScrollPage.Position = UDim2.new(0, 0, 0.086, 0)
ScrollPage.Size = UDim2.new(0, 125, 0, 290)
ScrollPage.CanvasSize = UDim2.new(0, 0, 0, 0)
ScrollPage.ScrollBarThickness = 0
local PageList = Instance.new("UIListLayout")
PageList.Name = "PageList"
PageList.Parent = ScrollPage
PageList.SortOrder = Enum.SortOrder.LayoutOrder
PageList.Padding = UDim.new(0, 7)
local PagePadding = Instance.new("UIPadding")
PagePadding.Name = "PagePadding"
PagePadding.Parent = ScrollPage
PagePadding.PaddingTop = UDim.new(0, 5)
PagePadding.PaddingLeft = UDim.new(0, 28)
local TabFolder = Instance.new("Folder")
TabFolder.Name = "TabFolder"
TabFolder.Parent = Main
MakeDraggable(Top,Main)
local uihide = false
UserInputService.InputBegan:Connect(function(input)
if input.KeyCode == bind then
if uihide == false then
uihide = true
Main:TweenSize(UDim2.new(0, 0, 0, 0),"In","Quad",0.2,true)
else
uihide = false
Main:TweenSize(UDim2.new(0, 600, 0, 350),"Out","Quad",0.2,true)
end
end
end)
local uitab = {}
function uitab:AddTab(text,image)
local Image = image or 6023426915
local PageButton = Instance.new("TextButton")
PageButton.Name = "PageButton"
PageButton.Parent = ScrollPage
PageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
PageButton.BackgroundTransparency = 1.000
PageButton.BorderSizePixel = 0
PageButton.Position = UDim2.new(0.224000007, 0, 0.029787235, 0)
PageButton.Size = UDim2.new(0, 97, 0, 20)
PageButton.AutoButtonColor = false
PageButton.Font = Enum.Font.GothamSemibold
PageButton.Text = text
PageButton.TextColor3 = Color3.fromRGB(225, 225, 225)
PageButton.TextSize = 11.000
PageButton.TextXAlignment = Enum.TextXAlignment.Left
local PageImage = Instance.new("ImageLabel")
PageImage.Name = "PageImage"
PageImage.Parent = PageButton
PageImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
PageImage.BackgroundTransparency = 1.000
PageImage.Position = UDim2.new(0, -20, 0, 3)
PageImage.Size = UDim2.new(0, 15, 0, 15)
PageImage.Image = "rbxassetid://"..tostring(Image)
local MainTab = Instance.new("Frame")
MainTab.Name = "MainTab"
MainTab.Parent = TabFolder
MainTab.BackgroundColor3 = Color3.fromRGB(30, 28, 39)
MainTab.BorderSizePixel = 0
MainTab.Position = UDim2.new(0.208333328, 0, 0, 0)
MainTab.Size = UDim2.new(0, 475, 0, 350)
MainTab.Visible = false
local ScrollTab = Instance.new("ScrollingFrame")
ScrollTab.Name = "ScrollTab"
ScrollTab.Parent = MainTab
ScrollTab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ScrollTab.BackgroundTransparency = 1.000
ScrollTab.BorderSizePixel = 0
ScrollTab.Position = UDim2.new(0, 0, 0.057, 0)
ScrollTab.Size = UDim2.new(0, 475, 0, 330)
ScrollTab.CanvasSize = UDim2.new(0, 0, 0, 0)
ScrollTab.ScrollBarThickness = 3
local TabList = Instance.new("UIListLayout")
TabList.Name = "TabList"
TabList.Parent = ScrollTab
TabList.SortOrder = Enum.SortOrder.LayoutOrder
TabList.Padding = UDim.new(0, 5)
local TabPadding = Instance.new("UIPadding")
TabPadding.Name = "TabPadding"
TabPadding.Parent = ScrollTab
TabPadding.PaddingLeft = UDim.new(0, 10)
TabPadding.PaddingTop = UDim.new(0, 10)
PageButton.MouseButton1Click:Connect(function()
currenttab = MainTab.Name
for i,v in next, TabFolder:GetChildren() do
if v.Name == "MainTab" then
v.Visible = false
end
end
MainTab.Visible = true
for i,v in next, ScrollPage:GetChildren() do
if v:IsA("TextButton") then
TweenService:Create(
v,
TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
{TextColor3 = Color3.fromRGB(225, 225, 225)}
):Play()
end
TweenService:Create(
PageButton,
TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
{TextColor3 = Color3.fromRGB(255,0,0)}
):Play()
end
end)
if ff == false then
TweenService:Create(
PageButton,
TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
{TextColor3 = Color3.fromRGB(255,0,0)}
):Play()
for i,v in next, TabFolder:GetChildren() do
if v.Name == "MainTab" then
v.Visible = false
end
MainTab.Visible = true
end
ff = true
end
game:GetService("RunService").Stepped:Connect(function()
pcall(function()
ScrollPage.CanvasSize = UDim2.new(0,0,0,PageList.AbsoluteContentSize.Y + 10)
ScrollTab.CanvasSize = UDim2.new(0,0,0,TabList.AbsoluteContentSize.Y + 30)
end)
end)
local main = {}
function main:AddButton(text,callback)
local Button = Instance.new("TextButton")
Button.Name = "Button"
Button.Parent = ScrollTab
Button.BackgroundColor3 = Color3.fromRGB(50, 48, 59)
Button.BackgroundTransparency = 0.1
Button.BorderSizePixel = 0
Button.Size = UDim2.new(0, 455, 0, 30)
Button.AutoButtonColor = false
Button.Font = Enum.Font.Gotham
Button.Text = text
Button.TextColor3 = Color3.fromRGB(225, 225, 225)
Button.TextSize = 11.000
Button.TextWrapped = true
local ButtonCorner = Instance.new("UICorner")
ButtonCorner.Name = "ButtonCorner"
ButtonCorner.CornerRadius = UDim.new(0, 5)
ButtonCorner.Parent = Button
Button.MouseEnter:Connect(function()
TweenService:Create(
Button,
TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
{TextColor3 = Color3.fromRGB(255,0,0)}
):Play()
end)
Button.MouseLeave:Connect(function()
TweenService:Create(
Button,
TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
{TextColor3 = Color3.fromRGB(225, 225, 225)}
):Play()
end)
Button.MouseButton1Click:Connect(function()
callback()
Button.TextSize = 0
TweenService:Create(
Button,
TweenInfo.new(0.4,Enum.EasingStyle.Back,Enum.EasingDirection.Out),
{TextSize = 11}
):Play()
end)
end
function main:AddToggle(text,config,callback)
local ToggleImage = Instance.new("Frame")
local Toggle = Instance.new("TextButton")
Toggle.Name = "Toggle"
Toggle.Parent = ScrollTab
Toggle.BackgroundColor3 = Color3.fromRGB(50, 48, 59)
Toggle.BackgroundTransparency = 0.1
Toggle.BorderSizePixel = 0
Toggle.AutoButtonColor = false
Toggle.Size = UDim2.new(0, 455, 0, 30)
Toggle.Font = Enum.Font.SourceSans
Toggle.Text = ""
Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
Toggle.TextSize = 14.000
local ToggleCorner = Instance.new("UICorner")
ToggleCorner.Name = "ToggleCorner"
ToggleCorner.CornerRadius = UDim.new(0, 5)
ToggleCorner.Parent = Toggle
local ToggleLabel = Instance.new("TextLabel")
ToggleLabel.Name = "ToggleLabel"
ToggleLabel.Parent = Toggle
ToggleLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ToggleLabel.BackgroundTransparency = 1.000
ToggleLabel.Position = UDim2.new(0, 13, 0, 0)
ToggleLabel.Size = UDim2.new(0, 410, 0, 30)
ToggleLabel.Font = Enum.Font.Gotham
ToggleLabel.Text = text
ToggleLabel.TextColor3 = Color3.fromRGB(225, 225, 225)
ToggleLabel.TextSize = 11.000
ToggleLabel.TextXAlignment = Enum.TextXAlignment.Left
ToggleImage.Name = "ToggleImage"
ToggleImage.Parent = Toggle
ToggleImage.BackgroundColor3 = Color3.fromRGB(70, 68, 79)
ToggleImage.Position = UDim2.new(0, 425, 0, 5)
ToggleImage.BorderSizePixel = 0
ToggleImage.Size = UDim2.new(0, 20, 0, 20)
local ToggleImageCorner = Instance.new("UICorner")
ToggleImageCorner.Name = "ToggleImageCorner"
ToggleImageCorner.CornerRadius = UDim.new(0, 5)
ToggleImageCorner.Parent = ToggleImage
local ToggleImage2 = Instance.new("Frame")
ToggleImage2.Name = "ToggleImage2"
ToggleImage2.Parent = ToggleImage
ToggleImage2.AnchorPoint = Vector2.new(0.5, 0.5)
ToggleImage2.BackgroundColor3 = Color3.fromRGB(255,0,0)
ToggleImage2.Position = UDim2.new(0, 10, 0, 10)
ToggleImage2.Visible = false
local ToggleImage2Corner = Instance.new("UICorner")
ToggleImage2Corner.Name = "ToggleImageCorner"
ToggleImage2Corner.CornerRadius = UDim.new(0, 5)
ToggleImage2Corner.Parent = ToggleImage2
Toggle.MouseEnter:Connect(function()
TweenService:Create(
ToggleLabel,
TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
{TextColor3 = Color3.fromRGB(255,0,0)}
):Play()
end)
Toggle.MouseLeave:Connect(function()
TweenService:Create(
ToggleLabel,
TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),
{TextColor3 = Color3.fromRGB(225, 225, 225)}
):Play()
end)
if config == nil then config = false end
local toggled = config or false
Toggle.MouseButton1Click:Connect(function()
if toggled == false then
toggled = true
ToggleImage2.Visible = true
ToggleImage2:TweenSize(UDim2.new(0, 21, 0, 21),"In","Quad",0.1,true)
else
toggled = false
ToggleImage2:TweenSize(UDim2.new(0, 0, 0, 0),"In","Quad",0.1,true)
wait(0.1)
ToggleImage2.Visible = false
end
callback(toggled)
end)
if config == true then
ToggleImage2.Visible = true
ToggleImage2:TweenSize(UDim2.new(0, 21, 0, 21),"In","Quad",0.1,true)
toggled = true
callback(toggled)
end
end
function main:AddTextbox(text,holder,disappear,callback)
local Textboxx = Instance.new("Frame")
local TextboxxCorner = Instance.new("UICorner")
local TextboxTitle = Instance.new("TextLabel")
local Textbox = Instance.new("TextBox")
local TextboxCorner = Instance.new("UICorner")
Textboxx.Name = "Textboxx"
Textboxx.Parent = ScrollTab
Textboxx.BackgroundColor3 = Color3.fromRGB(50, 48, 59)
Textboxx.Size = UDim2.new(0, 455, 0, 30)
TextboxxCorner.CornerRadius = UDim.new(0, 5)
TextboxxCorner.Name = "TextboxxCorner"
TextboxxCorner.Parent = Textboxx
TextboxTitle.Name = "TextboxTitle"
TextboxTitle.Parent = Textboxx
TextboxTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextboxTitle.BackgroundTransparency = 1.000
TextboxTitle.Position = UDim2.new(0, 15, 0, 0)
TextboxTitle.Size = UDim2.new(0, 300, 0, 30)
TextboxTitle.Font = Enum.Font.Gotham
TextboxTitle.Text = text
TextboxTitle.TextColor3 = Color3.fromRGB(225, 225, 225)
TextboxTitle.TextSize = 11.000
TextboxTitle.TextXAlignment = Enum.TextXAlignment.Left
Textbox.Name = "Textbox"
Textbox.Parent = Textboxx
Textbox.BackgroundColor3 = Color3.fromRGB(30, 28, 39)
Textbox.Position = UDim2.new(0, 310, 0, 5)
Textbox.Size = UDim2.new(0, 140, 0, 20)
Textbox.Font = Enum.Font.Gotham
Textbox.Text = holder
Textbox.TextColor3 = Color3.fromRGB(225, 225, 225)
Textbox.TextSize = 11.000
Textbox.FocusLost:Connect(function()
if #Textbox.Text > 0 then
callback(Textbox.Text)
end
if disappear then
Textbox.Text = ""
else
Textbox.Text = holder
end
end)
TextboxCorner.Name = "TextboxCorner"
TextboxCorner.CornerRadius = UDim.new(0, 5)
TextboxCorner.Parent = Textbox
end
function main:AddDropdown(text,table,callback)
local Dropdown = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local DropButton = Instance.new("TextButton")
local Droptitle = Instance.new("TextLabel")
local DropScroll = Instance.new("ScrollingFrame")
local DropdownList = Instance.new("UIListLayout")
local DropdownPadding = Instance.new("UIPadding")
local DropImage = Instance.new("ImageLabel")
Dropdown.Name = "Dropdown"
Dropdown.Parent = ScrollTab
Dropdown.Active = true
Dropdown.BackgroundColor3 = Color3.fromRGB(50, 48, 59)
Dropdown.ClipsDescendants = true
Dropdown.Size = UDim2.new(0, 455, 0, 30)
UICorner.CornerRadius = UDim.new(0, 5)
UICorner.Parent = Dropdown
DropButton.Name = "DropButton"
DropButton.Parent = Dropdown
DropButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
DropButton.BackgroundTransparency = 1.000
DropButton.Size = UDim2.new(0, 455, 0, 30)
DropButton.Font = Enum.Font.SourceSans
DropButton.Text = ""
DropButton.TextColor3 = Color3.fromRGB(0, 0, 0)
DropButton.TextSize = 14.000
Droptitle.Name = "Droptitle"
Droptitle.Parent = Dropdown
Droptitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Droptitle.BackgroundTransparency = 1.000
Droptitle.Position = UDim2.new(0.0281690136, 0, 0, 0)
Droptitle.Size = UDim2.new(0, 410, 0, 30)
Droptitle.Font = Enum.Font.Gotham
Droptitle.Text = text.." : "
Droptitle.TextColor3 = Color3.fromRGB(225, 225, 225)
Droptitle.TextSize = 11.000
Droptitle.TextXAlignment = Enum.TextXAlignment.Left
DropImage.Name = "DropImage"
DropImage.Parent = Dropdown
DropImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
DropImage.BackgroundTransparency = 1.000
DropImage.Position = UDim2.new(0, 425, 0, 5)
DropImage.Rotation = 0
DropImage.Size = UDim2.new(0, 20, 0, 20)
DropImage.Image = "rbxassetid://5012539403"
DropScroll.Name = "DropScroll"
DropScroll.Parent = Droptitle
DropScroll.Active = true
DropScroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
DropScroll.BackgroundTransparency = 1.000
DropScroll.BorderSizePixel = 0
DropScroll.Position = UDim2.new(-0.0317460336, 0, 1, 0)
DropScroll.Size = UDim2.new(0, 455, 0, 70)
DropScroll.CanvasSize = UDim2.new(0, 0, 0, 2)
DropScroll.ScrollBarThickness = 2
DropdownList.Name = "DropdownList"
DropdownList.Parent = DropScroll
DropdownList.SortOrder = Enum.SortOrder.LayoutOrder
DropdownList.Padding = UDim.new(0, 5)
DropdownPadding.Name = "DropdownPadding"
DropdownPadding.Parent = DropScroll
DropdownPadding.PaddingTop = UDim.new(0, 5)
local isdropping = false
for i,v in next,table do
local DropButton2 = Instance.new("TextButton")
DropButton2.Name = "DropButton2"
DropButton2.Parent = DropScroll
DropButton2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
DropButton2.BackgroundTransparency = 1.000
DropButton2.Size = UDim2.new(0, 455, 0, 30)
DropButton2.AutoButtonColor = false
DropButton2.Font = Enum.Font.Gotham
DropButton2.TextColor3 = Color3.fromRGB(225, 225, 225)
DropButton2.TextSize = 11.000
DropButton2.Text = tostring(v)
DropButton2.MouseEnter:Connect(function()
TweenService:Create(
DropButton2,
TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{TextColor3 = Color3.fromRGB(255,0,0)}
):Play()
end)
DropButton2.MouseLeave:Connect(function()
TweenService:Create(
DropButton2,
TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{TextColor3 = Color3.fromRGB(225, 225, 225)}
):Play()
end)
DropButton2.MouseButton1Click:Connect(function()
TweenService:Create(
Dropdown,
TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{Size = UDim2.new(0, 455, 0, 30)}
):Play()
TweenService:Create(
DropImage,
TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),
{Rotation = 0}
):Play()
Droptitle.Text = text.." : "..tostring(v)
callback(v)
isdropping = not isdropping
DropScroll.CanvasSize = UDim2.new(0,0,0,DropdownList.AbsoluteContentSize.Y + 10)
end)
end
DropButton.MouseButton1Click:Connect(function()
if isdropping == false then
isdropping = true
TweenService:Create(
Dropdown,
TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{Size = UDim2.new(0, 455, 0, 100)}
):Play()
TweenService:Create(
DropImage,
TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{Rotation = -180}
):Play()
DropScroll.CanvasSize = UDim2.new(0,0,0,DropdownList.AbsoluteContentSize.Y + 10)
else
isdropping = false
TweenService:Create(
Dropdown,
TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{Size = UDim2.new(0, 455, 0, 30)}
):Play()
TweenService:Create(
DropImage,
TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{Rotation = 0}
):Play()
DropScroll.CanvasSize = UDim2.new(0,0,0,DropdownList.AbsoluteContentSize.Y + 10)
end
end)
DropScroll.CanvasSize = UDim2.new(0,0,0,DropdownList.AbsoluteContentSize.Y + 10)
local drop = {}
function drop:Clear()
Droptitle.Text = tostring(text).." :"
TweenService:Create(
Dropdown,
TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{Size = UDim2.new(0, 455, 0, 30)}
):Play()
isdropping = false
for i, v in next, DropScroll:GetChildren() do
if v:IsA("TextButton") then
v:Destroy()
end
end
end
function drop:Add(t)
local DropButton2 = Instance.new("TextButton")
DropButton2.Name = "DropButton2"
DropButton2.Parent = DropScroll
DropButton2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
DropButton2.BackgroundTransparency = 1.000
DropButton2.Size = UDim2.new(0, 455, 0, 30)
DropButton2.AutoButtonColor = false
DropButton2.Font = Enum.Font.Gotham
DropButton2.TextColor3 = Color3.fromRGB(225, 225, 225)
DropButton2.TextSize = 11.000
DropButton2.Text = tostring(t)
DropButton2.MouseButton1Click:Connect(function()
TweenService:Create(
Dropdown,
TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{Size = UDim2.new(0, 455, 0, 30)}
):Play()
TweenService:Create(
DropImage,
TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),
{Rotation = 0}
):Play()
Droptitle.Text = text.." : "..tostring(t)
callback(t)
isdropping = not isdropping
DropScroll.CanvasSize = UDim2.new(0,0,0,DropdownList.AbsoluteContentSize.Y + 10)
end)
end
return drop
end
function main:AddSlider(text,min,max,set,callback)
set = (math.clamp(set,min,max))
if set > max then set = max end
local Slider = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local SliderTitle = Instance.new("TextLabel")
local SliderValue = Instance.new("TextLabel")
local SliderButton = Instance.new("TextButton")
local Bar1 = Instance.new("Frame")
local Bar = Instance.new("Frame")
local UICorner_2 = Instance.new("UICorner")
local CircleBar = Instance.new("Frame")
local UICorner_3 = Instance.new("UICorner")
local UICorner_4 = Instance.new("UICorner")
Slider.Name = "Slider"
Slider.Parent = ScrollTab
Slider.BackgroundColor3 = Color3.fromRGB(50, 48, 59)
Slider.Size = UDim2.new(0, 455, 0, 40)
UICorner.CornerRadius = UDim.new(0, 5)
UICorner.Parent = Slider
SliderTitle.Name = "SliderTitle"
SliderTitle.Parent = Slider
SliderTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
SliderTitle.BackgroundTransparency = 1.000
SliderTitle.Position = UDim2.new(0.0283286124, 0, 0, 0)
SliderTitle.Size = UDim2.new(0, 290, 0, 20)
SliderTitle.Font = Enum.Font.Gotham
SliderTitle.Text = text
SliderTitle.TextColor3 = Color3.fromRGB(225, 225, 225)
SliderTitle.TextSize = 11.000
SliderTitle.TextXAlignment = Enum.TextXAlignment.Left
SliderValue.Name = "SliderValue"
SliderValue.Parent = Slider
SliderValue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
SliderValue.BackgroundTransparency = 1.000
SliderValue.Position = UDim2.new(0.887778878, 0, 0, 0)
SliderValue.Size = UDim2.new(0, 40, 0, 20)
SliderValue.Font = Enum.Font.Gotham
SliderValue.Text = tostring(set and math.floor( (set / max) * (max - min) + min) or 0)
SliderValue.TextColor3 = Color3.fromRGB(225, 225, 225)
SliderValue.TextSize = 11.000
SliderButton.Name = "SliderButton"
SliderButton.Parent = Slider
SliderButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
SliderButton.BackgroundTransparency = 1.000
SliderButton.Position = UDim2.new(0, 10, 0, 25)
SliderButton.Size = UDim2.new(0, 435, 0, 5)
SliderButton.AutoButtonColor = false
SliderButton.Font = Enum.Font.SourceSans
SliderButton.Text = ""
SliderButton.TextColor3 = Color3.fromRGB(0, 0, 0)
SliderButton.TextSize = 14.000
Bar1.Name = "Bar1"
Bar1.Parent = SliderButton
Bar1.BackgroundColor3 = Color3.fromRGB(30, 28, 39)
Bar1.Size = UDim2.new(0, 435, 0, 5)
Bar.Name = "Bar"
Bar.Parent = Bar1
Bar.BackgroundColor3 = Color3.fromRGB(255,0,0)
Bar.Size = UDim2.new(set/max, 0, 0, 5)
UICorner_2.CornerRadius = UDim.new(0, 100)
UICorner_2.Parent = Bar
CircleBar.Name = "CircleBar"
CircleBar.Parent = Bar
CircleBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
CircleBar.Position = UDim2.new(1, -2, 0, -2)
CircleBar.AnchorPoint = Vector2.new(0, 0.1)
CircleBar.Size = UDim2.new(0, 10, 0, 10)
UICorner_3.CornerRadius = UDim.new(0, 100)
UICorner_3.Parent = CircleBar
UICorner_4.CornerRadius = UDim.new(0, 100)
UICorner_4.Parent = Bar1
local mouse = game.Players.LocalPlayer:GetMouse()
local uis = game:GetService("UserInputService")
if Value == nil then
Value = set
pcall(function()
callback(Value)
end)
end
SliderButton.MouseButton1Down:Connect(function()
Value = math.floor((((tonumber(max) - tonumber(min)) / 435) * Bar.AbsoluteSize.X) + tonumber(min)) or 0
pcall(function()
callback(Value)
end)
Bar.Size = UDim2.new(0, math.clamp(mouse.X - Bar.AbsolutePosition.X, 0, 435), 0, 5)
CircleBar.Position = UDim2.new(0, math.clamp(mouse.X - Bar.AbsolutePosition.X - 2, 0, 425), 0, -2)
moveconnection = mouse.Move:Connect(function()
SliderValue.Text = Value
Value = math.floor((((tonumber(max) - tonumber(min)) / 435) * Bar.AbsoluteSize.X) + tonumber(min))
pcall(function()
callback(Value)
end)
Bar.Size = UDim2.new(0, math.clamp(mouse.X - Bar.AbsolutePosition.X, 0, 435), 0, 5)
CircleBar.Position = UDim2.new(0, math.clamp(mouse.X - Bar.AbsolutePosition.X - 2, 0, 425), 0, -2)
end)
releaseconnection = uis.InputEnded:Connect(function(Mouse)
if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
Value = math.floor((((tonumber(max) - tonumber(min)) / 435) * Bar.AbsoluteSize.X) + tonumber(min))
pcall(function()
callback(Value)
end)
Bar.Size = UDim2.new(0, math.clamp(mouse.X - Bar.AbsolutePosition.X, 0, 435), 0, 5)
CircleBar.Position = UDim2.new(0, math.clamp(mouse.X - Bar.AbsolutePosition.X - 2, 0, 425), 0, -2)
moveconnection:Disconnect()
releaseconnection:Disconnect()
end
end)
end)
releaseconnection = uis.InputEnded:Connect(function(Mouse)
if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
Value = math.floor((((tonumber(max) - tonumber(min)) / 435) * Bar.AbsoluteSize.X) + tonumber(min))
SliderValue.Text = Value
end
end)
end
function main:AddSeperator(text)
local Seperator = Instance.new("Frame")
local Sep1 = Instance.new("Frame")
local SepLabel = Instance.new("TextLabel")
local Sep2 = Instance.new("Frame")
Seperator.Name = "Seperator"
Seperator.Parent = ScrollTab
Seperator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Seperator.BackgroundTransparency = 1.000
Seperator.ClipsDescendants = true
Seperator.Size = UDim2.new(0, 455, 0, 20)
Sep1.Name = "Sep1"
Sep1.Parent = Seperator
Sep1.BackgroundColor3 = Color3.fromRGB(255,0,0)
Sep1.BorderSizePixel = 0
Sep1.Position = UDim2.new(0, 0, 0, 10)
Sep1.Size = UDim2.new(0, 150, 0, 1)
SepLabel.Name = "SepLabel"
SepLabel.Parent = Seperator
SepLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
SepLabel.BackgroundTransparency = 1.000
SepLabel.Position = UDim2.new(0, 95, 0, 0)
SepLabel.Size = UDim2.new(0, 255, 0, 20)
SepLabel.Font = Enum.Font.Gotham
SepLabel.Text = text
SepLabel.TextColor3 = Color3.fromRGB(225,225,225)
SepLabel.TextSize = 11.000
Sep2.Name = "Sep2"
Sep2.Parent = Seperator
Sep2.BackgroundColor3 = Color3.fromRGB(255,0,0)
Sep2.BorderSizePixel = 0
Sep2.Position = UDim2.new(0, 305, 0, 10)
Sep2.Size = UDim2.new(0, 150, 0, 1)
end
function main:AddLine()
local Line = Instance.new("Frame")
local Linee = Instance.new("Frame")
Line.Name = "Line"
Line.Parent = ScrollTab
Line.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Line.BackgroundTransparency = 1.000
Line.ClipsDescendants = true
Line.Size = UDim2.new(0, 455, 0, 20)
Linee.Name = "Linee"
Linee.Parent = Line
Linee.BackgroundColor3 = Color3.fromRGB(255,0,0)
Linee.BorderSizePixel = 0
Linee.Position = UDim2.new(0, 0, 0, 10)
Linee.Size = UDim2.new(0, 455, 0, 1)
end
function main:AddLabel(text)
local Label = Instance.new("TextLabel")
local PaddingLabel = Instance.new("UIPadding")
local labell = {}
Label.Name = "Label"
Label.Parent = ScrollTab
Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Label.BackgroundTransparency = 1.000
Label.Size = UDim2.new(0, 455, 0, 20)
Label.Font = Enum.Font.Gotham
Label.TextColor3 = Color3.fromRGB(225, 225, 225)
Label.TextSize = 11.000
Label.Text = text
Label.TextXAlignment = Enum.TextXAlignment.Left
PaddingLabel.PaddingLeft = UDim.new(0,10)
PaddingLabel.Parent = Label
PaddingLabel.Name = "PaddingLabel"
function labell:Set(newtext)
Label.Text = newtext
end
return labell
end
return main
end
return uitab
end
--------------------------------------------------------------------
if game.PlaceId == 2753915549 then
World1 = true
elseif game.PlaceId == 4442272183 then
World2 = true
elseif game.PlaceId == 7449423635 then
World3 = true
end
function CheckQuest()
MyLevel = game:GetService("Players").LocalPlayer.Data.Level.Value
if World1 then
if MyLevel == 1 or MyLevel <= 9 then