forked from weakhoes/Roblox-UI-Libs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxsx Lib Source.lua
3578 lines (3113 loc) · 160 KB
/
xsx Lib Source.lua
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
--[[
UI lib made by bungie#0001
- Please do not use this without permission, I am working really hard on this UI to make it perfect and do not have a big
problem with other people using it, please just make sure you message me and ask me before using.
]]
-- / Locals
local Workspace = game:GetService("Workspace")
local Player = game:GetService("Players").LocalPlayer
local Mouse = Player:GetMouse()
-- / Services
local UserInputService = game:GetService("UserInputService")
local TextService = game:GetService("TextService")
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")
local CoreGuiService = game:GetService("CoreGui")
local ContentService = game:GetService("ContentProvider")
local TeleportService = game:GetService("TeleportService")
-- / Tween table & function
local TweenTable = {
Default = {
TweenInfo.new(0.17, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
}
}
local CreateTween = function(name, speed, style, direction, loop, reverse, delay)
name = name
speed = speed or 0.17
style = style or Enum.EasingStyle.Sine
direction = direction or Enum.EasingDirection.InOut
loop = loop or 0
reverse = reverse or false
delay = delay or 0
TweenTable[name] = TweenInfo.new(speed, style, direction, loop, reverse, delay)
end
-- / Dragging
local drag = function(obj, latency)
obj = obj
latency = latency or 0.06
toggled = nil
input = nil
start = nil
function updateInput(input)
local Delta = input.Position - start
local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
TweenService:Create(obj, TweenInfo.new(latency), {Position = Position}):Play()
end
obj.InputBegan:Connect(function(inp)
if (inp.UserInputType == Enum.UserInputType.MouseButton1) then
toggled = true
start = inp.Position
startPos = obj.Position
inp.Changed:Connect(function()
if (inp.UserInputState == Enum.UserInputState.End) then
toggled = false
end
end)
end
end)
obj.InputChanged:Connect(function(inp)
if (inp.UserInputType == Enum.UserInputType.MouseMovement) then
input = inp
end
end)
UserInputService.InputChanged:Connect(function(inp)
if (inp == input and toggled) then
updateInput(inp)
end
end)
end
local library = {
version = "2.0.2",
title = title or "xsx " .. tostring(math.random(1,366)),
fps = 0,
rank = "private"
}
coroutine.wrap(function()
RunService.RenderStepped:Connect(function(v)
library.fps = math.round(1/v)
end)
end)()
function library:RoundNumber(int, float)
return tonumber(string.format("%." .. (int or 0) .. "f", float))
end
function library:GetUsername()
return Player.Name
end
function library:CheckIfLoaded()
if game:IsLoaded() then
return true
else
return false
end
end
function library:GetUserId()
return Player.UserId
end
function library:GetPlaceId()
return game.PlaceId
end
function library:GetJobId()
return game.JobId
end
function library:Rejoin()
TeleportService:TeleportToPlaceInstance(library:GetPlaceId(), library:GetJobId(), library:GetUserId())
end
function library:Copy(input) -- only works with synapse
if syn then
syn.write_clipboard(input)
end
end
function library:GetDay(type)
if type == "word" then -- day in a full word
return os.date("%A")
elseif type == "short" then -- day in a shortened word
return os.date("%a")
elseif type == "month" then -- day of the month in digits
return os.date("%d")
elseif type == "year" then -- day of the year in digits
return os.date("%j")
end
end
function library:GetTime(type)
if type == "24h" then -- time using a 24 hour clock
return os.date("%H")
elseif type == "12h" then -- time using a 12 hour clock
return os.date("%I")
elseif type == "minute" then -- time in minutes
return os.date("%M")
elseif type == "half" then -- what part of the day it is (AM or PM)
return os.date("%p")
elseif type == "second" then -- time in seconds
return os.date("%S")
elseif type == "full" then -- full time
return os.date("%X")
elseif type == "ISO" then -- ISO / UTC ( 1min = 1, 1hour = 100)
return os.date("%z")
elseif type == "zone" then -- time zone
return os.date("%Z")
end
end
function library:GetMonth(type)
if type == "word" then -- full month name
return os.date("%B")
elseif type == "short" then -- month in shortened word
return os.date("%b")
elseif type == "digit" then -- the months digit
return os.date("%m")
end
end
function library:GetWeek(type)
if type == "year_S" then -- the number of the week in the current year (sunday first day)
return os.date("%U")
elseif type == "day" then -- the week day
return os.date("%w")
elseif type == "year_M" then -- the number of the week in the current year (monday first day)
return os.date("%W")
end
end
function library:GetYear(type)
if type == "digits" then -- the second 2 digits of the year
return os.date("%y")
elseif type == "full" then -- the full year
return os.date("%Y")
end
end
function library:UnlockFps(new) -- syn only
if syn then
setfpscap(new)
end
end
function library:Watermark(text)
for i,v in pairs(CoreGuiService:GetChildren()) do
if v.Name == "watermark" then
v:Destroy()
end
end
tetx = text or "xsx v2"
local watermark = Instance.new("ScreenGui")
local watermarkPadding = Instance.new("UIPadding")
local watermarkLayout = Instance.new("UIListLayout")
local edge = Instance.new("Frame")
local edgeCorner = Instance.new("UICorner")
local background = Instance.new("Frame")
local barFolder = Instance.new("Folder")
local bar = Instance.new("Frame")
local barCorner = Instance.new("UICorner")
local barLayout = Instance.new("UIListLayout")
local backgroundGradient = Instance.new("UIGradient")
local backgroundCorner = Instance.new("UICorner")
local waterText = Instance.new("TextLabel")
local waterPadding = Instance.new("UIPadding")
local backgroundLayout = Instance.new("UIListLayout")
watermark.Name = "watermark"
watermark.Parent = CoreGuiService
watermark.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
watermarkLayout.Name = "watermarkLayout"
watermarkLayout.Parent = watermark
watermarkLayout.FillDirection = Enum.FillDirection.Horizontal
watermarkLayout.SortOrder = Enum.SortOrder.LayoutOrder
watermarkLayout.VerticalAlignment = Enum.VerticalAlignment.Bottom
watermarkLayout.Padding = UDim.new(0, 4)
watermarkPadding.Name = "watermarkPadding"
watermarkPadding.Parent = watermark
watermarkPadding.PaddingBottom = UDim.new(0, 6)
watermarkPadding.PaddingLeft = UDim.new(0, 6)
edge.Name = "edge"
edge.Parent = watermark
edge.AnchorPoint = Vector2.new(0.5, 0.5)
edge.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
edge.Position = UDim2.new(0.5, 0, -0.03, 0)
edge.Size = UDim2.new(0, 0, 0, 26)
edge.BackgroundTransparency = 1
edgeCorner.CornerRadius = UDim.new(0, 2)
edgeCorner.Name = "edgeCorner"
edgeCorner.Parent = edge
background.Name = "background"
background.Parent = edge
background.AnchorPoint = Vector2.new(0.5, 0.5)
background.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
background.BackgroundTransparency = 1
background.ClipsDescendants = true
background.Position = UDim2.new(0.5, 0, 0.5, 0)
background.Size = UDim2.new(0, 0, 0, 24)
barFolder.Name = "barFolder"
barFolder.Parent = background
bar.Name = "bar"
bar.Parent = barFolder
bar.BackgroundColor3 = Color3.fromRGB(159, 115, 255)
bar.BackgroundTransparency = 0
bar.Size = UDim2.new(0, 0, 0, 1)
barCorner.CornerRadius = UDim.new(0, 2)
barCorner.Name = "barCorner"
barCorner.Parent = bar
barLayout.Name = "barLayout"
barLayout.Parent = barFolder
barLayout.SortOrder = Enum.SortOrder.LayoutOrder
backgroundGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(34, 34, 34)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(28, 28, 28))}
backgroundGradient.Rotation = 90
backgroundGradient.Name = "backgroundGradient"
backgroundGradient.Parent = background
backgroundCorner.CornerRadius = UDim.new(0, 2)
backgroundCorner.Name = "backgroundCorner"
backgroundCorner.Parent = background
waterText.Name = "notifText"
waterText.Parent = background
waterText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
waterText.BackgroundTransparency = 1.000
waterText.Position = UDim2.new(0, 0, -0.0416666679, 0)
waterText.Size = UDim2.new(0, 0, 0, 24)
waterText.Font = Enum.Font.Code
waterText.Text = text
waterText.TextColor3 = Color3.fromRGB(198, 198, 198)
waterText.TextTransparency = 1
waterText.TextSize = 14.000
waterText.RichText = true
local NewSize = TextService:GetTextSize(waterText.Text, waterText.TextSize, waterText.Font, Vector2.new(math.huge, math.huge))
waterText.Size = UDim2.new(0, NewSize.X + 8, 0, 24)
waterPadding.Name = "notifPadding"
waterPadding.Parent = waterText
waterPadding.PaddingBottom = UDim.new(0, 4)
waterPadding.PaddingLeft = UDim.new(0, 4)
waterPadding.PaddingRight = UDim.new(0, 4)
waterPadding.PaddingTop = UDim.new(0, 4)
backgroundLayout.Name = "backgroundLayout"
backgroundLayout.Parent = background
backgroundLayout.SortOrder = Enum.SortOrder.LayoutOrder
backgroundLayout.VerticalAlignment = Enum.VerticalAlignment.Center
CreateTween("wm", 0.24)
CreateTween("wm_2", 0.04)
coroutine.wrap(function()
TweenService:Create(edge, TweenTable["wm"], {BackgroundTransparency = 0}):Play()
TweenService:Create(edge, TweenTable["wm"], {Size = UDim2.new(0, NewSize.x + 10, 0, 26)}):Play()
TweenService:Create(background, TweenTable["wm"], {BackgroundTransparency = 0}):Play()
TweenService:Create(background, TweenTable["wm"], {Size = UDim2.new(0, NewSize.x + 8, 0, 24)}):Play()
wait(.2)
TweenService:Create(bar, TweenTable["wm"], {Size = UDim2.new(0, NewSize.x + 8, 0, 1)}):Play()
wait(.1)
TweenService:Create(waterText, TweenTable["wm"], {TextTransparency = 0}):Play()
end)()
local WatermarkFunctions = {}
function WatermarkFunctions:AddWatermark(text)
tetx = text or "xsx v2"
local edge = Instance.new("Frame")
local edgeCorner = Instance.new("UICorner")
local background = Instance.new("Frame")
local barFolder = Instance.new("Folder")
local bar = Instance.new("Frame")
local barCorner = Instance.new("UICorner")
local barLayout = Instance.new("UIListLayout")
local backgroundGradient = Instance.new("UIGradient")
local backgroundCorner = Instance.new("UICorner")
local waterText = Instance.new("TextLabel")
local waterPadding = Instance.new("UIPadding")
local backgroundLayout = Instance.new("UIListLayout")
edge.Name = "edge"
edge.Parent = watermark
edge.AnchorPoint = Vector2.new(0.5, 0.5)
edge.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
edge.Position = UDim2.new(0.5, 0, -0.03, 0)
edge.Size = UDim2.new(0, 0, 0, 26)
edge.BackgroundTransparency = 1
edgeCorner.CornerRadius = UDim.new(0, 2)
edgeCorner.Name = "edgeCorner"
edgeCorner.Parent = edge
background.Name = "background"
background.Parent = edge
background.AnchorPoint = Vector2.new(0.5, 0.5)
background.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
background.BackgroundTransparency = 1
background.ClipsDescendants = true
background.Position = UDim2.new(0.5, 0, 0.5, 0)
background.Size = UDim2.new(0, 0, 0, 24)
barFolder.Name = "barFolder"
barFolder.Parent = background
bar.Name = "bar"
bar.Parent = barFolder
bar.BackgroundColor3 = Color3.fromRGB(159, 115, 255)
bar.BackgroundTransparency = 0
bar.Size = UDim2.new(0, 0, 0, 1)
barCorner.CornerRadius = UDim.new(0, 2)
barCorner.Name = "barCorner"
barCorner.Parent = bar
barLayout.Name = "barLayout"
barLayout.Parent = barFolder
barLayout.SortOrder = Enum.SortOrder.LayoutOrder
backgroundGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(34, 34, 34)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(28, 28, 28))}
backgroundGradient.Rotation = 90
backgroundGradient.Name = "backgroundGradient"
backgroundGradient.Parent = background
backgroundCorner.CornerRadius = UDim.new(0, 2)
backgroundCorner.Name = "backgroundCorner"
backgroundCorner.Parent = background
waterText.Name = "notifText"
waterText.Parent = background
waterText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
waterText.BackgroundTransparency = 1.000
waterText.Position = UDim2.new(0, 0, -0.0416666679, 0)
waterText.Size = UDim2.new(0, 0, 0, 24)
waterText.Font = Enum.Font.Code
waterText.Text = text
waterText.TextColor3 = Color3.fromRGB(198, 198, 198)
waterText.TextTransparency = 1
waterText.TextSize = 14.000
waterText.RichText = true
local NewSize = TextService:GetTextSize(waterText.Text, waterText.TextSize, waterText.Font, Vector2.new(math.huge, math.huge))
waterText.Size = UDim2.new(0, NewSize.X + 8, 0, 24)
waterPadding.Name = "notifPadding"
waterPadding.Parent = waterText
waterPadding.PaddingBottom = UDim.new(0, 4)
waterPadding.PaddingLeft = UDim.new(0, 4)
waterPadding.PaddingRight = UDim.new(0, 4)
waterPadding.PaddingTop = UDim.new(0, 4)
backgroundLayout.Name = "backgroundLayout"
backgroundLayout.Parent = background
backgroundLayout.SortOrder = Enum.SortOrder.LayoutOrder
backgroundLayout.VerticalAlignment = Enum.VerticalAlignment.Center
coroutine.wrap(function()
TweenService:Create(edge, TweenTable["wm"], {BackgroundTransparency = 0}):Play()
TweenService:Create(edge, TweenTable["wm"], {Size = UDim2.new(0, NewSize.x + 10, 0, 26)}):Play()
TweenService:Create(background, TweenTable["wm"], {BackgroundTransparency = 0}):Play()
TweenService:Create(background, TweenTable["wm"], {Size = UDim2.new(0, NewSize.x + 8, 0, 24)}):Play()
wait(.2)
TweenService:Create(bar, TweenTable["wm"], {Size = UDim2.new(0, NewSize.x + 8, 0, 1)}):Play()
wait(.1)
TweenService:Create(waterText, TweenTable["wm"], {TextTransparency = 0}):Play()
end)()
local NewWatermarkFunctions = {}
function NewWatermarkFunctions:Hide()
edge.Visible = false
return NewWatermarkFunctions
end
--
function NewWatermarkFunctions:Show()
edge.Visible = true
return NewWatermarkFunctions
end
--
function NewWatermarkFunctions:Text(new)
new = new or text
waterText.Text = new
local NewSize = TextService:GetTextSize(waterText.Text, waterText.TextSize, waterText.Font, Vector2.new(math.huge, math.huge))
waterText.Size = UDim2.new(0, NewSize.X + 8, 0, 24)
coroutine.wrap(function()
TweenService:Create(edge, TweenTable["wm_2"], {Size = UDim2.new(0, NewSize.x + 10, 0, 26)}):Play()
TweenService:Create(background, TweenTable["wm_2"], {Size = UDim2.new(0, NewSize.x + 8, 0, 24)}):Play()
TweenService:Create(bar, TweenTable["wm_2"], {Size = UDim2.new(0, NewSize.x + 8, 0, 1)}):Play()
TweenService:Create(waterText, TweenTable["wm_2"], {Size = UDim2.new(0, NewSize.x + 8, 0, 1)}):Play()
end)()
return NewWatermarkFunctions
end
--
function NewWatermarkFunctions:Remove()
Watermark:Destroy()
return NewWatermarkFunctions
end
return NewWatermarkFunctions
end
function WatermarkFunctions:Hide()
edge.Visible = false
return WatermarkFunctions
end
--
function WatermarkFunctions:Show()
edge.Visible = true
return WatermarkFunctions
end
--
function WatermarkFunctions:Text(new)
new = new or text
waterText.Text = new
local NewSize = TextService:GetTextSize(waterText.Text, waterText.TextSize, waterText.Font, Vector2.new(math.huge, math.huge))
coroutine.wrap(function()
TweenService:Create(edge, TweenTable["wm_2"], {Size = UDim2.new(0, NewSize.x + 10, 0, 26)}):Play()
TweenService:Create(background, TweenTable["wm_2"], {Size = UDim2.new(0, NewSize.x + 8, 0, 24)}):Play()
TweenService:Create(bar, TweenTable["wm_2"], {Size = UDim2.new(0, NewSize.x + 8, 0, 1)}):Play()
TweenService:Create(waterText, TweenTable["wm_2"], {Size = UDim2.new(0, NewSize.x + 8, 0, 1)}):Play()
end)()
return WatermarkFunctions
end
--
function WatermarkFunctions:Remove()
Watermark:Destroy()
return WatermarkFunctions
end
return WatermarkFunctions
end
function library:InitNotifications(text, duration, callback)
for i,v in next, CoreGuiService:GetChildren() do
if v.name == "Notifications" then
v:Destroy()
end
end
local Notifications = Instance.new("ScreenGui")
local notificationsLayout = Instance.new("UIListLayout")
local notificationsPadding = Instance.new("UIPadding")
Notifications.Name = "Notifications"
Notifications.Parent = CoreGuiService
Notifications.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
notificationsLayout.Name = "notificationsLayout"
notificationsLayout.Parent = Notifications
notificationsLayout.SortOrder = Enum.SortOrder.LayoutOrder
notificationsLayout.Padding = UDim.new(0, 4)
notificationsPadding.Name = "notificationsPadding"
notificationsPadding.Parent = Notifications
notificationsPadding.PaddingLeft = UDim.new(0, 6)
notificationsPadding.PaddingTop = UDim.new(0, 18)
local Notification = {}
function Notification:Notify(text, duration, type, callback)
CreateTween("notification_load", 0.2)
text = text or "please wait."
duration = duration or 5
type = type or "notification"
callback = callback or function() end
local edge = Instance.new("Frame")
local edgeCorner = Instance.new("UICorner")
local background = Instance.new("Frame")
local barFolder = Instance.new("Folder")
local bar = Instance.new("Frame")
local barCorner = Instance.new("UICorner")
local barLayout = Instance.new("UIListLayout")
local backgroundGradient = Instance.new("UIGradient")
local backgroundCorner = Instance.new("UICorner")
local notifText = Instance.new("TextLabel")
local notifPadding = Instance.new("UIPadding")
local backgroundLayout = Instance.new("UIListLayout")
edge.Name = "edge"
edge.Parent = Notifications
edge.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
edge.BackgroundTransparency = 1.000
edge.Size = UDim2.new(0, 0, 0, 26)
edgeCorner.CornerRadius = UDim.new(0, 2)
edgeCorner.Name = "edgeCorner"
edgeCorner.Parent = edge
background.Name = "background"
background.Parent = edge
background.AnchorPoint = Vector2.new(0.5, 0.5)
background.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
background.BackgroundTransparency = 1.000
background.ClipsDescendants = true
background.Position = UDim2.new(0.5, 0, 0.5, 0)
background.Size = UDim2.new(0, 0, 0, 24)
barFolder.Name = "barFolder"
barFolder.Parent = background
bar.Name = "bar"
bar.Parent = barFolder
bar.BackgroundColor3 = Color3.fromRGB(159, 115, 255)
bar.BackgroundTransparency = 0.200
bar.Size = UDim2.new(0, 0, 0, 1)
if type == "notification" then
bar.BackgroundColor3 = Color3.fromRGB(159, 115, 255)
elseif type == "alert" then
bar.BackgroundColor3 = Color3.fromRGB(255, 246, 112)
elseif type == "error" then
bar.BackgroundColor3 = Color3.fromRGB(255, 74, 77)
elseif type == "success" then
bar.BackgroundColor3 = Color3.fromRGB(131, 255, 103)
elseif type == "information" then
bar.BackgroundColor3 = Color3.fromRGB(126, 117, 255)
end
barCorner.CornerRadius = UDim.new(0, 2)
barCorner.Name = "barCorner"
barCorner.Parent = bar
barLayout.Name = "barLayout"
barLayout.Parent = barFolder
barLayout.SortOrder = Enum.SortOrder.LayoutOrder
backgroundGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(34, 34, 34)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(28, 28, 28))}
backgroundGradient.Rotation = 90
backgroundGradient.Name = "backgroundGradient"
backgroundGradient.Parent = background
backgroundCorner.CornerRadius = UDim.new(0, 2)
backgroundCorner.Name = "backgroundCorner"
backgroundCorner.Parent = background
notifText.Name = "notifText"
notifText.Parent = background
notifText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
notifText.BackgroundTransparency = 1.000
notifText.Size = UDim2.new(0, 230, 0, 26)
notifText.Font = Enum.Font.Code
notifText.Text = text
notifText.TextColor3 = Color3.fromRGB(198, 198, 198)
notifText.TextSize = 14.000
notifText.TextTransparency = 1.000
notifText.TextXAlignment = Enum.TextXAlignment.Left
notifText.RichText = true
notifPadding.Name = "notifPadding"
notifPadding.Parent = notifText
notifPadding.PaddingBottom = UDim.new(0, 4)
notifPadding.PaddingLeft = UDim.new(0, 4)
notifPadding.PaddingRight = UDim.new(0, 4)
notifPadding.PaddingTop = UDim.new(0, 4)
backgroundLayout.Name = "backgroundLayout"
backgroundLayout.Parent = background
backgroundLayout.SortOrder = Enum.SortOrder.LayoutOrder
backgroundLayout.VerticalAlignment = Enum.VerticalAlignment.Center
local NewSize = TextService:GetTextSize(notifText.Text, notifText.TextSize, notifText.Font, Vector2.new(math.huge, math.huge))
CreateTween("notification_wait", duration, Enum.EasingStyle.Quad)
local IsRunning = false
coroutine.wrap(function()
IsRunning = true
TweenService:Create(edge, TweenTable["notification_load"], {BackgroundTransparency = 0}):Play()
TweenService:Create(background, TweenTable["notification_load"], {BackgroundTransparency = 0}):Play()
TweenService:Create(notifText, TweenTable["notification_load"], {TextTransparency = 0}):Play()
TweenService:Create(edge, TweenTable["notification_load"], {Size = UDim2.new(0, NewSize.X + 10, 0, 26)}):Play()
TweenService:Create(background, TweenTable["notification_load"], {Size = UDim2.new(0, NewSize.X + 8, 0, 24)}):Play()
TweenService:Create(notifText, TweenTable["notification_load"], {Size = UDim2.new(0, NewSize.X + 8, 0, 24)}):Play()
wait()
TweenService:Create(bar, TweenTable["notification_wait"], {Size = UDim2.new(0, NewSize.X + 8, 0, 1)}):Play()
repeat wait() until bar.Size == UDim2.new(0, NewSize.X + 8, 0, 1)
IsRunning = false
TweenService:Create(edge, TweenTable["notification_load"], {BackgroundTransparency = 1}):Play()
TweenService:Create(background, TweenTable["notification_load"], {BackgroundTransparency = 1}):Play()
TweenService:Create(notifText, TweenTable["notification_load"], {TextTransparency = 1}):Play()
TweenService:Create(bar, TweenTable["notification_load"], {BackgroundTransparency = 1}):Play()
TweenService:Create(edge, TweenTable["notification_load"], {Size = UDim2.new(0, 0, 0, 26)}):Play()
TweenService:Create(background, TweenTable["notification_load"], {Size = UDim2.new(0, 0, 0, 24)}):Play()
TweenService:Create(notifText, TweenTable["notification_load"], {Size = UDim2.new(0, 0, 0, 24)}):Play()
TweenService:Create(bar, TweenTable["notification_load"], {Size = UDim2.new(0, 0, 0, 1)}):Play()
wait(.2)
edge:Destroy()
end)()
CreateTween("notification_reset", 0.4)
local NotificationFunctions = {}
function NotificationFunctions:Text(new)
new = new or text
notifText.Text = new
NewSize = TextService:GetTextSize(notifText.Text, notifText.TextSize, notifText.Font, Vector2.new(math.huge, math.huge))
local NewSize_2 = NewSize
if IsRunning then
TweenService:Create(edge, TweenTable["notification_load"], {Size = UDim2.new(0, NewSize.X + 10, 0, 26)}):Play()
TweenService:Create(background, TweenTable["notification_load"], {Size = UDim2.new(0, NewSize.X + 8, 0, 24)}):Play()
TweenService:Create(notifText, TweenTable["notification_load"], {Size = UDim2.new(0, NewSize.X + 8, 0, 24)}):Play()
wait()
TweenService:Create(bar, TweenTable["notification_reset"], {Size = UDim2.new(0, 0, 0, 1)}):Play()
wait(.4)
TweenService:Create(bar, TweenTable["notification_wait"], {Size = UDim2.new(0, NewSize.X + 8, 0, 1)}):Play()
end
return NotificationFunctions
end
return NotificationFunctions
end
return Notification
end
function library:Introduction()
for _,v in next, CoreGuiService:GetChildren() do
if v.Name == "screen" then
v:Destroy()
end
end
CreateTween("introduction",0.175)
local introduction = Instance.new("ScreenGui")
local edge = Instance.new("Frame")
local edgeCorner = Instance.new("UICorner")
local background = Instance.new("Frame")
local backgroundGradient = Instance.new("UIGradient")
local backgroundCorner = Instance.new("UICorner")
local barFolder = Instance.new("Folder")
local bar = Instance.new("Frame")
local barCorner = Instance.new("UICorner")
local barLayout = Instance.new("UIListLayout")
local xsxLogo = Instance.new("ImageLabel")
local hashLogo = Instance.new("ImageLabel")
local xsx = Instance.new("TextLabel")
local text = Instance.new("TextLabel")
local pageLayout = Instance.new("UIListLayout")
introduction.Name = "introduction"
introduction.Parent = CoreGuiService
introduction.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
edge.Name = "edge"
edge.Parent = introduction
edge.AnchorPoint = Vector2.new(0.5, 0.5)
edge.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
edge.BackgroundTransparency = 1
edge.Position = UDim2.new(0.511773348, 0, 0.5, 0)
edge.Size = UDim2.new(0, 300, 0, 308)
edgeCorner.CornerRadius = UDim.new(0, 2)
edgeCorner.Name = "edgeCorner"
edgeCorner.Parent = edge
background.Name = "background"
background.Parent = edge
background.AnchorPoint = Vector2.new(0.5, 0.5)
background.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
background.BackgroundTransparency = 1
background.ClipsDescendants = true
background.Position = UDim2.new(0.5, 0, 0.5, 0)
background.Size = UDim2.new(0, 298, 0, 306)
backgroundGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(34, 34, 34)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(28, 28, 28))}
backgroundGradient.Rotation = 90
backgroundGradient.Name = "backgroundGradient"
backgroundGradient.Parent = background
backgroundCorner.CornerRadius = UDim.new(0, 2)
backgroundCorner.Name = "backgroundCorner"
backgroundCorner.Parent = background
barFolder.Name = "barFolder"
barFolder.Parent = background
bar.Name = "bar"
bar.Parent = barFolder
bar.BackgroundColor3 = Color3.fromRGB(159, 115, 255)
bar.BackgroundTransparency = 0.200
bar.Size = UDim2.new(0, 0, 0, 1)
barCorner.CornerRadius = UDim.new(0, 2)
barCorner.Name = "barCorner"
barCorner.Parent = bar
barLayout.Name = "barLayout"
barLayout.Parent = barFolder
barLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
barLayout.SortOrder = Enum.SortOrder.LayoutOrder
xsxLogo.Name = "xsxLogo"
xsxLogo.Parent = background
xsxLogo.AnchorPoint = Vector2.new(0.5, 0.5)
xsxLogo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
xsxLogo.BackgroundTransparency = 1.000
xsxLogo.Position = UDim2.new(0.5, 0, 0.5, 0)
xsxLogo.Size = UDim2.new(0, 448, 0, 150)
xsxLogo.Visible = true
xsxLogo.Image = "http://www.roblox.com/asset/?id=9365068051"
xsxLogo.ImageColor3 = Color3.fromRGB(159, 115, 255)
xsxLogo.ImageTransparency = 1
hashLogo.Name = "hashLogo"
hashLogo.Parent = background
hashLogo.AnchorPoint = Vector2.new(0.5, 0.5)
hashLogo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
hashLogo.BackgroundTransparency = 1.000
hashLogo.Position = UDim2.new(0.5, 0, 0.5, 0)
hashLogo.Size = UDim2.new(0, 150, 0, 150)
hashLogo.Visible = true
hashLogo.Image = "http://www.roblox.com/asset/?id=9365069861"
hashLogo.ImageColor3 = Color3.fromRGB(159, 115, 255)
hashLogo.ImageTransparency = 1
xsx.Name = "xsx"
xsx.Parent = background
xsx.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
xsx.BackgroundTransparency = 1.000
xsx.Size = UDim2.new(0, 80, 0, 21)
xsx.Font = Enum.Font.Code
xsx.Text = "powered by xsx"
xsx.TextColor3 = Color3.fromRGB(124, 124, 124)
xsx.TextSize = 10.000
xsx.TextTransparency = 1
text.Name = "text"
text.Parent = background
text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
text.BackgroundTransparency = 1.000
text.Position = UDim2.new(0.912751675, 0, 0, 0)
text.Size = UDim2.new(0, 26, 0, 21)
text.Font = Enum.Font.Code
text.Text = "hash"
text.TextColor3 = Color3.fromRGB(124, 124, 124)
text.TextSize = 10.000
text.TextTransparency = 1
text.RichText = true
pageLayout.Name = "pageLayout"
pageLayout.Parent = introduction
pageLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
pageLayout.SortOrder = Enum.SortOrder.LayoutOrder
pageLayout.VerticalAlignment = Enum.VerticalAlignment.Center
CreateTween("xsxRotation", 0)
local MinusAmount = -16
coroutine.wrap(function()
while wait() do
MinusAmount = MinusAmount + 0.4
TweenService:Create(xsxLogo, TweenTable["xsxRotation"], {Rotation = xsxLogo.Rotation - MinusAmount}):Play()
end
end)()
TweenService:Create(edge, TweenTable["introduction"], {BackgroundTransparency = 0}):Play()
TweenService:Create(background, TweenTable["introduction"], {BackgroundTransparency = 0}):Play()
wait(.2)
TweenService:Create(bar, TweenTable["introduction"], {Size = UDim2.new(0, 298, 0, 1)}):Play()
wait(.2)
TweenService:Create(xsx, TweenTable["introduction"], {TextTransparency = 0}):Play()
TweenService:Create(text, TweenTable["introduction"], {TextTransparency = 0}):Play()
wait(.3)
TweenService:Create(xsxLogo, TweenTable["introduction"], {ImageTransparency = 0}):Play()
wait(2)
TweenService:Create(xsxLogo, TweenTable["introduction"], {ImageTransparency = 1}):Play()
wait(.2)
TweenService:Create(hashLogo, TweenTable["introduction"], {ImageTransparency = 0}):Play()
wait(2)
TweenService:Create(hashLogo, TweenTable["introduction"], {ImageTransparency = 1}):Play()
wait(.1)
TweenService:Create(text, TweenTable["introduction"], {TextTransparency = 1}):Play()
wait(.1)
TweenService:Create(xsx, TweenTable["introduction"], {TextTransparency = 1}):Play()
wait(.1)
TweenService:Create(bar, TweenTable["introduction"], {Size = UDim2.new(0, 0, 0, 1)}):Play()
wait(.1)
TweenService:Create(background, TweenTable["introduction"], {BackgroundTransparency = 1}):Play()
TweenService:Create(edge, TweenTable["introduction"], {BackgroundTransparency = 1}):Play()
wait(.2)
introduction:Destroy()
end
function library:Init(key)
for _,v in next, CoreGuiService:GetChildren() do
if v.Name == "screen" then
v:Destroy()
end
end
local title = library.title
key = key or Enum.KeyCode.RightAlt
local screen = Instance.new("ScreenGui")
local edge = Instance.new("Frame")
local edgeCorner = Instance.new("UICorner")
local background = Instance.new("Frame")
local backgroundCorner = Instance.new("UICorner")
local backgroundGradient = Instance.new("UIGradient")
local headerLabel = Instance.new("TextLabel")
local headerPadding = Instance.new("UIPadding")
local barFolder = Instance.new("Folder")
local bar = Instance.new("Frame")
local barCorner = Instance.new("UICorner")
local barLayout = Instance.new("UIListLayout")
local tabButtonsEdge = Instance.new("Frame")
local tabButtonCorner = Instance.new("UICorner")
local tabButtons = Instance.new("Frame")
local tabButtonCorner_2 = Instance.new("UICorner")
local tabButtonsGradient = Instance.new("UIGradient")
local tabButtonLayout = Instance.new("UIListLayout")
local tabButtonPadding = Instance.new("UIPadding")
local containerEdge = Instance.new("Frame")
local tabButtonCorner_3 = Instance.new("UICorner")
local container = Instance.new("Frame")
local containerCorner = Instance.new("UICorner")
local containerGradient = Instance.new("UIGradient")
screen.Name = "screen"
screen.Parent = CoreGuiService
screen.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
edge.Name = "edge"
edge.Parent = screen
edge.AnchorPoint = Vector2.new(0.5, 0.5)
edge.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
edge.Position = UDim2.new(0.5, 0, 0.5, 0)
edge.Size = UDim2.new(0, 594, 0, 406)
drag(edge, 0.04)
local CanChangeVisibility = true
UserInputService.InputBegan:Connect(function(input)
if CanChangeVisibility and input.KeyCode == key then
edge.Visible = not edge.Visible
end
end)
edgeCorner.CornerRadius = UDim.new(0, 2)
edgeCorner.Name = "edgeCorner"
edgeCorner.Parent = edge
background.Name = "background"
background.Parent = edge
background.AnchorPoint = Vector2.new(0.5, 0.5)
background.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
background.Position = UDim2.new(0.5, 0, 0.5, 0)
background.Size = UDim2.new(0, 592, 0, 404)
background.ClipsDescendants = true
backgroundCorner.CornerRadius = UDim.new(0, 2)
backgroundCorner.Name = "backgroundCorner"
backgroundCorner.Parent = background
backgroundGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(34, 34, 34)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(28, 28, 28))}
backgroundGradient.Rotation = 90
backgroundGradient.Name = "backgroundGradient"
backgroundGradient.Parent = background
headerLabel.Name = "headerLabel"
headerLabel.Parent = background
headerLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
headerLabel.BackgroundTransparency = 1.000
headerLabel.Size = UDim2.new(0, 592, 0, 38)
headerLabel.Font = Enum.Font.Code
headerLabel.Text = title
headerLabel.TextColor3 = Color3.fromRGB(198, 198, 198)
headerLabel.TextSize = 16.000
headerLabel.TextXAlignment = Enum.TextXAlignment.Left
headerLabel.RichText = true
headerPadding.Name = "headerPadding"
headerPadding.Parent = headerLabel
headerPadding.PaddingBottom = UDim.new(0, 6)
headerPadding.PaddingLeft = UDim.new(0, 12)
headerPadding.PaddingRight = UDim.new(0, 6)
headerPadding.PaddingTop = UDim.new(0, 6)
barFolder.Name = "barFolder"
barFolder.Parent = background
bar.Name = "bar"
bar.Parent = barFolder
bar.BackgroundColor3 = Color3.fromRGB(159, 115, 255)
bar.BackgroundTransparency = 0.200
bar.Size = UDim2.new(0, 592, 0, 1)
bar.BorderSizePixel = 0
barCorner.CornerRadius = UDim.new(0, 2)
barCorner.Name = "barCorner"
barCorner.Parent = bar
barLayout.Name = "barLayout"
barLayout.Parent = barFolder
barLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
barLayout.SortOrder = Enum.SortOrder.LayoutOrder
tabButtonsEdge.Name = "tabButtonsEdge"
tabButtonsEdge.Parent = background
tabButtonsEdge.AnchorPoint = Vector2.new(0.5, 0.5)
tabButtonsEdge.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
tabButtonsEdge.Position = UDim2.new(0.1435, 0, 0.536000013, 0)
tabButtonsEdge.Size = UDim2.new(0, 152, 0, 360)
tabButtonCorner.CornerRadius = UDim.new(0, 2)
tabButtonCorner.Name = "tabButtonCorner"
tabButtonCorner.Parent = tabButtonsEdge
tabButtons.Name = "tabButtons"
tabButtons.Parent = tabButtonsEdge
tabButtons.AnchorPoint = Vector2.new(0.5, 0.5)
tabButtons.BackgroundColor3 = Color3.fromRGB(235, 235, 235)
tabButtons.ClipsDescendants = true
tabButtons.Position = UDim2.new(0.5, 0, 0.5, 0)
tabButtons.Size = UDim2.new(0, 150, 0, 358)
tabButtonCorner_2.CornerRadius = UDim.new(0, 2)
tabButtonCorner_2.Name = "tabButtonCorner"
tabButtonCorner_2.Parent = tabButtons
tabButtonsGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(34, 34, 34)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(28, 28, 28))}
tabButtonsGradient.Rotation = 90
tabButtonsGradient.Name = "tabButtonsGradient"
tabButtonsGradient.Parent = tabButtons
tabButtonLayout.Name = "tabButtonLayout"
tabButtonLayout.Parent = tabButtons
tabButtonLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
tabButtonLayout.SortOrder = Enum.SortOrder.LayoutOrder
tabButtonPadding.Name = "tabButtonPadding"
tabButtonPadding.Parent = tabButtons
tabButtonPadding.PaddingBottom = UDim.new(0, 4)
tabButtonPadding.PaddingLeft = UDim.new(0, 4)
tabButtonPadding.PaddingRight = UDim.new(0, 4)
tabButtonPadding.PaddingTop = UDim.new(0, 4)
containerEdge.Name = "containerEdge"
containerEdge.Parent = background
containerEdge.AnchorPoint = Vector2.new(0.5, 0.5)
containerEdge.BackgroundColor3 = Color3.fromRGB(50, 50, 50)