forked from iexistbutnotforthis/Celeryapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unc.lua
1701 lines (1576 loc) · 58 KB
/
unc.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
-- Definitions
-- modification works
--yes its pasted but who cares
local _ing2 = 'skibidi toliet ohio sigma rizz';
local _ing1 = string.gmatch(_ing2, _ing2)
local table = table.clone(table) -- Prevent modifications from other scripts
local debug = table.clone(debug) -- ^^^^
local bit32 = table.clone(bit32)
local bit = bit32
local os = table.clone(os)
local math = table.clone(math)
local utf8 = table.clone(utf8)
local string = table.clone(string)
local task = table.clone(task)
local game = game -- game is game
local oldGame = game
local Version = '1.1.6'
local isDragging = false -- rconsole
local dragStartPos = nil -- rconsole
local frameStartPos = nil -- rconsole
local Data = game:GetService("TeleportService"):GetLocalPlayerTeleportData()
local TeleportData
if Data and Data.MOREUNCSCRIPTQUEUE then
TeleportData = Data.MOREUNCSCRIPTQUEUE
end
if TeleportData then
local func = loadstring(TeleportData)
local s, e = pcall(func)
if not s then task.spawn(error, e) end
end
print = print
warn = warn
error = error
pcall = pcall
printidentity = printidentity
ipairs = ipairs
pairs = pairs
tostring = tostring
tonumber = tonumber
setmetatable = setmetatable
rawget = rawget
rawset = rawset
getmetatable = getmetatable
type = type
version = version
-- Services / Instances
local HttpService = game:GetService('HttpService');
local Log = game:GetService('LogService');
-- Load proprerties (CREDITS TO DEUCES ON DISCORD)
local API_Dump_Url = "https://raw.githubusercontent.com/MaximumADHD/Roblox-Client-Tracker/roblox/Mini-API-Dump.json"
local API_Dump = game:HttpGet(API_Dump_Url)
local Hidden = {}
for _, API_Class in pairs(HttpService:JSONDecode(API_Dump).Classes) do
for _, Member in pairs(API_Class.Members) do
if Member.MemberType == "Property" then
local PropertyName = Member.Name
local MemberTags = Member.Tags
local Special
if MemberTags then
Special = table.find(MemberTags, "NotScriptable")
end
if Special then
table.insert(Hidden, PropertyName)
end
end
end
end
local vim = Instance.new("VirtualInputManager");
local DrawingDict = Instance.new("ScreenGui") -- For drawing.new
local ClipboardUI = Instance.new("ScreenGui") -- For setclipboard
local hui = Instance.new("Folder") -- For gethui
hui.Name = '\0'
local ClipboardBox = Instance.new('TextBox', ClipboardUI) -- For setclipboard
ClipboardBox.Position = UDim2.new(100, 0, 100, 0) -- VERY off screen
-- All the following are for rconsole
local Console = Instance.new("ScreenGui")
local ConsoleFrame = Instance.new("Frame")
local Topbar = Instance.new("Frame")
local _CORNER = Instance.new("UICorner")
local ConsoleCorner = Instance.new("UICorner")
local CornerHide = Instance.new("Frame")
local DontModify = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local CornerHide2 = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local UIPadding = Instance.new("UIPadding")
local ConsoleIcon = Instance.new("ImageLabel")
local Holder = Instance.new("ScrollingFrame")
local MessageTemplate = Instance.new("TextLabel")
local InputTemplate = Instance.new("TextBox")
local UIListLayout = Instance.new("UIListLayout")
local HolderPadding = Instance.new("UIPadding")
Console.Name = "Console"
Console.Parent = nil
Console.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
ConsoleFrame.Name = "ConsoleFrame"
ConsoleFrame.Parent = Console
ConsoleFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
ConsoleFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
ConsoleFrame.BorderSizePixel = 0
ConsoleFrame.Position = UDim2.new(0.0963890627, 0, 0.220791712, 0)
ConsoleFrame.Size = UDim2.new(0, 888, 0, 577)
Topbar.Name = "Topbar"
Topbar.Parent = ConsoleFrame
Topbar.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
Topbar.BorderColor3 = Color3.fromRGB(0, 0, 0)
Topbar.BorderSizePixel = 0
Topbar.Position = UDim2.new(0, 0, -0.000463640812, 0)
Topbar.Size = UDim2.new(1, 0, 0, 32)
_CORNER.Name = "_CORNER"
_CORNER.Parent = Topbar
ConsoleCorner.Name = "ConsoleCorner"
ConsoleCorner.Parent = ConsoleFrame
CornerHide.Name = "CornerHide"
CornerHide.Parent = ConsoleFrame
CornerHide.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
CornerHide.BorderColor3 = Color3.fromRGB(0, 0, 0)
CornerHide.BorderSizePixel = 0
CornerHide.Position = UDim2.new(0, 0, 0.0280000009, 0)
CornerHide.Size = UDim2.new(1, 0, 0, 12)
DontModify.Name = "DontModify"
DontModify.Parent = ConsoleFrame
DontModify.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
DontModify.BorderColor3 = Color3.fromRGB(0, 0, 0)
DontModify.BorderSizePixel = 0
DontModify.Position = UDim2.new(0.98169291, 0, 0.0278581586, 0)
DontModify.Size = UDim2.new(-0.00675675692, 21, 0.972141862, 0)
UICorner.Parent = DontModify
CornerHide2.Name = "CornerHide2"
CornerHide2.Parent = ConsoleFrame
CornerHide2.AnchorPoint = Vector2.new(1, 0)
CornerHide2.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
CornerHide2.BorderColor3 = Color3.fromRGB(0, 0, 0)
CornerHide2.BorderSizePixel = 0
CornerHide2.Position = UDim2.new(1, 0, 0.0450000018, 0)
CornerHide2.Size = UDim2.new(0, 9, 0.955023408, 0)
Title.Name = "Title"
Title.Parent = ConsoleFrame
Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title.BackgroundTransparency = 1.000
Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
Title.BorderSizePixel = 0
Title.Position = UDim2.new(0.0440017432, 0, 0, 0)
Title.Size = UDim2.new(0, 164, 0, 30)
Title.Font = Enum.Font.GothamMedium
Title.Text = "rconsole title"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.TextSize = 17.000
Title.TextXAlignment = Enum.TextXAlignment.Left
UIPadding.Parent = Title
UIPadding.PaddingTop = UDim.new(0, 5)
ConsoleIcon.Name = "ConsoleIcon"
ConsoleIcon.Parent = ConsoleFrame
ConsoleIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ConsoleIcon.BackgroundTransparency = 1.000
ConsoleIcon.BorderColor3 = Color3.fromRGB(0, 0, 0)
ConsoleIcon.BorderSizePixel = 0
ConsoleIcon.Position = UDim2.new(0.00979213417, 0, 0.000874322082, 0)
ConsoleIcon.Size = UDim2.new(0, 31, 0, 31)
ConsoleIcon.Image = "http://www.roblox.com/asset/?id=11843683545"
Holder.Name = "Holder"
Holder.Parent = ConsoleFrame
Holder.Active = true
Holder.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
Holder.BackgroundTransparency = 1.000
Holder.BorderColor3 = Color3.fromRGB(0, 0, 0)
Holder.BorderSizePixel = 0
Holder.Position = UDim2.new(0, 0, 0.054600548, 0)
Holder.Size = UDim2.new(1, 0, 0.945399463, 0)
Holder.ScrollBarThickness = 8
Holder.CanvasSize = UDim2.new(0,0,0,0)
Holder.AutomaticCanvasSize = Enum.AutomaticSize.XY
MessageTemplate.Name = "MessageTemplate"
MessageTemplate.Parent = Holder
MessageTemplate.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
MessageTemplate.BackgroundTransparency = 1.000
MessageTemplate.BorderColor3 = Color3.fromRGB(0, 0, 0)
MessageTemplate.BorderSizePixel = 0
MessageTemplate.Size = UDim2.new(0.9745, 0, 0.030000001, 0)
MessageTemplate.Visible = false
MessageTemplate.Font = Enum.Font.RobotoMono
MessageTemplate.Text = "TEMPLATE"
MessageTemplate.TextColor3 = Color3.fromRGB(255, 255, 255)
MessageTemplate.TextSize = 20.000
MessageTemplate.TextXAlignment = Enum.TextXAlignment.Left
MessageTemplate.TextYAlignment = Enum.TextYAlignment.Top
MessageTemplate.RichText = true
UIListLayout.Parent = Holder
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.Padding = UDim.new(0, 4)
HolderPadding.Name = "HolderPadding"
HolderPadding.Parent = Holder
HolderPadding.PaddingLeft = UDim.new(0, 15)
HolderPadding.PaddingTop = UDim.new(0, 15)
InputTemplate.Name = "InputTemplate"
InputTemplate.Parent = nil
InputTemplate.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
InputTemplate.BackgroundTransparency = 1.000
InputTemplate.BorderColor3 = Color3.fromRGB(0, 0, 0)
InputTemplate.BorderSizePixel = 0
InputTemplate.Size = UDim2.new(0.9745, 0, 0.030000001, 0)
InputTemplate.Visible = false
InputTemplate.RichText = true
InputTemplate.Font = Enum.Font.RobotoMono
InputTemplate.Text = ""
InputTemplate.PlaceholderText = ''
InputTemplate.TextColor3 = Color3.fromRGB(255, 255, 255)
InputTemplate.TextSize = 20.000
InputTemplate.TextXAlignment = Enum.TextXAlignment.Left
InputTemplate.TextYAlignment = Enum.TextYAlignment.Top
-- Variables
local Identity = -1
local active = true
-- Others
local oldLoader = loadstring
-- Empty Tables
local clonerefs = {}
local protecteduis = {}
local gc = {}
local Instances = {} -- for nil instances
local funcs = {} -- main table
local names = {} -- protected gui names
local cache = {} -- for cached instances
local Drawings = {} -- for cleardrawcache
-- Non empty tables
local colors = {
BLACK = Color3.fromRGB(50, 50, 50),
BLUE = Color3.fromRGB(0, 0, 204),
GREEN = Color3.fromRGB(0, 255, 0),
CYAN = Color3.fromRGB(0, 255, 255),
RED = Color3.fromHex('#5A0101'),
MAGENTA = Color3.fromRGB(255, 0, 255),
BROWN = Color3.fromRGB(165, 42, 42),
LIGHT_GRAY = Color3.fromRGB(211, 211, 211),
DARK_GRAY = Color3.fromRGB(169, 169, 169),
LIGHT_BLUE = Color3.fromRGB(173, 216, 230),
LIGHT_GREEN = Color3.fromRGB(144, 238, 144),
LIGHT_CYAN = Color3.fromRGB(224, 255, 255),
LIGHT_RED = Color3.fromRGB(255, 204, 203),
LIGHT_MAGENTA = Color3.fromRGB(255, 182, 193),
YELLOW = Color3.fromRGB(255, 255, 0),
WHITE = Color3.fromRGB(255, 255, 255),
ORANGE = Color3.fromRGB(255, 186, 12)
}
local patterns = {
{ pattern = '(%w+)%s*%+=%s*(%w+)', format = "%s = %s + %s" },
{ pattern = '(%w+)%s*%-=%s*(%w+)', format = "%s = %s - %s" },
{ pattern = '(%w+)%s*%*=%s*(%w+)', format = "%s = %s * %s" },
{ pattern = '(%w+)%s*/=%s*(%w+)', format = "%s = %s / %s" }
}
local patterns2 = {
{ pattern = 'for%s+(%w+)%s*,%s*(%w+)%s*in%s*(%w+)%s*do', format = "for %s, %s in pairs(%s) do" }
}
local renv = {
print, warn, error, assert, collectgarbage, load, require, select, tonumber, tostring, type, xpcall, pairs, next, ipairs,
newproxy, rawequal, rawget, rawset, rawlen, setmetatable, PluginManager,
coroutine.create, coroutine.resume, coroutine.running, coroutine.status, coroutine.wrap, coroutine.yield,
bit32.arshift, bit32.band, bit32.bnot, bit32.bor, bit32.btest, bit32.extract, bit32.lshift, bit32.replace, bit32.rshift, bit32.xor,
math.abs, math.acos, math.asin, math.atan, math.atan2, math.ceil, math.cos, math.cosh, math.deg, math.exp, math.floor, math.fmod, math.frexp, math.ldexp, math.log, math.log10, math.max, math.min, math.modf, math.pow, math.rad, math.random, math.randomseed, math.sin, math.sinh, math.sqrt, math.tan, math.tanh,
string.byte, string.char, string.find, string.format, string.gmatch, string.gsub, string.len, string.lower, string.match, string.pack, string.packsize, string.rep, string.reverse, string.sub, string.unpack, string.upper,
table.concat, table.insert, table.pack, table.remove, table.sort, table.unpack,
utf8.char, utf8.charpattern, utf8.codepoint, utf8.codes, utf8.len, utf8.nfdnormalize, utf8.nfcnormalize,
os.clock, os.date, os.difftime, os.time,
delay, elapsedTime, require, spawn, tick, time, typeof, UserSettings, version, wait,
task.defer, task.delay, task.spawn, task.wait,
debug.traceback, debug.profilebegin, debug.profileend
}
local keys={[0x08]=Enum.KeyCode.Backspace,[0x09]=Enum.KeyCode.Tab,[0x0C]=Enum.KeyCode.Clear,[0x0D]=Enum.KeyCode.Return,[0x10]=Enum.KeyCode.LeftShift,[0x11]=Enum.KeyCode.LeftControl,[0x12]=Enum.KeyCode.LeftAlt,[0x13]=Enum.KeyCode.Pause,[0x14]=Enum.KeyCode.CapsLock,[0x1B]=Enum.KeyCode.Escape,[0x20]=Enum.KeyCode.Space,[0x21]=Enum.KeyCode.PageUp,[0x22]=Enum.KeyCode.PageDown,[0x23]=Enum.KeyCode.End,[0x24]=Enum.KeyCode.Home,[0x2D]=Enum.KeyCode.Insert,[0x2E]=Enum.KeyCode.Delete,[0x30]=Enum.KeyCode.Zero,[0x31]=Enum.KeyCode.One,[0x32]=Enum.KeyCode.Two,[0x33]=Enum.KeyCode.Three,[0x34]=Enum.KeyCode.Four,[0x35]=Enum.KeyCode.Five,[0x36]=Enum.KeyCode.Six,[0x37]=Enum.KeyCode.Seven,[0x38]=Enum.KeyCode.Eight,[0x39]=Enum.KeyCode.Nine,[0x41]=Enum.KeyCode.A,[0x42]=Enum.KeyCode.B,[0x43]=Enum.KeyCode.C,[0x44]=Enum.KeyCode.D,[0x45]=Enum.KeyCode.E,[0x46]=Enum.KeyCode.F,[0x47]=Enum.KeyCode.G,[0x48]=Enum.KeyCode.H,[0x49]=Enum.KeyCode.I,[0x4A]=Enum.KeyCode.J,[0x4B]=Enum.KeyCode.K,[0x4C]=Enum.KeyCode.L,[0x4D]=Enum.KeyCode.M,[0x4E]=Enum.KeyCode.N,[0x4F]=Enum.KeyCode.O,[0x50]=Enum.KeyCode.P,[0x51]=Enum.KeyCode.Q,[0x52]=Enum.KeyCode.R,[0x53]=Enum.KeyCode.S,[0x54]=Enum.KeyCode.T,[0x55]=Enum.KeyCode.U,[0x56]=Enum.KeyCode.V,[0x57]=Enum.KeyCode.W,[0x58]=Enum.KeyCode.X,[0x59]=Enum.KeyCode.Y,[0x5A]=Enum.KeyCode.Z,[0x5D]=Enum.KeyCode.Menu,[0x60]=Enum.KeyCode.KeypadZero,[0x61]=Enum.KeyCode.KeypadOne,[0x62]=Enum.KeyCode.KeypadTwo,[0x63]=Enum.KeyCode.KeypadThree,[0x64]=Enum.KeyCode.KeypadFour,[0x65]=Enum.KeyCode.KeypadFive,[0x66]=Enum.KeyCode.KeypadSix,[0x67]=Enum.KeyCode.KeypadSeven,[0x68]=Enum.KeyCode.KeypadEight,[0x69]=Enum.KeyCode.KeypadNine,[0x6A]=Enum.KeyCode.KeypadMultiply,[0x6B]=Enum.KeyCode.KeypadPlus,[0x6D]=Enum.KeyCode.KeypadMinus,[0x6E]=Enum.KeyCode.KeypadPeriod,[0x6F]=Enum.KeyCode.KeypadDivide,[0x70]=Enum.KeyCode.F1,[0x71]=Enum.KeyCode.F2,[0x72]=Enum.KeyCode.F3,[0x73]=Enum.KeyCode.F4,[0x74]=Enum.KeyCode.F5,[0x75]=Enum.KeyCode.F6,[0x76]=Enum.KeyCode.F7,[0x77]=Enum.KeyCode.F8,[0x78]=Enum.KeyCode.F9,[0x79]=Enum.KeyCode.F10,[0x7A]=Enum.KeyCode.F11,[0x7B]=Enum.KeyCode.F12,[0x90]=Enum.KeyCode.NumLock,[0x91]=Enum.KeyCode.ScrollLock,[0xBA]=Enum.KeyCode.Semicolon,[0xBB]=Enum.KeyCode.Equals,[0xBC]=Enum.KeyCode.Comma,[0xBD]=Enum.KeyCode.Minus,[0xBE]=Enum.KeyCode.Period,[0xBF]=Enum.KeyCode.Slash,[0xC0]=Enum.KeyCode.Backquote,[0xDB]=Enum.KeyCode.LeftBracket,[0xDD]=Enum.KeyCode.RightBracket,[0xDE]=Enum.KeyCode.Quote} -- for keypress
local Fonts = { -- Drawing.Fonts
[0] = Enum.Font.Arial,
[1] = Enum.Font.BuilderSans,
[2] = Enum.Font.Gotham,
[3] = Enum.Font.RobotoMono
}
-- rconsole
local MessageColor = colors['WHITE']
local ConsoleClone = nil
-- functions
local function Descendants(tbl)
local descendants = {}
local function process_table(subtbl, prefix)
for k, v in pairs(subtbl) do
local index = prefix and (prefix .. "." .. tostring(k)) or tostring(k)
descendants[index] = v
if type(v) == 'table' then
process_table(v, index)
else
descendants[index] = v
end
end
end
if type(tbl) ~= 'table' then
descendants[tostring(1)] = tbl
else
process_table(tbl, nil)
end
return descendants
end
local function rawlength(tbl)
local a = 0
for i, v in pairs(tbl) do
a = a + 1
end
return a
end
local function ToPairsLoop(code)
for _, p in ipairs(patterns2) do
code = code:gsub(p.pattern, function(var1, var2, tbl)
return p.format:format(var1, var2, tbl)
end)
end
return code
end
local function SafeOverride(a, b, c) --[[ Index, Data, Should override ]]
if getgenv()[a] and not c then return 1 end
getfenv(0)[a] = b
return 2
end
local function toluau(code)
for _, p in ipairs(patterns) do
code = code:gsub(p.pattern, function(var, value)
return p.format:format(var, var, value)
end)
end
code = ToPairsLoop(code)
return code
end
local function handleInput(input, Object)
if isDragging then
local delta = input.Position - dragStartPos
Object.Position = UDim2.new(
frameStartPos.X.Scale,
frameStartPos.X.Offset + delta.X,
frameStartPos.Y.Scale,
frameStartPos.Y.Offset + delta.Y
)
end
end
local function startDrag(input, Object)
isDragging = true
dragStartPos = input.Position
frameStartPos = Object.Position
input.UserInputState = Enum.UserInputState.Begin
end
local function stopDrag(input)
isDragging = false
input.UserInputState = Enum.UserInputState.End
end
-- Main Functions
function QueueGetIdentity()
printidentity()
task.wait(.1)
local messages = Log:GetLogHistory()
local message;
if not messages[#messages].message:match("Current identity is") then
for i = #messages, 1, -1 do
if messages[i].message:match("Current identity is %d") then
message = messages[i].message
break
end
end
else
message = messages[#messages].message:match('Current identity is %d'):gsub("Current identity is ", '')
end
Identity = tonumber(message)
end
local Queue = {}
Queue.__index = Queue
function Queue.new()
local self = setmetatable({}, Queue)
self.elements = {}
return self
end
function Queue:Queue(element)
table.insert(self.elements, element)
end
function Queue:Update()
if #self.elements == 0 then
return nil
end
return table.remove(self.elements, 1)
end
function Queue:IsEmpty()
return #self.elements == 0
end
function Queue:Current()
return self.elements
end
-- Events
game.DescendantRemoving:Connect(function(des)
table.insert(Instances, des)
cache[des] = 'REMOVE'
end)
game.DescendantAdded:Connect(function(des)
cache[des] = true
end)
game:GetService("UserInputService").WindowFocused:Connect(function()
active = true
end)
game:GetService("UserInputService").WindowFocusReleased:Connect(function()
active = false
end)
game:GetService("UserInputService").InputChanged:Connect(function(input)
if not input then return end
if isDragging and input.UserInputType == Enum.UserInputType.MouseMovement and ConsoleClone then
handleInput(input, ConsoleClone.ConsoleFrame)
end
end)
game:GetService("UserInputService").InputEnded:Connect(function(input)
if not input then return end
if input.UserInputType == Enum.UserInputType.MouseButton1 then
stopDrag(input)
end
end)
-- Libraries
funcs.base64 = {}
funcs.crypt = {hex={},url={}}
funcs.syn = {}
funcs.syn_backup = {}
funcs.http = {}
funcs.Drawing = {}
funcs.cache = {}
funcs.debug = debug
funcs.debug.getinfo = function(t)
local CurrentLine = tonumber(debug.info(t, 'l'))
local Source = debug.info(t, 's')
local name = debug.info(t, 'n')
local numparams, isvrg = debug.info(t, 'a')
if #name == 0 then name = nil end
local a, b = debug.info(t, 'a')
return {
['currentline'] = CurrentLine,
['source'] = Source,
['name'] = tostring(name),
['numparams'] = tonumber(numparams),
['is_vararg'] = isvrg and 1 or 0,
['short_src'] = tostring(Source:sub(1, 60)),
['what'] = Source == '[C]' and 'C' or 'Lua',
['func'] = t,
['nups'] = 0 -- i CANNOT make an upvalue thingy
}
end
funcs.Drawing.Fonts = {
['UI'] = 0,
['System'] = 1,
['Plex'] = 2,
['Monospace'] = 3
}
local ClipboardQueue = Queue.new()
local ConsoleQueue = Queue.new()
local getgenv = getgenv or getfenv(2)
getgenv().getgenv = getgenv
-- _G fix:
getgenv()._G = table.clone(_G)
-- [[ Functions ]]
--[[funcs.cloneref = function(a)
if not clonerefs[a] then clonerefs[a] = {} end
local Clone = {}
local mt = {__type='Instance'} -- idk if this works ;(
mt.__tostring = function()
return a.Name
end
mt.__index = function(_, key)
local thing = a[key]
if type(thing) == 'function' then
return function(...)
return thing(a, ...)
end
else
return thing
end
end
mt.__newindex = function(_, key, value)
a[key] = value
end
mt.__metatable = 'The metatable is locked'
mt.__len = function(self)
return error('attempt to get length of a userdata value')
end
setmetatable(Clone, mt)
table.insert(clonerefs[a], Clone)
return Clone
end
FUNCTION REMOVED FOR NOW.
]]
funcs.compareinstances = function(a, b)
if not clonerefs[a] then
return a == b
else
if table.find(clonerefs[a], b) then return true end
end
return false
end
funcs.cache.iscached = function(thing)
return cache[thing] ~= 'REMOVE' and thing:IsDescendantOf(game) or false -- If it's cache isnt 'REMOVE' and its a des of game (Usually always true) or if its cache is 'REMOVE' then its false.
end
funcs.cache.invalidate = function(thing)
cache[thing] = 'REMOVE'
thing.Parent = nil
end
funcs.cache.replace = function(a, b)
if cache[a] then
cache[a] = b
end
local n, p = a.Name, a.Parent -- name, parent
b.Parent = p
b.Name = n
a.Parent = nil
end
funcs.deepclone = function(a)
local Result = {}
for i, v in pairs(a) do
if type(v) == 'table' then
Result[i] = funcs.deepclone(v)
end
Result[i] = v
end
return Result
end
funcs.base64.encode = function(data)
local letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
return ((data:gsub('.', function(x)
local r,b='',x:byte()
for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and '1' or '0') end
return r;
end)..'0000'):gsub('%d%d%d?%d?%d?%d?', function(x)
if (#x < 6) then return '' end
local c=0
for i=1,6 do c=c+(x:sub(i,i)=='1' and 2^(6-i) or 0) end
return letters:sub(c+1,c+1)
end)..({ '', '==', '=' })[#data%3+1])
end
funcs.base64.decode = function(data)
local b = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
data = string.gsub(data, '[^'..b..'=]', '')
return (data:gsub('.', function(x)
if x == '=' then return '' end
local r, f = '', (b:find(x) - 1)
for i = 6, 1, -1 do
r = r .. (f % 2^i - f % 2^(i - 1) > 0 and '1' or '0')
end
return r;
end):gsub('%d%d%d?%d?%d?%d?%d?%d?', function(x)
if #x ~= 8 then return '' end
local c = 0
for i = 1, 8 do
c = c + (x:sub(i, i) == '1' and 2^(8 - i) or 0)
end
return string.char(c)
end))
end
funcs.loadstring = function(code)
local s1, val1 = pcall(function()
return loadstring('local v1=15;v1+=1;return v1')()
end)
local s2, val2 = pcall(function()
return loadstring('local v1={"a"};for i, v in v1 do return v end')()
end)
if val1 ~= 16 and val2 ~= 'a' then
return oldLoader(toluau(code))
else
return oldLoader(code)
end
end
funcs.getgenv = getgenv
funcs.crypt.base64 = funcs.base64
funcs.crypt.base64encode = funcs.base64.encode
funcs.crypt.base64decode = funcs.base64.decode
funcs.crypt.base64_encode = funcs.base64.encode
funcs.crypt.base64_decode = funcs.base64.decode
funcs.base64_encode = funcs.base64.encode
funcs.base64_decode = funcs.base64.decode
funcs.crypt.hex.encode = function(txt)
txt = tostring(txt)
local hex = ''
for i = 1, #txt do
hex = hex .. string.format("%02x", string.byte(txt, i))
end
return hex
end
funcs.crypt.hex.decode = function(hex)
hex = tostring(hex)
local text = ""
for i = 1, #hex, 2 do
local byte_str = string.sub(hex, i, i+1)
local byte = tonumber(byte_str, 16)
text = text .. string.char(byte)
end
return text
end
funcs.crypt.url.encode = function(a)
return game:GetService("HttpService"):UrlEncode(a)
end
funcs.crypt.url.decode = function(a)
a = tostring(a)
a = string.gsub(a, "+", " ")
a = string.gsub(a, "%%(%x%x)", function(hex)
return string.char(tonumber(hex, 16))
end)
a = string.gsub(a, "\r\n", "\n")
return a
end
funcs.crypt.generatekey = function(optionalSize)
local key = ''
local a = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
for i = 1, optionalSize or 32 do local n = math.random(1, #a) key = key .. a:sub(n, n) end
return funcs.base64.encode(key)
end
funcs.crypt.generatebytes = function(size)
if type(size) ~= 'number' then return error('missing arguement #1 to \'generatebytes\' (number expected)') end
return funcs.crypt.generatekey(size)
end
funcs.crypt.encrypt = function(a, b)
local result = {}
a = tostring(a) b = tostring(b)
for i = 1, #a do
local byte = string.byte(a, i)
local keyByte = string.byte(b, (i - 1) % #b + 1)
table.insert(result, string.char(bit32.bxor(byte, keyByte)))
end
return table.concat(result)
end
funcs.crypt.decrypt = funcs.crypt.encrypt
funcs.crypt.random = function(len)
return funcs.crypt.generatekey(len)
end
funcs.isrbxactive = function()
return active
end
funcs.isgameactive = funcs.isrbxactive
funcs.gethui = function()
local s, H = pcall(function()
return game:GetService("CoreGui").RobloxGui
end)
if H then
if not hui.Parent then
hui.Parent = H.Parent
end
return hui
else
if not hui.Parent then
hui.Parent = game:GetService("Players").LocalPlayer.PlayerGui
end
end
return hui
end
if getgenv().getrenv and #getgenv().getrenv() == 0 or not getgenv().getrenv then
getgenv().getrenv = nil
getgenv().getrenv = function() -- Override incognito's getrenv
return renv -- couldn't think of a better way to implement it
end
end
funcs.fireclickdetector = function(a1) --[[ this and firetouchinterest will be replaced, since they can be done using fireevent ]]
assert(typeof(a1) == "Instance", "Instance expected")
if a1:IsA("ClickDetector") then
print("A1 is correct instance type")
else
print("A1 is the incorrect instance type!")
end
if a1.ClassName == "ClickDetector" then
_ing1("fireclickdetector", game:GetService("Players").LocalPlayer, a1);
else
for _,v in pairs(a1:GetDescendants()) do
if v.ClassName == "ClickDetector" then
_ing1("fireclickdetector", game:GetService("Players").LocalPlayer, v);
end
end
end
end
funcs.getgenv = function()
return getrawmetatable(getfenv(0)).__index
end
funcs.getsenv = function(scr)
if scr == nil then
return getfenv()
end
for i, v in next, getreg() do
if type(v) == "function" and getfenv(v).script == scr then
return getfenv(v)
end
end
error("Script environment could not be found.")
end
funcs.setclipboard = function(data)
repeat task.wait() until ClipboardQueue:Current()[1] == data or ClipboardQueue:IsEmpty()
ClipboardQueue:Queue(data)
local old = game:GetService("UserInputService"):GetFocusedTextBox()
local copy = ClipboardQueue:Current()[1]
ClipboardBox:CaptureFocus()
ClipboardBox.Text = copy
local KeyCode = Enum.KeyCode
local Keys = {KeyCode.RightControl, KeyCode.A}
local Keys2 = {KeyCode.RightControl, KeyCode.C, KeyCode.V}
for _, v in ipairs(Keys) do
vim:SendKeyEvent(true, v, false, game)
task.wait()
end
for _, v in ipairs(Keys) do
vim:SendKeyEvent(false, v, false, game)
task.wait()
end
for _, v in ipairs(Keys2) do
vim:SendKeyEvent(true, v, false, game)
task.wait()
end
for _, v in ipairs(Keys2) do
vim:SendKeyEvent(false, v, false, game)
task.wait()
end
ClipboardBox.Text = ''
if old then old:CaptureFocus() end
task.wait(.18)
ClipboardQueue:Update()
end
funcs.syn.write_clipboard = funcs.setclipboard
funcs.toclipboard = funcs.setclipboard
funcs.writeclipboard = funcs.setclipboard
funcs.setrbxclipboard = funcs.setclipboard
funcs.isrenderobj = function(thing)
return Drawings[thing] ~= nil
end
funcs.getrenderproperty = function(thing, prop)
return thing[prop]
end
funcs.setrenderproperty = function(thing, prop, val)
local success, err = pcall(function()
thing[prop] = val
end)
if not success and err then warn(err) end
end
funcs.syn.protect_gui = function(gui)
names[gui] = {name=gui.Name,parent=gui.Parent}
protecteduis[gui] = gui
gui.Name = funcs.crypt.random(64) -- 64 byte string, removed hashing cuz its useless lmao
gui.Parent = gethui()
end
funcs.syn.unprotect_gui = function(gui)
if names[gui] then gui.Name = names[gui].name gui.Parent = names[gui].parent end protecteduis[gui] = nil
end
funcs.syn.protectgui = funcs.syn.protect_gui
funcs.syn.unprotectgui = funcs.syn.unprotect_gui
funcs.syn.secure_call = function(func) -- Does not do a secure call, just pcalls it.
return pcall(func)
end
funcs.isreadonly = function(tbl)
if type(tbl) ~= 'table' then return false end
return table.isfrozen(tbl)
end
funcs.setreadonly = function(tbl, cond)
if cond then
table.freeze(tbl)
else
return funcs.deepclone(tbl)
end
end
funcs.httpget = function(url)
return game:HttpGet(url)
end
funcs.httppost = function(url, body, contenttype)
return game:HttpPostAsync(url, body, contenttype)
end
funcs.request = function(args)
local Body = nil
local Timeout = 0
local function callback(success, body)
Body = body
Body['Success'] = success
end
HttpService:RequestInternal(args):Start(callback)
while not Body and Timeout < 10 do
task.wait(.1)
Timeout = Timeout + .1
end
return Body
end
funcs.mouse1click = function(x, y)
x = x or 0
y = y or 0
vim:SendMouseButtonEvent(x, y, 0, true, game, false)
task.wait()
vim:SendMouseButtonEvent(x, y, 0, false, game, false)
end
funcs.mouse2click = function(x, y)
x = x or 0
y = y or 0
vim:SendMouseButtonEvent(x, y, 1, true, game, false)
task.wait()
vim:SendMouseButtonEvent(x, y, 1, false, game, false)
end
funcs.mouse1press = function(x, y)
x = x or 0
y = y or 0
vim:SendMouseButtonEvent(x, y, 0, true, game, false)
end
funcs.mouse1release = function(x, y)
x = x or 0
y = y or 0
vim:SendMouseButtonEvent(x, y, 0, false, game, false)
end
funcs.mouse2press = function(x, y)
x = x or 0
y = y or 0
vim:SendMouseButtonEvent(x, y, 1, true, game, false)
end
funcs.mouse2release = function(x, y)
x = x or 0
y = y or 0
vim:SendMouseButtonEvent(x, y, 1, false, game, false)
end
funcs.mousescroll = function(x, y, a)
x = x or 0
y = y or 0
a = a and true or false
vim:SendMouseWheelEvent(x, y, a, game)
end
funcs.keyclick = function(key)
if typeof(key) == 'number' then
if not keys[key] then return error("Key "..tostring(key) .. ' not found!') end
vim:SendKeyEvent(true, keys[key], false, game)
task.wait()
vim:SendKeyEvent(false, keys[key], false, game)
elseif typeof(Key) == 'EnumItem' then
vim:SendKeyEvent(true, key, false, game)
task.wait()
vim:SendKeyEvent(false, key, false, game)
end
end
funcs.keypress = function(key)
if typeof(key) == 'number' then
if not keys[key] then return error("Key "..tostring(key) .. ' not found!') end
vim:SendKeyEvent(true, keys[key], false, game)
elseif typeof(Key) == 'EnumItem' then
vim:SendKeyEvent(true, key, false, game)
end
end
funcs.keyrelease = function(key)
if typeof(key) == 'number' then
if not keys[key] then return error("Key "..tostring(key) .. ' not found!') end
vim:SendKeyEvent(false, keys[key], false, game)
elseif typeof(Key) == 'EnumItem' then
vim:SendKeyEvent(false, key, false, game)
end
end
funcs.mousemoverel = function(relx, rely)
local Pos = workspace.CurrentCamera.ViewportSize
relx = relx or 0
rely = rely or 0
local x = Pos.X * relx
local y = Pos.Y * rely
vim:SendMouseMoveEvent(x, y, game)
end
funcs.mousemoveabs = function(x, y)
x = x or 0 y = y or 0
vim:SendMouseMoveEvent(x, y, game)
end
funcs.newcclosure = function(f)
local a = coroutine.wrap(function(...)
local b = {coroutine.yield()}
while true do
b = {coroutine.yield(f(table.unpack(b)))}
end
end)
a()
return a
end -- Credits to myworld AND EMPER for this
funcs.iscclosure = function(fnc) return debug.info(fnc, 's') == '[C]' end
funcs.islclosure = function(func) return not funcs.iscclosure(func) end
funcs.isexecutorclosure = function(fnc)
local found = false
for i, v in pairs(getgenv()) do
if v == fnc then return true end
end
for i = 1, math.huge do
local s, env = pcall(getfenv, i)
if not s or found then break end
if type(env) == "table" then
for _, v in pairs(env) do
if v == fnc then
found = true
break
end
end
end
if found then break end
end
return found
end
funcs.newlclosure = function(fnc)
return function(...) return fnc(...) end
end
funcs.clonefunction = funcs.newlclosure
funcs.is_l_closure = funcs.islclosure
funcs.is_executor_closure = funcs.isexecutorclosure
funcs.isourclosure = funcs.isexecutorclosure
funcs.isexecclosure = funcs.isexecutorclosure
funcs.checkclosure = funcs.isourclosure
funcs.http.request = funcs.request
funcs.syn.crypt = funcs.crypt
funcs.syn.crypto = funcs.crypt
funcs.syn_backup = funcs.syn
funcs.getexecutorname = function()
return 'MoreUNC', Version
end
funcs.identifyexecutor = funcs.getexecutorname
funcs.http_request = getgenv().request or funcs.request
funcs.getscripts = function()
local a = {};for i, v in pairs(game:GetDescendants()) do if v:IsA("LocalScript") or v:IsA("ModuleScript") then table.insert(a, v) end end return a
end
funcs.get_scripts = function()
local a = {};for i, v in pairs(game:GetDescendants()) do if v:IsA("LocalScript") or v:IsA("ModuleScript") then table.insert(a, v) end end return a
end
funcs.getmodules = function()