-
Notifications
You must be signed in to change notification settings - Fork 0
/
holoui.lua
3663 lines (3318 loc) · 170 KB
/
holoui.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
local Release = "Version 0.3"
local NotificationDuration = 6.5
local RayfieldFolder = "Holo"
local ConfigurationFolder = RayfieldFolder.."/Configurations"
local ConfigurationExtension = ".rfld"
local RayFieldQuality = {}
local RayfieldLibrary = {
Flags = {},
Theme = {
Default = {
TextFont = "Default", -- Default will use the various font faces used across Rayfield
TextColor = Color3.fromRGB(240, 240, 240),
Background = Color3.fromRGB(25, 25, 25),
Topbar = Color3.fromRGB(34, 34, 34),
Shadow = Color3.fromRGB(20, 20, 20),
NotificationBackground = Color3.fromRGB(20, 20, 20),
NotificationActionsBackground = Color3.fromRGB(230, 230, 230),
TabBackground = Color3.fromRGB(80, 80, 80),
TabStroke = Color3.fromRGB(85, 85, 85),
TabBackgroundSelected = Color3.fromRGB(210, 210, 210),
TabTextColor = Color3.fromRGB(240, 240, 240),
SelectedTabTextColor = Color3.fromRGB(50, 50, 50),
ElementBackground = Color3.fromRGB(35, 35, 35),
ElementBackgroundHover = Color3.fromRGB(40, 40, 40),
SecondaryElementBackground = Color3.fromRGB(25, 25, 25), -- For labels and paragraphs
ElementStroke = Color3.fromRGB(50, 50, 50),
SecondaryElementStroke = Color3.fromRGB(40, 40, 40), -- For labels and paragraphs
SliderBackground = Color3.fromRGB(43, 105, 159),
SliderProgress = Color3.fromRGB(43, 105, 159),
SliderStroke = Color3.fromRGB(48, 119, 177),
ToggleBackground = Color3.fromRGB(30, 30, 30),
ToggleEnabled = Color3.fromRGB(0, 146, 214),
ToggleDisabled = Color3.fromRGB(100, 100, 100),
ToggleEnabledStroke = Color3.fromRGB(0, 170, 255),
ToggleDisabledStroke = Color3.fromRGB(125, 125, 125),
ToggleEnabledOuterStroke = Color3.fromRGB(100, 100, 100),
ToggleDisabledOuterStroke = Color3.fromRGB(65, 65, 65),
InputBackground = Color3.fromRGB(30, 30, 30),
InputStroke = Color3.fromRGB(65, 65, 65),
PlaceholderColor = Color3.fromRGB(178, 178, 178)
},
Light = {
TextFont = "Gotham", -- Default will use the various font faces used across Rayfield
TextColor = Color3.fromRGB(50, 50, 50), -- i need to make all text 240, 240, 240 and base gray on transparency not color to do this
Background = Color3.fromRGB(255, 255, 255),
Topbar = Color3.fromRGB(217, 217, 217),
Shadow = Color3.fromRGB(223, 223, 223),
NotificationBackground = Color3.fromRGB(20, 20, 20),
NotificationActionsBackground = Color3.fromRGB(230, 230, 230),
TabBackground = Color3.fromRGB(220, 220, 220),
TabStroke = Color3.fromRGB(112, 112, 112),
TabBackgroundSelected = Color3.fromRGB(0, 142, 208),
TabTextColor = Color3.fromRGB(240, 240, 240),
SelectedTabTextColor = Color3.fromRGB(50, 50, 50),
ElementBackground = Color3.fromRGB(198, 198, 198),
ElementBackgroundHover = Color3.fromRGB(230, 230, 230),
SecondaryElementBackground = Color3.fromRGB(136, 136, 136), -- For labels and paragraphs
ElementStroke = Color3.fromRGB(180, 199, 97),
SecondaryElementStroke = Color3.fromRGB(40, 40, 40), --For labels and paragraphs
SliderBackground = Color3.fromRGB(31, 159, 71),
SliderProgress = Color3.fromRGB(31, 159, 71),
SliderStroke = Color3.fromRGB(42, 216, 94),
ToggleBackground = Color3.fromRGB(170, 203, 60),
ToggleEnabled = Color3.fromRGB(32, 214, 29),
ToggleDisabled = Color3.fromRGB(100, 22, 23),
ToggleEnabledStroke = Color3.fromRGB(17, 255, 0),
ToggleDisabledStroke = Color3.fromRGB(65, 8, 8),
ToggleEnabledOuterStroke = Color3.fromRGB(0, 170, 0),
ToggleDisabledOuterStroke = Color3.fromRGB(170, 0, 0),
InputBackground = Color3.fromRGB(31, 159, 71),
InputStroke = Color3.fromRGB(19, 65, 31),
PlaceholderColor = Color3.fromRGB(178, 178, 178)
},
}
}
-- Services
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local HttpService = game:GetService("HttpService")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local CoreGui = game:GetService("CoreGui")
local LocalPlayer = game:GetService('Players').LocalPlayer
local TextService = game:GetService("TextService")
-- Interface Management
local Rayfield = game:GetObjects("rbxassetid://11637506633")[1]
Rayfield.Enabled = false
-- Tasks
local spawn = task.spawn
--studio
if game["Run Service"]:IsStudio() then
function gethui() return Rayfield end local http_request = nil local syn = {protect_gui = false,request = false,}local http = nil function writefile(tt,t,ttt)end function isfolder(t)end function makefolder(t)end function isfile(r)end function readfile(t)end
end
pcall(function()
_G.LastRayField.Name = 'Old Arrayfield'
_G.LastRayField.Enabled = false
end)
local ParentObject = function(Gui)
local success, failure = pcall(function()
if get_hidden_gui or gethui then
local hiddenUI = get_hidden_gui or gethui
Gui.Parent = hiddenUI()
elseif (not is_sirhurt_closure) and (syn and syn.protect_gui) then
syn.protect_gui(Gui)
Gui.Parent = CoreGui
elseif CoreGui then
Gui.Parent = CoreGui
end
end)
if not success and failure then
Gui.Parent = LocalPlayer:FindFirstChildWhichIsA("PlayerGui")
end
_G.LastRayField = Rayfield
end
ParentObject(Rayfield)
--Object Variables
local Camera = workspace.CurrentCamera
local Main = Rayfield.Main
local Topbar = Main.Topbar
local Elements = Main.Elements
local LoadingFrame = Main.LoadingFrame
local TopList = Main.TabList
local SideList = Main.SideTabList.Holder
local TabsList = TopList and SideList
local SearchBar = Main.Searchbar
local Filler = SearchBar.CanvasGroup.Filler
local Prompt = Main.Prompt
local NotePrompt = Main.NotePrompt
Rayfield.DisplayOrder = 100
LoadingFrame.Version.Text = Release
--Variables
local request = (syn and syn.request) or (http and http.request) or http_request
local CFileName = nil
local CEnabled = false
local Minimised = false
local Hidden = false
local Debounce = false
local clicked = false
local SearchHided = true
local SideBarClosed = true
local BarType = 'Top'
local Notifications = Rayfield.Notifications
local SelectedTheme = RayfieldLibrary.Theme.Default
function ChangeTheme(ThemeName)
SelectedTheme = RayfieldLibrary.Theme[ThemeName]
for _, obj in ipairs(Rayfield:GetDescendants()) do
if obj.ClassName == "TextLabel" or obj.ClassName == "TextBox" or obj.ClassName == "TextButton" then
if SelectedTheme.TextFont ~= "Default" then
obj.TextColor3 = SelectedTheme.TextColor
obj.Font = SelectedTheme.TextFont
end
end
end
Rayfield.Main.BackgroundColor3 = SelectedTheme.Background
Rayfield.Main.Topbar.BackgroundColor3 = SelectedTheme.Topbar
Rayfield.Main.Topbar.CornerRepair.BackgroundColor3 = SelectedTheme.Topbar
Rayfield.Main.Shadow.Image.ImageColor3 = SelectedTheme.Shadow
Rayfield.Main.Topbar.ChangeSize.ImageColor3 = SelectedTheme.TextColor
Rayfield.Main.Topbar.Hide.ImageColor3 = SelectedTheme.TextColor
Rayfield.Main.Topbar.Theme.ImageColor3 = SelectedTheme.TextColor
for _, TabPage in ipairs(Elements:GetChildren()) do
for _, Element in ipairs(TabPage:GetChildren()) do
if Element.ClassName == "Frame" and Element.Name ~= "Placeholder" and Element.Name ~= "SectionSpacing" and Element.Name ~= "" then
Element.BackgroundColor3 = SelectedTheme.ElementBackground
Element.UIStroke.Color = SelectedTheme.ElementStroke
end
end
end
end
local function AddDraggingFunctionality(DragPoint, Main)
pcall(function()
local Dragging, DragInput, MousePos, FramePos = false,false,false,false
DragPoint.InputBegan:Connect(function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton1 then
Dragging = true
MousePos = Input.Position
FramePos = Main.Position
Input.Changed:Connect(function()
if Input.UserInputState == Enum.UserInputState.End then
Dragging = false
end
end)
end
end)
DragPoint.InputChanged:Connect(function(Input)
if Input.UserInputType == Enum.UserInputType.MouseMovement then
DragInput = Input
end
end)
UserInputService.InputChanged:Connect(function(Input)
if Input == DragInput and Dragging then
local Delta = Input.Position - MousePos
TweenService:Create(Main, TweenInfo.new(0.45, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Position = UDim2.new(FramePos.X.Scale,FramePos.X.Offset + Delta.X, FramePos.Y.Scale, FramePos.Y.Offset + Delta.Y)}):Play()
end
end)
end)
end
local function FadeDescription(Infos)
end
local function PackColor(Color)
return {R = Color.R * 255, G = Color.G * 255, B = Color.B * 255}
end
local function UnpackColor(Color)
return Color3.fromRGB(Color.R, Color.G, Color.B)
end
local function LoadConfiguration(Configuration)
local Data = HttpService:JSONDecode(Configuration)
for FlagName, FlagValue in next, Data do
if RayfieldLibrary.Flags[FlagName] then
spawn(function()
if RayfieldLibrary.Flags[FlagName].Type == "ColorPicker" then
RayfieldLibrary.Flags[FlagName]:Set(UnpackColor(FlagValue))
else
if RayfieldLibrary.Flags[FlagName].CurrentValue or RayfieldLibrary.Flags[FlagName].CurrentKeybind or RayfieldLibrary.Flags[FlagName].CurrentOption or RayfieldLibrary.Flags[FlagName].Color ~= FlagValue then RayfieldLibrary.Flags[FlagName]:Set(FlagValue) end
end
end)
else
RayfieldLibrary:Notify({Title = "Flag Error", Content = "Rayfield was unable to find '"..FlagName.. "'' in the current script"})
end
end
end
local function SaveConfiguration()
if not CEnabled then return end
local Data = {}
for i,v in pairs(RayfieldLibrary.Flags) do
if v.Type == "ColorPicker" then
Data[i] = PackColor(v.Color)
else
Data[i] = v.CurrentValue or v.CurrentKeybind or v.Color or v.CurrentOption
end
end
writefile(ConfigurationFolder .. "/" .. CFileName .. ConfigurationExtension, tostring(HttpService:JSONEncode(Data)))
end
local neon = (function() --Open sourced neon module
local module = {}
do
local function IsNotNaN(x)
return x == x
end
local continued = IsNotNaN(Camera:ScreenPointToRay(0,0).Origin.x)
while not continued do
RunService.RenderStepped:wait()
continued = IsNotNaN(Camera:ScreenPointToRay(0,0).Origin.x)
end
end
local RootParent = Camera
if false == nil then
RootParent = Camera
else
if not false then
RootParent = Camera
else
RootParent = nil
end
end
local binds = {}
local root = Instance.new('Folder', RootParent)
root.Name = 'neon'
local GenUid; do
local id = 0
function GenUid()
id = id + 1
return 'neon::'..tostring(id)
end
end
local DrawQuad; do
local acos, max, pi, sqrt = math.acos, math.max, math.pi, math.sqrt
local sz = 0.2
local function DrawTriangle(v1, v2, v3, p0, p1)
local s1 = (v1 - v2).magnitude
local s2 = (v2 - v3).magnitude
local s3 = (v3 - v1).magnitude
local smax = max(s1, s2, s3)
local A, B, C
if s1 == smax then
A, B, C = v1, v2, v3
elseif s2 == smax then
A, B, C = v2, v3, v1
elseif s3 == smax then
A, B, C = v3, v1, v2
end
local para = ( (B-A).x*(C-A).x + (B-A).y*(C-A).y + (B-A).z*(C-A).z ) / (A-B).magnitude
local perp = sqrt((C-A).magnitude^2 - para*para)
local dif_para = (A - B).magnitude - para
local st = CFrame.new(B, A)
local za = CFrame.Angles(pi/2,0,0)
local cf0 = st
local Top_Look = (cf0 * za).lookVector
local Mid_Point = A + CFrame.new(A, B).LookVector * para
local Needed_Look = CFrame.new(Mid_Point, C).LookVector
local dot = Top_Look.x*Needed_Look.x + Top_Look.y*Needed_Look.y + Top_Look.z*Needed_Look.z
local ac = CFrame.Angles(0, 0, acos(dot))
cf0 = cf0 * ac
if ((cf0 * za).lookVector - Needed_Look).magnitude > 0.01 then
cf0 = cf0 * CFrame.Angles(0, 0, -2*acos(dot))
end
cf0 = cf0 * CFrame.new(0, perp/2, -(dif_para + para/2))
local cf1 = st * ac * CFrame.Angles(0, pi, 0)
if ((cf1 * za).lookVector - Needed_Look).magnitude > 0.01 then
cf1 = cf1 * CFrame.Angles(0, 0, 2*acos(dot))
end
cf1 = cf1 * CFrame.new(0, perp/2, dif_para/2)
if not p0 then
p0 = Instance.new('Part')
p0.FormFactor = 'Custom'
p0.TopSurface = 0
p0.BottomSurface = 0
p0.Anchored = true
p0.CanCollide = false
p0.Material = 'Glass'
p0.Size = Vector3.new(sz, sz, sz)
local mesh = Instance.new('SpecialMesh', p0)
mesh.MeshType = 2
mesh.Name = 'WedgeMesh'
end
p0.WedgeMesh.Scale = Vector3.new(0, perp/sz, para/sz)
p0.CFrame = cf0
if not p1 then
p1 = p0:clone()
end
p1.WedgeMesh.Scale = Vector3.new(0, perp/sz, dif_para/sz)
p1.CFrame = cf1
return p0, p1
end
function DrawQuad(v1, v2, v3, v4, parts)
parts[1], parts[2] = DrawTriangle(v1, v2, v3, parts[1], parts[2])
parts[3], parts[4] = DrawTriangle(v3, v2, v4, parts[3], parts[4])
end
end
function module:BindFrame(frame, properties)
if RootParent == nil then return end
if binds[frame] then
return binds[frame].parts
end
local uid = GenUid()
local parts = {}
local f = Instance.new('Folder', root)
f.Name = frame.Name
local parents = {}
do
local function add(child)
if child:IsA'GuiObject' then
parents[#parents + 1] = child
add(child.Parent)
end
end
add(frame)
end
local function UpdateOrientation(fetchProps)
local zIndex = 1 - 0.05*frame.ZIndex
local tl, br = frame.AbsolutePosition, frame.AbsolutePosition + frame.AbsoluteSize
local tr, bl = Vector2.new(br.x, tl.y), Vector2.new(tl.x, br.y)
do
local rot = 0;
for _, v in ipairs(parents) do
rot = rot + v.Rotation
end
if rot ~= 0 and rot%180 ~= 0 then
local mid = tl:lerp(br, 0.5)
local s, c = math.sin(math.rad(rot)), math.cos(math.rad(rot))
local vec = tl
tl = Vector2.new(c*(tl.x - mid.x) - s*(tl.y - mid.y), s*(tl.x - mid.x) + c*(tl.y - mid.y)) + mid
tr = Vector2.new(c*(tr.x - mid.x) - s*(tr.y - mid.y), s*(tr.x - mid.x) + c*(tr.y - mid.y)) + mid
bl = Vector2.new(c*(bl.x - mid.x) - s*(bl.y - mid.y), s*(bl.x - mid.x) + c*(bl.y - mid.y)) + mid
br = Vector2.new(c*(br.x - mid.x) - s*(br.y - mid.y), s*(br.x - mid.x) + c*(br.y - mid.y)) + mid
end
end
DrawQuad(
Camera:ScreenPointToRay(tl.x, tl.y, zIndex).Origin,
Camera:ScreenPointToRay(tr.x, tr.y, zIndex).Origin,
Camera:ScreenPointToRay(bl.x, bl.y, zIndex).Origin,
Camera:ScreenPointToRay(br.x, br.y, zIndex).Origin,
parts
)
if fetchProps then
for _, pt in pairs(parts) do
pt.Parent = f
end
for propName, propValue in pairs(properties) do
for _, pt in pairs(parts) do
pt[propName] = propValue
end
end
end
end
UpdateOrientation(true)
RunService:BindToRenderStep(uid, 2000, UpdateOrientation)
binds[frame] = {
uid = uid;
parts = parts;
}
return binds[frame].parts
end
function module:Modify(frame, properties)
local parts = module:GetBoundParts(frame)
if parts then
for propName, propValue in pairs(properties) do
for _, pt in pairs(parts) do
pt[propName] = propValue
end
end
end
end
function module:UnbindFrame(frame)
if RootParent == nil then return end
local cb = binds[frame]
if cb then
RunService:UnbindFromRenderStep(cb.uid)
for _, v in pairs(cb.parts) do
v:Destroy()
end
binds[frame] = nil
end
end
function module:HasBinding(frame)
return binds[frame] ~= nil
end
function module:GetBoundParts(frame)
return binds[frame] and binds[frame].parts
end
return module
end)()
function CloseNPrompt()
local Infos= TweenInfo.new(.2,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
TweenService:Create(NotePrompt,Infos,{BackgroundTransparency = 1,Size = UDim2.fromOffset(436,92),Position = UDim2.fromScale(0.5,0.19)}):Play()
TweenService:Create(NotePrompt.UIStroke,Infos,{Transparency = 1}):Play()
TweenService:Create(NotePrompt.Shadow.Image,Infos,{ImageTransparency = 1}):Play()
TweenService:Create(NotePrompt.Close,Infos,{ImageTransparency = .1}):Play()
TweenService:Create(NotePrompt.Icon,Infos,{ImageTransparency = 1}):Play()
TweenService:Create(NotePrompt.Title,Infos,{TextTransparency = 1}):Play()
TweenService:Create(NotePrompt.Description,Infos,{TextTransparency = 1}):Play()
TweenService:Create(NotePrompt.Load,Infos,{TextTransparency = 1,BackgroundTransparency = 1}):Play()
TweenService:Create(NotePrompt.Load.UIStroke,Infos,{Transparency = 1}):Play()
TweenService:Create(NotePrompt.Load.Shadow,Infos,{ImageTransparency = 1}):Play()
wait(0.21)
NotePrompt.Visible = false
end
function qNotePrompt(PromptSettings)
local Infos= TweenInfo.new(.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
NotePrompt.Visible = false
--Setup
NotePrompt.Size = UDim2.fromOffset(436,92)
NotePrompt.Position = UDim2.fromScale(0.5,0.19)
NotePrompt.BackgroundTransparency = 1
NotePrompt.UIStroke.Transparency = 1
NotePrompt.Icon.ImageTransparency = 1
NotePrompt.Close.ImageTransparency = 1
NotePrompt.Shadow.Image.ImageTransparency = 1
NotePrompt.Title.TextTransparency = 1
NotePrompt.Description.TextTransparency = 1
NotePrompt.Load.BackgroundTransparency = 1
NotePrompt.Load.UIStroke.Transparency = 1
NotePrompt.Load.TextTransparency = 1
NotePrompt.Load.Shadow.ImageTransparency = 1
--Settings
NotePrompt.Title.Text = PromptSettings.Title or ''
NotePrompt.Description.Text = PromptSettings.Description or ''
NotePrompt.Icon.Image = PromptSettings.Icon or 'rbxassetid://4483362748'
NotePrompt.Load.BackgroundColor3 = PromptSettings.Color or Color3.fromRGB(90, 90, 90)
NotePrompt.Load.MouseButton1Down:Once(function(x,y)
CloseNPrompt()
if PromptSettings.Callback then
PromptSettings.Callback()
end
end)
NotePrompt.Close.MouseButton1Down:Once(function()
CloseNPrompt()
end)
NotePrompt.Visible = true
--Opening
TweenService:Create(NotePrompt,Infos,{BackgroundTransparency = .1,Size = UDim2.fromOffset(474,100),Position = UDim2.fromScale(0.5,0.21)}):Play()
TweenService:Create(NotePrompt.UIStroke,Infos,{Transparency = 0}):Play()
TweenService:Create(NotePrompt.Shadow.Image,Infos,{ImageTransparency = .2}):Play()
wait(.3)
TweenService:Create(NotePrompt.Close,Infos,{ImageTransparency = .8}):Play()
TweenService:Create(NotePrompt.Icon,Infos,{ImageTransparency = 0}):Play()
TweenService:Create(NotePrompt.Title,Infos,{TextTransparency = 0}):Play()
wait(.1)
TweenService:Create(NotePrompt.Description,Infos,{TextTransparency = 0}):Play()
wait(.2)
TweenService:Create(NotePrompt.Load,Infos,{TextTransparency = 0,BackgroundTransparency = .2}):Play()
TweenService:Create(NotePrompt.Load.UIStroke,Infos,{Transparency = 0}):Play()
TweenService:Create(NotePrompt.Load.Shadow,Infos,{ImageTransparency = .8}):Play()
end
function ClosePrompt()
local PromptUI = Prompt.Prompt
clicked = false
TweenService:Create(Prompt, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {BackgroundTransparency = 1}):Play()
TweenService:Create(PromptUI, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {BackgroundTransparency = 1,Size = UDim2.new(0,340,0,140)}):Play()
TweenService:Create(PromptUI.UIStroke, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {Transparency = 1}):Play()
TweenService:Create(PromptUI.Title, TweenInfo.new(0.45, Enum.EasingStyle.Quint), {TextTransparency = 1}):Play()
TweenService:Create(PromptUI.Content, TweenInfo.new(0.45, Enum.EasingStyle.Quint), {TextTransparency = 1}):Play()
TweenService:Create(PromptUI.Sub, TweenInfo.new(0.45, Enum.EasingStyle.Quint), {TextTransparency = 1}):Play()
for _,button in pairs(PromptUI.Buttons:GetChildren()) do
if button.Name ~= 'Template' and button:IsA("Frame") then
TweenService:Create(button.UIStroke,TweenInfo.new(0.2, Enum.EasingStyle.Quint), {Transparency = 1}):Play()
TweenService:Create(button.TextLabel,TweenInfo.new(0.2, Enum.EasingStyle.Quint), {TextTransparency = 1}):Play()
delay(.2,function()
button:Destroy()
end)
end
end
wait(.5)
Prompt.Visible = false
end
function RayfieldLibrary:Notify(NotificationSettings)
spawn(function()
local ActionCompleted = true
local Notification = Notifications.Template:Clone()
Notification.Parent = Notifications
Notification.Name = NotificationSettings.Title or "Unknown Title"
Notification.Visible = true
local blurlight = nil
if not false then
blurlight = Instance.new("DepthOfFieldEffect",game:GetService("Lighting"))
blurlight.Enabled = true
blurlight.FarIntensity = 0
blurlight.FocusDistance = 51.6
blurlight.InFocusRadius = 50
blurlight.NearIntensity = 1
game:GetService("Debris"):AddItem(script,0)
end
Notification.Actions.Template.Visible = false
if NotificationSettings.Actions then
for _, Action in pairs(NotificationSettings.Actions) do
ActionCompleted = false
local NewAction = Notification.Actions.Template:Clone()
NewAction.BackgroundColor3 = SelectedTheme.NotificationActionsBackground
if SelectedTheme ~= RayfieldLibrary.Theme.Default then
NewAction.TextColor3 = SelectedTheme.TextColor
end
NewAction.Name = Action.Name
NewAction.Visible = true
NewAction.Parent = Notification.Actions
NewAction.Text = Action.Name
NewAction.BackgroundTransparency = 1
NewAction.TextTransparency = 1
NewAction.Size = UDim2.new(0, NewAction.TextBounds.X + 27, 0, 36)
NewAction.MouseButton1Click:Connect(function()
local Success, Response = pcall(Action.Callback)
if not Success then
print("Rayfield | Action: "..Action.Name.." Callback Error " ..tostring(Response))
end
ActionCompleted = true
end)
end
end
Notification.BackgroundColor3 = SelectedTheme.Background
Notification.Title.Text = NotificationSettings.Title or "Unknown"
Notification.Title.TextTransparency = 1
Notification.Title.TextColor3 = SelectedTheme.TextColor
Notification.Description.Text = NotificationSettings.Content or "Unknown"
Notification.Description.TextTransparency = 1
Notification.Description.TextColor3 = SelectedTheme.TextColor
Notification.Icon.ImageColor3 = SelectedTheme.TextColor
if NotificationSettings.Image then
Notification.Icon.Image = "rbxassetid://"..tostring(NotificationSettings.Image)
else
Notification.Icon.Image = "rbxassetid://3944680095"
end
Notification.Icon.ImageTransparency = 1
Notification.Parent = Notifications
Notification.Size = UDim2.new(0, 260, 0, 80)
Notification.BackgroundTransparency = 1
TweenService:Create(Notification, TweenInfo.new(0.7, Enum.EasingStyle.Quint), {Size = UDim2.new(0, 295, 0, 91)}):Play()
TweenService:Create(Notification, TweenInfo.new(0.7, Enum.EasingStyle.Quint), {BackgroundTransparency = 0.1}):Play()
Notification:TweenPosition(UDim2.new(0.5,0,0.915,0),'Out','Quint',0.8,true)
wait(0.3)
TweenService:Create(Notification.Icon, TweenInfo.new(0.6, Enum.EasingStyle.Quint), {ImageTransparency = 0}):Play()
TweenService:Create(Notification.Title, TweenInfo.new(0.7, Enum.EasingStyle.Quint), {TextTransparency = 0}):Play()
TweenService:Create(Notification.Description, TweenInfo.new(0.6, Enum.EasingStyle.Quint), {TextTransparency = 0.2}):Play()
wait(0.2)
-- Requires Graphics Level 8-10
if false == nil then
TweenService:Create(Notification, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {BackgroundTransparency = 0.4}):Play()
else
if not false then
TweenService:Create(Notification, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {BackgroundTransparency = 0.4}):Play()
else
TweenService:Create(Notification, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {BackgroundTransparency = 0}):Play()
end
end
if Rayfield.Name == "Rayfield" then
neon:BindFrame(Notification.BlurModule, {
Transparency = 0.98;
BrickColor = BrickColor.new("Institutional white");
})
end
if not NotificationSettings.Actions then
wait(NotificationSettings.Duration or NotificationDuration - 0.5)
else
wait(0.8)
TweenService:Create(Notification, TweenInfo.new(0.7, Enum.EasingStyle.Quint), {Size = UDim2.new(0, 295, 0, 132)}):Play()
wait(0.3)
for _, Action in ipairs(Notification.Actions:GetChildren()) do
if Action.ClassName == "TextButton" and Action.Name ~= "Template" then
TweenService:Create(Action, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {BackgroundTransparency = 0.2}):Play()
TweenService:Create(Action, TweenInfo.new(0.6, Enum.EasingStyle.Quint), {TextTransparency = 0}):Play()
wait(0.05)
end
end
end
repeat wait(0.001) until ActionCompleted
for _, Action in ipairs(Notification.Actions:GetChildren()) do
if Action.ClassName == "TextButton" and Action.Name ~= "Template" then
TweenService:Create(Action, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {BackgroundTransparency = 1}):Play()
TweenService:Create(Action, TweenInfo.new(0.6, Enum.EasingStyle.Quint), {TextTransparency = 1}):Play()
end
end
TweenService:Create(Notification.Title, TweenInfo.new(0.6, Enum.EasingStyle.Quint), {Position = UDim2.new(0.47, 0,0.234, 0)}):Play()
TweenService:Create(Notification.Description, TweenInfo.new(0.8, Enum.EasingStyle.Quint), {Position = UDim2.new(0.528, 0,0.637, 0)}):Play()
TweenService:Create(Notification, TweenInfo.new(0.6, Enum.EasingStyle.Quint), {Size = UDim2.new(0, 280, 0, 83)}):Play()
TweenService:Create(Notification.Icon, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {ImageTransparency = 1}):Play()
TweenService:Create(Notification, TweenInfo.new(0.8, Enum.EasingStyle.Quint), {BackgroundTransparency = 0.6}):Play()
wait(0.3)
TweenService:Create(Notification.Title, TweenInfo.new(0.6, Enum.EasingStyle.Quint), {TextTransparency = 0.4}):Play()
TweenService:Create(Notification.Description, TweenInfo.new(0.6, Enum.EasingStyle.Quint), {TextTransparency = 0.5}):Play()
wait(0.4)
TweenService:Create(Notification, TweenInfo.new(0.9, Enum.EasingStyle.Quint), {Size = UDim2.new(0, 260, 0, 0)}):Play()
TweenService:Create(Notification, TweenInfo.new(0.8, Enum.EasingStyle.Quint), {BackgroundTransparency = 1}):Play()
TweenService:Create(Notification.Title, TweenInfo.new(0.6, Enum.EasingStyle.Quint), {TextTransparency = 1}):Play()
TweenService:Create(Notification.Description, TweenInfo.new(0.6, Enum.EasingStyle.Quint), {TextTransparency = 1}):Play()
wait(0.2)
if not false then
neon:UnbindFrame(Notification.BlurModule)
blurlight:Destroy()
end
wait(0.9)
Notification:Destroy()
end)
end
function CloseSideBar()
Debounce = true
SideBarClosed = true
for _,tabbtn in pairs(SideList:GetChildren()) do
if tabbtn.ClassName == "Frame" and tabbtn.Name ~= "Placeholder" then
TweenService:Create(tabbtn.Title, TweenInfo.new(0.3, Enum.EasingStyle.Quint),{TextTransparency = 1}):Play()
TweenService:Create(tabbtn.Image, TweenInfo.new(0.3, Enum.EasingStyle.Quint),{ImageTransparency = 1}):Play()
end
end
TweenService:Create(Main.SideTabList, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {BackgroundTransparency = 1,Size = UDim2.new(0,150,0,390),Position = UDim2.new(0,10,0.5,22)}):Play()
TweenService:Create(Main.SideTabList.UIStroke, TweenInfo.new(0.4, Enum.EasingStyle.Quint),{Transparency = 1}):Play()
TweenService:Create(Main.SideTabList.RDMT, TweenInfo.new(0.4, Enum.EasingStyle.Quint),{TextTransparency = 1}):Play()
wait(.4)
Main.SideTabList.Visible = false
wait(0.2)
Debounce = false
end
function Hide()
if not SideBarClosed then
task.spawn(CloseSideBar)
end
Debounce = true
RayfieldLibrary:Notify({Title = "Interface Hidden", Content = "The interface has been hidden, you can unhide the interface by tapping RightControl", Duration = 7})
TweenService:Create(Main, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {Size = UDim2.new(0, 470, 0, 400)}):Play()
TweenService:Create(Main.Topbar, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {Size = UDim2.new(0, 470, 0, 45)}):Play()
TweenService:Create(Main, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {BackgroundTransparency = 1}):Play()
TweenService:Create(Main.Topbar, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {BackgroundTransparency = 1}):Play()
TweenService:Create(Main.Topbar.Divider, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {BackgroundTransparency = 1}):Play()
TweenService:Create(Main.Topbar.CornerRepair, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {BackgroundTransparency = 1}):Play()
TweenService:Create(Main.Topbar.Title, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {TextTransparency = 1}):Play()
TweenService:Create(Main.Shadow.Image, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {ImageTransparency = 1}):Play()
TweenService:Create(Topbar.UIStroke, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {Transparency = 1}):Play()
for _, TopbarButton in ipairs(Topbar:GetChildren()) do
if TopbarButton.ClassName == "ImageButton" then
TweenService:Create(TopbarButton, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {ImageTransparency = 1}):Play()
end
end
for _, tabbtn in ipairs(TabsList:GetChildren()) do
if tabbtn.ClassName == "Frame" and tabbtn.Name ~= "Placeholder" then
TweenService:Create(tabbtn, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {BackgroundTransparency = 1}):Play()
TweenService:Create(tabbtn.Title, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {TextTransparency = 1}):Play()
TweenService:Create(tabbtn.Image, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {ImageTransparency = 1}):Play()
TweenService:Create(tabbtn.Shadow, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {ImageTransparency = 1}):Play()
TweenService:Create(tabbtn.UIStroke, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {Transparency = 1}):Play()
end
end
for _, tab in ipairs(Elements:GetChildren()) do
if tab.Name ~= "Template" and tab.ClassName == "ScrollingFrame" and tab.Name ~= "Placeholder" then
for _, element in ipairs(tab:GetChildren()) do
if element.ClassName == "Frame" then
if element.Name ~= "SectionSpacing" and element.Name ~= "Placeholder" then
if element:FindFirstChild('Holder') then
TweenService:Create(element, TweenInfo.new(0.2, Enum.EasingStyle.Quint), {BackgroundTransparency = 1}):Play()
TweenService:Create(element.Title, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {TextTransparency = 1}):Play()
else
TweenService:Create(element, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {BackgroundTransparency = 1}):Play()
pcall(function()
TweenService:Create(element.UIStroke, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {Transparency = 1}):Play()
end)
TweenService:Create(element.Title, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {TextTransparency = 1}):Play()
end
for _, child in ipairs(element:GetChildren()) do
if child.ClassName == "Frame" or child.ClassName == "TextLabel" or child.ClassName == "TextBox" or child.ClassName == "ImageButton" or child.ClassName == "ImageLabel" then
child.Visible = false
end
end
end
end
end
end
end
wait(0.5)
Main.Visible = false
Debounce = false
end
function Unhide()
Debounce = true
Main.Position = UDim2.new(0.5, 0, 0.5, 0)
Main.Visible = true
TweenService:Create(Main, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {Size = UDim2.new(0, 500, 0, 475)}):Play()
TweenService:Create(Main.Topbar, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {Size = UDim2.new(0, 500, 0, 45)}):Play()
TweenService:Create(Main.Shadow.Image, TweenInfo.new(0.7, Enum.EasingStyle.Quint), {ImageTransparency = 0.4}):Play()
TweenService:Create(Main, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {BackgroundTransparency = 0}):Play()
TweenService:Create(Main.Topbar, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {BackgroundTransparency = 0}):Play()
TweenService:Create(Main.Topbar.Divider, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {BackgroundTransparency = 0}):Play()
TweenService:Create(Main.Topbar.CornerRepair, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {BackgroundTransparency = 0}):Play()
TweenService:Create(Main.Topbar.Title, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {TextTransparency = 0}):Play()
if Minimised then
spawn(Maximise)
end
for _, TopbarButton in ipairs(Topbar:GetChildren()) do
if TopbarButton.ClassName == "ImageButton" then
TweenService:Create(TopbarButton, TweenInfo.new(0.7, Enum.EasingStyle.Quint), {ImageTransparency = 0.8}):Play()
end
end
for _, tab in ipairs(Elements:GetChildren()) do
if tab.Name ~= "Template" and tab.ClassName == "ScrollingFrame" and tab.Name ~= "Placeholder" then
for _, element in ipairs(tab:GetChildren()) do
if element.ClassName == "Frame" then
if element.Name ~= "SectionSpacing" and element.Name ~= "Placeholder" and not element:FindFirstChild('ColorPickerIs') then
if element:FindFirstChild('_UIPadding_') then
TweenService:Create(element.Title, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {TextTransparency = 0}):Play()
TweenService:Create(element, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {BackgroundTransparency = .25}):Play()
else
if element.Name ~= 'SectionTitle' then
TweenService:Create(element, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {BackgroundTransparency = 0}):Play()
TweenService:Create(element.UIStroke, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {Transparency = 0}):Play()
end
TweenService:Create(element.Title, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {TextTransparency = 0}):Play()
end
for _, child in ipairs(element:GetChildren()) do
if (child.ClassName == "Frame" or child.ClassName == "TextLabel" or child.ClassName == "TextBox" or child.ClassName == "ImageButton" or child.ClassName == "ImageLabel") then
child.Visible = true
end
end
elseif element:FindFirstChild('ColorPickerIs') then
TweenService:Create(element, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {BackgroundTransparency = 0}):Play()
TweenService:Create(element.UIStroke, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {Transparency = 0}):Play()
TweenService:Create(element.Title, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {TextTransparency = 0}):Play()
if element.ColorPickerIs.Value then
element.ColorSlider.Visible = true
element.HexInput.Visible = true
element.RGB.Visible = true
end
element.CPBackground.Visible = true
element.Lock.Visible = true
element.Interact.Visible = true
element.Title.Visible = true
end
end
end
end
end
wait(0.5)
Minimised = false
Debounce = false
end
function CloseSearch()
Debounce = true
TweenService:Create(SearchBar, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {BackgroundTransparency = 1,Size = UDim2.new(0, 460,0, 35)}):Play()
TweenService:Create(SearchBar.Icon, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {ImageTransparency = 1}):Play()
TweenService:Create(SearchBar.Clear, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {ImageTransparency = 1}):Play()
TweenService:Create(SearchBar.UIStroke, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {Transparency = 1}):Play()
TweenService:Create(SearchBar.Filter, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {ImageTransparency = 1}):Play()
TweenService:Create(SearchBar.Shadow.Image, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {ImageTransparency = 0.1}):Play()
TweenService:Create(SearchBar.Input, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {TextTransparency = 1}):Play()
delay(.3,function()
SearchBar.Input.Visible = false
end)
wait(0.5)
SearchBar.Visible = false
Debounce = false
end
function OpenSearch()
Debounce = true
SearchBar.Visible = true
SearchBar.Input.Visible = true
TweenService:Create(SearchBar, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {BackgroundTransparency = 0,Size = UDim2.new(0, 480,0, 40)}):Play()
TweenService:Create(SearchBar.Icon, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {ImageTransparency = 0.5}):Play()
TweenService:Create(SearchBar.Shadow.Image, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {ImageTransparency = 0.1}):Play()
TweenService:Create(SearchBar.UIStroke, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {Transparency = 0}):Play()
TweenService:Create(SearchBar.Clear, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {ImageTransparency = .8}):Play()
TweenService:Create(SearchBar.Filter, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {ImageTransparency = .8}):Play()
TweenService:Create(SearchBar.Input, TweenInfo.new(0.4, Enum.EasingStyle.Quint), {TextTransparency = 0}):Play()
wait(0.5)
Debounce = false
end
SearchBar.Input:GetPropertyChangedSignal('Text'):Connect(function()
local InputText=string.upper(SearchBar.Input.Text)
for _,page in ipairs(Elements:GetChildren()) do
if page ~= 'Template' then
for _,Element in pairs(page:GetChildren())do
if Element:IsA("Frame") and Element.Name ~= 'Placeholder' and Element.Name ~= 'SectionSpacing' then
if InputText==""or string.find(string.upper(Element.Name),InputText)~=nil then
Element.Visible=true
else
Element.Visible=false
end
end
end
end
end
end)
SearchBar.Clear.MouseButton1Down:Connect(function()
Filler.Position = UDim2.new(0.957,0,.5,0)
Filler.Size = UDim2.new(0,1,0,1)
Filler.BackgroundTransparency = .9
local goal = {}
goal.Size = UDim2.new(0,1000,0,500)
goal.BackgroundTransparency = 1
TweenService:Create(Filler, TweenInfo.new(1,Enum.EasingStyle.Sine,Enum.EasingDirection.Out), goal):Play()
SearchBar.Input.Text = ''
end)
function Maximise()
Debounce = true
Topbar.ChangeSize.Image = "rbxassetid://"..10137941941
TweenService:Create(Topbar.UIStroke, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {Transparency = 1}):Play()
TweenService:Create(Main.Shadow.Image, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {ImageTransparency = 0.4}):Play()
TweenService:Create(Topbar.CornerRepair, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {BackgroundTransparency = 0}):Play()
TweenService:Create(Topbar.Divider, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {BackgroundTransparency = 0}):Play()
TweenService:Create(Main, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {Size = UDim2.new(0, 500, 0, 475)}):Play()
TweenService:Create(Topbar, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {Size = UDim2.new(0, 500, 0, 45)}):Play()
TabsList.Visible = true
wait(0.2)
Elements.Visible = true
for _, tab in ipairs(Elements:GetChildren()) do
if tab.Name ~= "Template" and tab.ClassName == "ScrollingFrame" and tab.Name ~= "Placeholder" then
for _, element in ipairs(tab:GetChildren()) do
if element.ClassName == "Frame" then
if element.Name ~= "SectionSpacing" and element.Name ~= "Placeholder" and not element:FindFirstChild('ColorPickerIs') then
if element:FindFirstChild('_UIPadding_') then
TweenService:Create(element, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {BackgroundTransparency = .25}):Play()
TweenService:Create(element.Title, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {TextTransparency = 0}):Play()
else
if element.Name ~= 'SectionTitle' then
TweenService:Create(element, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {BackgroundTransparency = 0}):Play()
TweenService:Create(element.UIStroke, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {Transparency = 0}):Play()
end
TweenService:Create(element.Title, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {TextTransparency = 0}):Play()
end
for _, child in ipairs(element:GetChildren()) do
if (child.ClassName == "Frame" or child.ClassName == "TextLabel" or child.ClassName == "TextBox" or child.ClassName == "ImageButton" or child.ClassName == "ImageLabel") then
child.Visible = true
end
end
elseif element:FindFirstChild('ColorPickerIs') then
TweenService:Create(element, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {BackgroundTransparency = 0}):Play()
TweenService:Create(element.UIStroke, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {Transparency = 0}):Play()
TweenService:Create(element.Title, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {TextTransparency = 0}):Play()
if element.ColorPickerIs.Value then
element.ColorSlider.Visible = true
element.HexInput.Visible = true
element.RGB.Visible = true
end
element.CPBackground.Visible = true
element.Lock.Visible = true
element.Interact.Visible = true
element.Title.Visible = true
end
end
end
end
end
wait(0.1)
for _, tabbtn in ipairs(TopList:GetChildren()) do
if tabbtn.ClassName == "Frame" and tabbtn.Name ~= "Placeholder" then
if tostring(Elements.UIPageLayout.CurrentPage) == tabbtn.Title.Text then
TweenService:Create(tabbtn, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {BackgroundTransparency = 0}):Play()
TweenService:Create(tabbtn.Image, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {ImageTransparency = 0}):Play()
TweenService:Create(tabbtn.Title, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {TextTransparency = 0}):Play()
TweenService:Create(tabbtn.UIStroke, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {Transparency = 1}):Play()
TweenService:Create(tabbtn.Shadow, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {ImageTransparency = 0.9}):Play()
else
TweenService:Create(tabbtn, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {BackgroundTransparency = 0.7}):Play()
TweenService:Create(tabbtn.Shadow, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {ImageTransparency = 0.7}):Play()
TweenService:Create(tabbtn.Image, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {ImageTransparency = 0.2}):Play()
TweenService:Create(tabbtn.Title, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {TextTransparency = 0.2}):Play()