-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAtlanta
More file actions
6029 lines (5211 loc) · 171 KB
/
Atlanta
File metadata and controls
6029 lines (5211 loc) · 171 KB
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
-- Forked From: https://raw.githubusercontent.com/i77lhm/Libraries/refs/heads/main/Atlanta/Library.lua
--[[
01/11/2026 (6:06)
BUG FIXES:
1. Fixed player list where when you click yourself it would error.
2. Fixed "Copy Join Script" so it used game:GetService("Players") instead of game.Players.
3. Fixed color picker always setting Rainbow to true.
4. Fixed "Max Player" slider to use actual server size limit instead of a hard coded value.
5. Fixed Tooltip spacing issue, and made it top-most.
5. Fixed Notifiaction spacing issue.
6. Replaced all ":Connect" with "library:connection" to clean up memory leaks
ADDITIONS:
1. Added Fallback character (StarterCharacter) to "Esp Preview", Reduced rotation of the character by 50%.
]]
--[[
01/11/2026 (11:09)
ADDITIONS:
1. Added "Auto Execute" toggle when rejoining and server hopping.
2. Changed font saving/loading to use Font folder in "Workspace/Atlanta/Fonts".
]]
-- REASON: Dumbass customer put their library in a request and flexed his non existant security and ended up getting it leaked by himself... 😭
-- The code here is horrendous this is my 2nd library, the added on code was made to suit the old code however I should have just converted to a newer version of my code kind of an oopsie.
local directory, queue_on_teleport_payload = ...
-- variables
local uis = cloneref(game:GetService("UserInputService"))
local players = cloneref(game:GetService("Players"))
local StarterPlayer = cloneref(game:GetService("StarterPlayer"))
local ws = cloneref(game:GetService("Workspace"))
local http_service = cloneref(game:GetService("HttpService"))
local gui_service = cloneref(game:GetService("GuiService"))
local lighting = cloneref(game:GetService("Lighting"))
local run = cloneref(game:GetService("RunService"))
local stats = cloneref(game:GetService("Stats"))
local coregui = cloneref(game:GetService("CoreGui"))
local debris = cloneref(game:GetService("Debris"))
local tween_service = cloneref(game:GetService("TweenService"))
local sound_service = cloneref(game:GetService("SoundService"))
local starter_gui = cloneref(game:GetService("StarterGui"))
local rs = cloneref(game:GetService("ReplicatedStorage"))
local vec2 = Vector2.new
local vec3 = Vector3.new
local dim2 = UDim2.new
local dim = UDim.new
local rect = Rect.new
local cfr = CFrame.new
local empty_cfr = cfr()
local point_object_space = empty_cfr.PointToObjectSpace
local angle = CFrame.Angles
local dim_offset = UDim2.fromOffset
local color = Color3.new
local hsv = Color3.fromHSV
local rgb = Color3.fromRGB
local hex = Color3.fromHex
local rgbseq = ColorSequence.new
local rgbkey = ColorSequenceKeypoint.new
local numseq = NumberSequence.new
local numkey = NumberSequenceKeypoint.new
local camera = ws.CurrentCamera
local lp = players.LocalPlayer
local mouse = lp:GetMouse()
local gui_offset = gui_service:GetGuiInset().Y
local max = math.max
local floor = math.floor
local min = math.min
local abs = math.abs
local noise = math.noise
local rad = math.rad
local random = math.random
local pow = math.pow
local sin = math.sin
local pi = math.pi
local tan = math.tan
local atan2 = math.atan2
local cos = math.cos
local round = math.round;
local clamp = math.clamp;
local ceil = math.ceil;
local sqrt = math.sqrt;
local acos = math.acos;
local insert = table.insert
local find = table.find
local remove = table.remove
local concat = table.concat
--
-- library init
local library = {
directory = (type(directory) == "string" and directory) or "Atlanta",
folders = {
"/fonts",
"/configs",
"/images"
},
flags = {},
config_flags = {},
visible_flags = {},
guis = {},
connections = {},
notifications = {},
playerlist_data = {},
current_tab,
current_element_open,
dock_button_holder,
old_config;
font,
keybind_list,
binds = {},
copied_flag;
is_rainbow;
instances = {};
drawings = {};
display_orders = 0;
unloaded = false,
UnloadConnections = {}
}
local flags = library.flags
local config_flags = library.config_flags
local themes = {
preset = {
["outline"] = hex("#0A0A0A"), --
["inline"] = hex("#2D2D2D"), --
["accent"] = hex("#6078BE"), --
["high_contrast"] = hex("#141414"),
["low_contrast"] = hex("#1E1E1E"),
["text"] = hex("#B4B4B4"),
["text_outline"] = rgb(0, 0, 0),
["glow"] = hex("#6078BE"),
},
utility = {
["outline"] = {
["BackgroundColor3"] = {},
["Color"] = {},
},
["inline"] = {
["BackgroundColor3"] = {},
["ImageColor3"] = {},
},
["accent"] = {
["BackgroundColor3"] = {},
["TextColor3"] = {},
["ImageColor3"] = {},
["ScrollBarImageColor3"] = {}
},
["contrast"] = {
["Color"] = {},
},
["text"] = {
["TextColor3"] = {},
},
["text_outline"] = {
["Color"] = {},
},
["glow"] = {
["ImageColor3"] = {},
},
["high_contrast"] = {
["BackgroundColor3"] = {},
},
["low_contrast"] = {
["BackgroundColor3"] = {},
}
},
find = {
["Frame"] = "BackgroundColor3",
["TextLabel"] = "TextColor3",
["UIGradient"] = "Color",
["UIStroke"] = "Color",
["ImageLabel"] = "ImageColor3",
["TextButton"] = "BackgroundColor3",
["ScrollingFrame"] = "ScrollBarImageColor3"
}
}
local keys = {
[Enum.KeyCode.LeftShift] = "LS",
[Enum.KeyCode.RightShift] = "RS",
[Enum.KeyCode.LeftControl] = "LC",
[Enum.KeyCode.RightControl] = "RC",
[Enum.KeyCode.Insert] = "INS",
[Enum.KeyCode.Backspace] = "BS",
[Enum.KeyCode.Return] = "Ent",
[Enum.KeyCode.LeftAlt] = "LA",
[Enum.KeyCode.RightAlt] = "RA",
[Enum.KeyCode.CapsLock] = "CAPS",
[Enum.KeyCode.One] = "1",
[Enum.KeyCode.Two] = "2",
[Enum.KeyCode.Three] = "3",
[Enum.KeyCode.Four] = "4",
[Enum.KeyCode.Five] = "5",
[Enum.KeyCode.Six] = "6",
[Enum.KeyCode.Seven] = "7",
[Enum.KeyCode.Eight] = "8",
[Enum.KeyCode.Nine] = "9",
[Enum.KeyCode.Zero] = "0",
[Enum.KeyCode.KeypadOne] = "Num1",
[Enum.KeyCode.KeypadTwo] = "Num2",
[Enum.KeyCode.KeypadThree] = "Num3",
[Enum.KeyCode.KeypadFour] = "Num4",
[Enum.KeyCode.KeypadFive] = "Num5",
[Enum.KeyCode.KeypadSix] = "Num6",
[Enum.KeyCode.KeypadSeven] = "Num7",
[Enum.KeyCode.KeypadEight] = "Num8",
[Enum.KeyCode.KeypadNine] = "Num9",
[Enum.KeyCode.KeypadZero] = "Num0",
[Enum.KeyCode.Minus] = "-",
[Enum.KeyCode.Equals] = "=",
[Enum.KeyCode.Tilde] = "~",
[Enum.KeyCode.LeftBracket] = "[",
[Enum.KeyCode.RightBracket] = "]",
[Enum.KeyCode.RightParenthesis] = ")",
[Enum.KeyCode.LeftParenthesis] = "(",
[Enum.KeyCode.Semicolon] = ",",
[Enum.KeyCode.Quote] = "'",
[Enum.KeyCode.BackSlash] = "\\",
[Enum.KeyCode.Comma] = ",",
[Enum.KeyCode.Period] = ".",
[Enum.KeyCode.Slash] = "/",
[Enum.KeyCode.Asterisk] = "*",
[Enum.KeyCode.Plus] = "+",
[Enum.KeyCode.Period] = ".",
[Enum.KeyCode.Backquote] = "`",
[Enum.UserInputType.MouseButton1] = "MB1",
[Enum.UserInputType.MouseButton2] = "MB2",
[Enum.UserInputType.MouseButton3] = "MB3",
[Enum.KeyCode.Escape] = "ESC",
[Enum.KeyCode.Space] = "SPC",
}
library.__index = library
for _, path in next, library.folders do
makefolder(library.directory .. path)
end
writefile(library.directory.."/fonts/fs-tahoma-8px.ttf", game:HttpGet("https://github.com/weasely111/beta/raw/refs/heads/main/fs-tahoma-8px.ttf"))
local tahoma = {
name = "SmallestPixel7",
faces = {
{
name = "Regular",
weight = 400,
style = "normal",
assetId = getcustomasset(library.directory.."/fonts/fs-tahoma-8px.ttf")
}
}
}
writefile(library.directory.."/fonts/serialized-fs-tahoma-8px.ttf", http_service:JSONEncode(tahoma))
library.font = Font.new(getcustomasset(library.directory.."/fonts/serialized-fs-tahoma-8px.ttf"), Enum.FontWeight.Regular)
local config_holder
--
-- library functions
-- misc functions
function library:connectToUnload(func)
if type(func) ~= "function" then return end
table.insert(self.UnloadConnections, func)
return
end
function library:hoverify(hover, parent)
local hover_instance = library:create("Frame", {
Parent = parent,
BackgroundTransparency = 1,
BorderColor3 = rgb(0, 0, 0),
Size = dim2(1, 0, 1, 0),
BorderSizePixel = 0,
BackgroundColor3 = themes.preset.accent,
ZIndex = 1;
}) library:apply_theme(hover_instance, "accent", "BackgroundColor3")
library:connection(hover.MouseEnter, function()
library:tween(hover_instance, {
BackgroundTransparency = 0,
})
end)
library:connection(hover.MouseLeave, function()
library:tween(hover_instance, {
BackgroundTransparency = 1,
})
end)
return hover_instance;
end
function library:hovering(Object)
if type(Object) == "table" then
local Pass = false;
for _,obj in Object do
if library:hovering(obj) then
Pass = true
return Pass
end
end
else
local y_cond = Object.AbsolutePosition.Y <= mouse.Y and mouse.Y <= Object.AbsolutePosition.Y + Object.AbsoluteSize.Y
local x_cond = Object.AbsolutePosition.X <= mouse.X and mouse.X <= Object.AbsolutePosition.X + Object.AbsoluteSize.X
return (y_cond and x_cond)
end
end
function library:make_resizable(frame)
local Frame = Instance.new("TextButton")
Frame.Position = dim2(1, -10, 1, -10)
Frame.BorderColor3 = rgb(0, 0, 0)
Frame.Size = dim2(0, 10, 0, 10)
Frame.BorderSizePixel = 0
Frame.BackgroundColor3 = rgb(255, 255, 255)
Frame.Parent = frame
Frame.BackgroundTransparency = 1
Frame.Text = ""
local resizing = false
local start_size
local start
local og_size = frame.Size
library:connection(Frame.InputBegan, function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
resizing = true
start = input.Position
start_size = frame.Size
end
end)
library:connection(Frame.InputEnded, function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
resizing = false
end
end)
library:connection(uis.InputChanged, function(input, game_event)
if resizing and input.UserInputType == Enum.UserInputType.MouseMovement then
local viewport_x = camera.ViewportSize.X
local viewport_y = camera.ViewportSize.Y
local current_size = dim2(
start_size.X.Scale,
math.clamp(
start_size.X.Offset + (input.Position.X - start.X),
og_size.X.Offset,
viewport_x
),
start_size.Y.Scale,
math.clamp(
start_size.Y.Offset + (input.Position.Y - start.Y),
og_size.Y.Offset,
viewport_y
)
)
frame.Size = current_size
end
end)
end
function library:draggify(frame)
local dragging = false
local start_size = frame.Position
local start
library:connection(frame.InputBegan, function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
start = input.Position
start_size = frame.Position
if library.current_element_open then
library.current_element_open.set_visible(false)
library.current_element_open.open = false
library.current_element_open = nil
end
if frame.Parent:IsA("ScreenGui") and frame.Parent.DisplayOrder ~= 999999 then
library.display_orders += 1 -- shit code
frame.Parent.DisplayOrder = library.display_orders
end
end
end)
library:connection(frame.InputEnded, function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = false
end
end)
library:connection(uis.InputChanged, function(input, game_event)
if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
local viewport_x = camera.ViewportSize.X
local viewport_y = camera.ViewportSize.Y
local current_position = dim2(
0,
clamp(
start_size.X.Offset + (input.Position.X - start.X),
0,
viewport_x - frame.Size.X.Offset
),
0,
clamp(
start_size.Y.Offset + (input.Position.Y - start.Y),
0,
viewport_y - frame.Size.Y.Offset
)
)
frame.Position = current_position
end
end)
end
function library:new_drawing(class, properties)
local ins = Drawing.new(class)
for _, v in next, properties do
ins[_] = v
end
insert(library.drawings, ins)
return ins
end
function library:new_item(class, properties)
local ins = Instance.new(class)
for _, v in next, properties do
ins[_] = v
end
insert(library.instances, ins)
return ins
end
function library:convert_enum(enum)
local enum_parts = {}
for part in string.gmatch(enum, "[%w_]+") do
insert(enum_parts, part)
end
local enum_table = Enum
for i = 2, #enum_parts do
local enum_item = enum_table[enum_parts[i]]
enum_table = enum_item
end
return enum_table
end
function library:tween(obj, properties)
local tween = tween_service:Create(obj, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, false, 0), properties):Play()
return tween
end
function library:config_list_update()
if not config_holder then return end
local list = {}
for idx, file in next, listfiles(library.directory .. "/configs") do
local name = string.sub(file:gsub(library.directory .. "/configs\\", ""):gsub(library.directory .. "\\configs\\", ""), 1, -5)
list[#list + 1] = name
end
config_holder.refresh_options(list)
end
function library:get_config()
local Config = {}
for _, v in flags do
if type(v) == "table" and v.key then
Config[_] = {active = v.active, mode = v.mode, key = tostring(v.key)}
elseif type(v) == "table" and v["Transparency"] and v["Color"] then
Config[_] = {Transparency = v["Transparency"], Color = v["Color"]:ToHex()}
else
Config[_] = v
end
end
return http_service:JSONEncode(Config)
end
function library:load_config(config_json)
local config = http_service:JSONDecode(config_json)
for _, v in next, config do
local function_set = library.config_flags[_]
if function_set then
if type(v) == "table" and v["Transparency"] and v["Color"] then
function_set(hex(v["Color"]), v["Transparency"])
elseif type(v) == "table" and v["active"] then
function_set(v)
else
function_set(v)
end
end
end
end
function library:round(number, float)
local multiplier = 1 / (float or 1)
return floor(number * multiplier + 0.5) / multiplier
end
function library:apply_theme(instance, theme, property)
insert(themes.utility[theme][property], instance)
end
function library:update_theme(theme, color)
for _, property in next, themes.utility[theme] do
for m, object in next, property do
if object[_] == themes.preset[theme] or object.ClassName == "UIGradient" then
object[_] = color
end
end
end
themes.preset[theme] = color
end
function library:connection(signal, callback)
local connection = signal:Connect(callback)
insert(library.connections, connection)
return connection
end
function library:apply_stroke(parent)
local stroke = library:create("UIStroke", {
Parent = parent,
Color = themes.preset.text_outline,
LineJoinMode = Enum.LineJoinMode.Miter
})
library:apply_theme(stroke, "text_outline", "Color")
end
function library:create(instance, options)
local ins = Instance.new(instance)
for prop, value in next, options do
ins[prop] = value
end
if instance == "TextLabel" or instance == "TextButton" or instance == "TextBox" then
library:apply_theme(ins, "text", "TextColor3")
library:apply_stroke(ins)
elseif instance == "ScreenGui" then
insert(library.guis, ins)
end
return ins
end
--
-- elements
local tooltip_sgui = library:create("ScreenGui", {
Enabled = true,
Parent = gethui(),
Name = "",
DisplayOrder = 9999999,
})
function library:tool_tip(options)
local cfg = {
name = options.name or "hi",
path = options.path or nil,
}
if cfg.path then
local watermark_outline = library:create("Frame", {
Parent = tooltip_sgui,
Name = "",
Size = dim2(0, 0, 0, 22),
Position = dim2(0, 500, 0, 300),
BorderColor3 = rgb(0, 0, 0),
BorderSizePixel = 0,
Visible = false,
AutomaticSize = Enum.AutomaticSize.X,
BackgroundColor3 = themes.preset.outline
})
local watermark_inline = library:create("Frame", {
Parent = watermark_outline,
Name = "",
Position = dim2(0, 1, 0, 1),
BorderColor3 = rgb(0, 0, 0),
Size = dim2(1, -2, 1, -2),
BorderSizePixel = 0,
BackgroundColor3 = themes.preset.inline
})
local watermark_background = library:create("Frame", {
Parent = watermark_inline,
Name = "",
Position = dim2(0, 1, 0, 1),
BorderColor3 = rgb(0, 0, 0),
Size = dim2(1, -2, 1, -2),
BorderSizePixel = 0,
BackgroundColor3 = rgb(255, 255, 255)
})
local UIGradient = library:create("UIGradient", {
Parent = watermark_background,
Name = "",
Color = rgbseq{rgbkey(0, rgb(41, 41, 55)), rgbkey(1, rgb(35, 35, 47))}
}); library:apply_theme(UIGradient, "contrast", "Color")
local text = library:create("TextLabel", {
Parent = watermark_background,
Name = "",
FontFace = library.font,
TextColor3 = themes.preset.text,
BorderColor3 = rgb(0, 0, 0),
Text = " " .. cfg.name .. " ",
Size = dim2(0, 0, 1, 0),
BackgroundTransparency = 1,
Position = dim2(0, 0, 0, -1),
BorderSizePixel = 0,
AutomaticSize = Enum.AutomaticSize.X,
TextSize = 12,
BackgroundColor3 = rgb(255, 255, 255)
})
local UIPadding = library:create("UIPadding", {
Parent = watermark_background,
Name = "",
PaddingRight = dim(0, 4),
})
local UIStroke = library:create("UIStroke", {
Parent = text,
Name = "",
LineJoinMode = Enum.LineJoinMode.Miter
})
library:connection(cfg.path.MouseEnter, function()
watermark_outline.Visible = true
end)
library:connection(cfg.path.MouseLeave, function()
watermark_outline.Visible = false
end)
library:connection(uis.InputChanged, function(input)
if watermark_outline.Visible and input.UserInputType == Enum.UserInputType.MouseMovement then
watermark_outline.Position = dim_offset(input.Position.X + 10, input.Position.Y + 10)
end
end)
end
return cfg
end
function library:panel(options)
local cfg = {
name = options.text or options.name or "Window",
size = options.size or dim2(0, 530, 0, 590),
position = options.position or dim2(0, 500, 0, 500),
anchor_point = options.anchor_point or vec2(0, 0),
-- button
image = options.image or "rbxassetid://79856374238119",
open = options.open or true,
-- ignore
items = {},
}
local items = cfg.items do
-- Panel
items.sgui = library:create("ScreenGui", {
Enabled = true,
Parent = gethui(),
Name = ""
})
items.main_holder = library:create("Frame", {
Parent = items.sgui,
Name = "",
AnchorPoint = vec2(cfg.anchor_point.X, cfg.anchor_point.Y),
Position = cfg.position,
Active = true,
BorderColor3 = rgb(0, 0, 0),
Size = cfg.size,
BorderSizePixel = 0,
BackgroundColor3 = themes.preset.outline
})
library:draggify(items.main_holder)
library:make_resizable(items.main_holder)
local Close = library:create( "TextButton" , {
Parent = items.main_holder;
FontFace = library.font;
Name = "\0";
AnchorPoint = vec2(1, 0);
Active = false;
BorderColor3 = rgb(0, 0, 0);
Text = "X";
Size = dim2(0, 0, 0, 0);
Selectable = false;
Position = dim2(1, -7, 0, 5);
BorderSizePixel = 0;
BackgroundTransparency = 1;
TextXAlignment = Enum.TextXAlignment.Right;
AutomaticSize = Enum.AutomaticSize.XY;
TextColor3 = themes.preset.text;
TextSize = 12;
ZIndex = 100;
BackgroundColor3 = rgb(255, 255, 255)
});
library:create( "UIStroke" , {
Parent = Close
});
library:connection(Close.MouseButton1Click, function()
items.sgui.Enabled = false;
end)
--library:apply_theme(main_holder, "outline", "BackgroundColor3")
items.window_inline = library:create("Frame", {
Parent = items.main_holder,
Name = "",
Position = dim2(0, 1, 0, 1),
BorderColor3 = rgb(0, 0, 0),
Size = dim2(1, -2, 1, -2),
BorderSizePixel = 0,
BackgroundColor3 = themes.preset.accent
})
library:apply_theme(items.window_inline, "accent", "BackgroundColor3")
items.window_holder = library:create("Frame", {
Parent = items.window_inline,
Name = "",
Position = dim2(0, 1, 0, 1),
BorderColor3 = themes.preset.outline,
Size = dim2(1, -2, 1, -2),
BorderSizePixel = 0,
BackgroundColor3 = rgb(255, 255, 255)
})
items.UIGradient = library:create("UIGradient", {
Parent = items.window_holder,
Name = "",
Rotation = 90,
Color = rgbseq{
rgbkey(0, rgb(41, 41, 55)),
rgbkey(1, rgb(35, 35, 47))
}
})
library:apply_theme(items.UIGradient, "contrast", "Color")
items.text = library:create("TextLabel", {
Parent = items.window_holder,
Name = "",
FontFace = library.font,
TextColor3 = themes.preset.accent,
BorderColor3 = rgb(0, 0, 0),
Text = cfg.name,
BackgroundTransparency = 1,
Position = dim2(0, 2, 0, 4),
BorderSizePixel = 0,
AutomaticSize = Enum.AutomaticSize.XY,
TextSize = 12,
BackgroundColor3 = rgb(255, 255, 255)
}) library:apply_theme(items.text, "accent", "TextColor3")
items.UIStroke = library:create("UIStroke", {
Parent = items.text,
Name = "",
LineJoinMode = Enum.LineJoinMode.Miter
})
items.UIPadding = library:create("UIPadding", {
Parent = items.window_holder,
Name = "",
PaddingBottom = dim(0, 4),
PaddingRight = dim(0, 4),
PaddingLeft = dim(0, 4)
})
items.outline = library:create("Frame", {
Parent = items.window_holder,
Name = "",
Position = dim2(0, 0, 0, 18),
BorderColor3 = rgb(0, 0, 0),
Size = dim2(1, 0, 1, -18),
BorderSizePixel = 0,
BackgroundColor3 = themes.preset.inline
})
library:apply_theme(items.outline, "inline", "BackgroundColor3")
items.inline = library:create("Frame", {
Parent = items.outline,
Name = "",
Position = dim2(0, 1, 0, 1),
BorderColor3 = rgb(0, 0, 0),
Size = dim2(1, -2, 1, -2),
BorderSizePixel = 0,
BackgroundColor3 = themes.preset.outline
})
library:apply_theme(items.inline, "outline", "BackgroundColor3")
items.holder = library:create("Frame", {
Parent = items.inline,
Name = "",
Position = dim2(0, 1, 0, 1),
BorderColor3 = rgb(0, 0, 0),
Size = dim2(1, -2, 1, -2),
BorderSizePixel = 0,
BackgroundColor3 = rgb(255, 255, 255)
})
items.UIGradient = library:create("UIGradient", {
Parent = items.holder,
Name = "",
Rotation = 90,
Color = rgbseq{
rgbkey(0, rgb(41, 41, 55)),
rgbkey(1, rgb(35, 35, 47))
}
})
library:apply_theme(items.UIGradient, "contrast", "Color")
items.UIPadding = library:create("UIPadding", {
Parent = items.holder,
Name = "",
PaddingTop = dim(0, 5),
PaddingBottom = dim(0, 5),
PaddingRight = dim(0, 5),
PaddingLeft = dim(0, 5)
})
items.glow = library:create("ImageLabel", {
Parent = items.main_holder,
Name = "",
ImageColor3 = themes.preset.glow,
ScaleType = Enum.ScaleType.Slice,
BorderColor3 = rgb(0, 0, 0),
BackgroundColor3 = rgb(255, 255, 255),
Visible = true,
Image = "http://www.roblox.com/asset/?id=18245826428",
BackgroundTransparency = 1,
ImageTransparency = 0.8,
Position = dim2(0, -20, 0, -20),
Size = dim2(1, 40, 1, 40),
ZIndex = 2,
BorderSizePixel = 0,
SliceCenter = rect(vec2(21, 21), vec2(79, 79))
}) library:apply_theme(items.glow, "glow", "ImageColor3")
--
-- Button
items.button = library:create("TextButton", {
Parent = library.dock_holder,
Name = "",
TextColor3 = rgb(0, 0, 0),
BorderColor3 = rgb(0, 0, 0),
Text = "",
Size = dim2(0, 25, 0, 25),
BorderSizePixel = 0,
TextSize = 14,
BackgroundColor3 = themes.preset.inline
})
local button_inline = library:create("Frame", {
Parent = items.button,
Name = "",
Position = dim2(0, 1, 0, 1),
BorderColor3 = rgb(0, 0, 0),
Size = dim2(1, -2, 1, -2),
BorderSizePixel = 0,
BackgroundColor3 = themes.preset.outline
}) library:apply_theme(button_inline, "outline", "BackgroundColor3")
local button_inline = library:create("Frame", {
Parent = button_inline,
Name = "",
Position = dim2(0, 1, 0, 1),
BorderColor3 = rgb(0, 0, 0),
Size = dim2(1, -2, 1, -2),
BorderSizePixel = 0,
BackgroundColor3 = rgb(255, 255, 255)
}) library:apply_theme(button_inline, "inline", "BackgroundColor3")
local UIGradient = library:create("UIGradient", {
Parent = button_inline,
Name = "",
Rotation = 90,
Color = rgbseq{
rgbkey(0, rgb(35, 35, 47)),
rgbkey(1, rgb(41, 41, 55))
}
}) library:apply_theme(UIGradient, "contrast", "Color")
items.Icon = library:create("ImageLabel", {
Parent = button_inline,
Name = "",
ImageColor3 = themes.preset.accent,
Image = cfg.image,
BackgroundTransparency = 1,
BorderColor3 = rgb(0, 0, 0),
Size = dim2(1, 0, 1, 0),
BorderSizePixel = 0,
BackgroundColor3 = rgb(255, 255, 255)
}) library:apply_theme(items.Icon, "accent", "ImageColor3") library:apply_theme(items.Icon, "inline", "ImageColor3")
local UIPadding = library:create("UIPadding", {
Parent = button_inline,
Name = "",
PaddingTop = dim(0, 4),
PaddingBottom = dim(0, 4),
PaddingRight = dim(0, 4),
PaddingLeft = dim(0, 4)
})
--
library:tool_tip({name = cfg.name, path = items.button})
end
library:connection(items.sgui:GetPropertyChangedSignal("Enabled"), function()
items.Icon.ImageColor3 = items.sgui.Enabled and themes.preset.accent or themes.preset.inline
end)
library:connection(items.button.MouseButton1Click, function()
items.sgui.Enabled = not items.sgui.Enabled
end)
return setmetatable(cfg, library)
end
local sgui = library:create("ScreenGui", {
Enabled = true,
Parent = gethui(),
Name = "",
DisplayOrder = 999999,
})
local notif_holder = library:create("ScreenGui", {
Parent = gethui(),
Name = "",
IgnoreGuiInset = true,
DisplayOrder = 999999,
ZIndexBehavior = Enum.ZIndexBehavior.Sibling
})
function library:fold_elements(origin, elements)
for _, x in next, elements do
local flag = library.visible_flags[x]
if flag then
flag(flags[origin])
end
end
end
function library:indicator()
local cfg = {
items = {};