-
-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathConsole.rbxmx
More file actions
852 lines (812 loc) · 27.5 KB
/
Console.rbxmx
File metadata and controls
852 lines (812 loc) · 27.5 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
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4">
<Meta name="ExplicitAutoJoints">true</Meta>
<External>null</External>
<External>nil</External>
<Item class="ScreenGui" referent="RBX2301E89A182C4A29A8A317CA325109D3">
<Properties>
<BinaryString name="AttributesSerialize"></BinaryString>
<bool name="AutoLocalize">false</bool>
<bool name="ClipToDeviceSafeArea">true</bool>
<int name="DisplayOrder">9000000</int>
<bool name="Enabled">false</bool>
<bool name="IgnoreGuiInset">false</bool>
<string name="Name">Console</string>
<bool name="ResetOnSpawn">false</bool>
<Ref name="RootLocalizationTable">null</Ref>
<token name="SafeAreaCompatibility">1</token>
<token name="SelectionBehaviorDown">0</token>
<token name="SelectionBehaviorLeft">0</token>
<token name="SelectionBehaviorRight">0</token>
<token name="SelectionBehaviorUp">0</token>
<bool name="SelectionGroup">false</bool>
<int64 name="SourceAssetId">-1</int64>
<BinaryString name="Tags"></BinaryString>
<token name="ZIndexBehavior">0</token>
</Properties>
<Item class="Frame" referent="RBXBB2AB6D097064807B0A084DE21D1B5B5">
<Properties>
<bool name="Active">false</bool>
<Vector2 name="AnchorPoint">
<X>0</X>
<Y>0</Y>
</Vector2>
<BinaryString name="AttributesSerialize"></BinaryString>
<bool name="AutoLocalize">false</bool>
<token name="AutomaticSize">0</token>
<Color3 name="BackgroundColor3">
<R>0.0862745121</R>
<G>0.0862745121</G>
<B>0.0862745121</B>
</Color3>
<float name="BackgroundTransparency">0.100000001</float>
<Color3 name="BorderColor3">
<R>0</R>
<G>0</G>
<B>0</B>
</Color3>
<token name="BorderMode">0</token>
<int name="BorderSizePixel">0</int>
<bool name="ClipsDescendants">false</bool>
<bool name="Draggable">false</bool>
<int name="LayoutOrder">0</int>
<string name="Name">Frame</string>
<Ref name="NextSelectionDown">null</Ref>
<Ref name="NextSelectionLeft">null</Ref>
<Ref name="NextSelectionRight">null</Ref>
<Ref name="NextSelectionUp">null</Ref>
<UDim2 name="Position">
<XS>0</XS>
<XO>0</XO>
<YS>0</YS>
<YO>0</YO>
</UDim2>
<Ref name="RootLocalizationTable">null</Ref>
<float name="Rotation">0</float>
<bool name="Selectable">false</bool>
<token name="SelectionBehaviorDown">0</token>
<token name="SelectionBehaviorLeft">0</token>
<token name="SelectionBehaviorRight">0</token>
<token name="SelectionBehaviorUp">0</token>
<bool name="SelectionGroup">false</bool>
<Ref name="SelectionImageObject">null</Ref>
<int name="SelectionOrder">0</int>
<UDim2 name="Size">
<XS>1</XS>
<XO>0</XO>
<YS>0</YS>
<YO>140</YO>
</UDim2>
<token name="SizeConstraint">0</token>
<int64 name="SourceAssetId">-1</int64>
<token name="Style">0</token>
<BinaryString name="Tags"></BinaryString>
<bool name="Visible">true</bool>
<int name="ZIndex">1</int>
</Properties>
<Item class="ScrollingFrame" referent="RBXCAD58FE9AE85435CB7D331FCDAC7055C">
<Properties>
<bool name="Active">false</bool>
<Vector2 name="AnchorPoint">
<X>0</X>
<Y>0</Y>
</Vector2>
<BinaryString name="AttributesSerialize"></BinaryString>
<bool name="AutoLocalize">false</bool>
<token name="AutomaticCanvasSize">0</token>
<token name="AutomaticSize">0</token>
<Color3 name="BackgroundColor3">
<R>0.164705887</R>
<G>0.164705887</G>
<B>0.164705887</B>
</Color3>
<float name="BackgroundTransparency">1</float>
<Color3 name="BorderColor3">
<R>0</R>
<G>0</G>
<B>0</B>
</Color3>
<token name="BorderMode">0</token>
<int name="BorderSizePixel">0</int>
<Content name="BottomImage"><url>http://roblox.com/asset?id=158348114</url></Content>
<Vector2 name="CanvasPosition">
<X>0</X>
<Y>0</Y>
</Vector2>
<UDim2 name="CanvasSize">
<XS>0</XS>
<XO>0</XO>
<YS>0</YS>
<YO>1000</YO>
</UDim2>
<bool name="ClipsDescendants">true</bool>
<bool name="Draggable">false</bool>
<token name="ElasticBehavior">0</token>
<token name="HorizontalScrollBarInset">0</token>
<int name="LayoutOrder">0</int>
<Content name="MidImage"><url>http://roblox.com/asset?id=158348114</url></Content>
<string name="Name">PlayerList</string>
<Ref name="NextSelectionDown">null</Ref>
<Ref name="NextSelectionLeft">null</Ref>
<Ref name="NextSelectionRight">null</Ref>
<Ref name="NextSelectionUp">null</Ref>
<UDim2 name="Position">
<XS>1</XS>
<XO>-125</XO>
<YS>0</YS>
<YO>35</YO>
</UDim2>
<Ref name="RootLocalizationTable">null</Ref>
<float name="Rotation">0</float>
<Color3 name="ScrollBarImageColor3">
<R>1</R>
<G>1</G>
<B>1</B>
</Color3>
<float name="ScrollBarImageTransparency">0</float>
<int name="ScrollBarThickness">0</int>
<token name="ScrollingDirection">2</token>
<bool name="ScrollingEnabled">true</bool>
<bool name="Selectable">true</bool>
<token name="SelectionBehaviorDown">0</token>
<token name="SelectionBehaviorLeft">0</token>
<token name="SelectionBehaviorRight">0</token>
<token name="SelectionBehaviorUp">0</token>
<bool name="SelectionGroup">true</bool>
<Ref name="SelectionImageObject">null</Ref>
<int name="SelectionOrder">0</int>
<UDim2 name="Size">
<XS>0</XS>
<XO>120</XO>
<YS>0</YS>
<YO>100</YO>
</UDim2>
<token name="SizeConstraint">0</token>
<int64 name="SourceAssetId">-1</int64>
<BinaryString name="Tags"></BinaryString>
<Content name="TopImage"><url>http://roblox.com/asset?id=158348114</url></Content>
<token name="VerticalScrollBarInset">0</token>
<token name="VerticalScrollBarPosition">0</token>
<bool name="Visible">true</bool>
<int name="ZIndex">2</int>
</Properties>
</Item>
<Item class="TextBox" referent="RBX91EB47877E5C474EA1DD2182AC28EB76">
<Properties>
<bool name="Active">true</bool>
<Vector2 name="AnchorPoint">
<X>0</X>
<Y>0</Y>
</Vector2>
<BinaryString name="AttributesSerialize"></BinaryString>
<bool name="AutoLocalize">false</bool>
<token name="AutomaticSize">0</token>
<Color3 name="BackgroundColor3">
<R>0.0862745121</R>
<G>0.0862745121</G>
<B>0.0862745121</B>
</Color3>
<float name="BackgroundTransparency">1</float>
<Color3 name="BorderColor3">
<R>0.0862745121</R>
<G>0.0862745121</G>
<B>0.0862745121</B>
</Color3>
<token name="BorderMode">0</token>
<int name="BorderSizePixel">5</int>
<bool name="ClearTextOnFocus">false</bool>
<bool name="ClipsDescendants">false</bool>
<bool name="Draggable">false</bool>
<token name="Font">16</token>
<Font name="FontFace">
<Family><url>rbxasset://fonts/families/SourceSansPro.json</url></Family>
<Weight>600</Weight>
<Style>Normal</Style>
<CachedFaceId><url>rbxasset://fonts/SourceSansPro-Semibold.ttf</url></CachedFaceId>
</Font>
<int name="LayoutOrder">0</int>
<float name="LineHeight">1</float>
<int name="MaxVisibleGraphemes">-1</int>
<bool name="MultiLine">false</bool>
<string name="Name">TextBox</string>
<Ref name="NextSelectionDown">null</Ref>
<Ref name="NextSelectionLeft">null</Ref>
<Ref name="NextSelectionRight">null</Ref>
<Ref name="NextSelectionUp">null</Ref>
<Color3 name="PlaceholderColor3">
<R>0.699999988</R>
<G>0.699999988</G>
<B>0.699999988</B>
</Color3>
<string name="PlaceholderText"></string>
<UDim2 name="Position">
<XS>0</XS>
<XO>5</XO>
<YS>0</YS>
<YO>5</YO>
</UDim2>
<bool name="RichText">false</bool>
<Ref name="RootLocalizationTable">null</Ref>
<float name="Rotation">0</float>
<bool name="Selectable">true</bool>
<token name="SelectionBehaviorDown">0</token>
<token name="SelectionBehaviorLeft">0</token>
<token name="SelectionBehaviorRight">0</token>
<token name="SelectionBehaviorUp">0</token>
<bool name="SelectionGroup">false</bool>
<Ref name="SelectionImageObject">null</Ref>
<int name="SelectionOrder">0</int>
<bool name="ShowNativeInput">true</bool>
<UDim2 name="Size">
<XS>1</XS>
<XO>-10</XO>
<YS>0</YS>
<YO>30</YO>
</UDim2>
<token name="SizeConstraint">0</token>
<int64 name="SourceAssetId">-1</int64>
<BinaryString name="Tags"></BinaryString>
<string name="Text"></string>
<Color3 name="TextColor3">
<R>1</R>
<G>1</G>
<B>1</B>
</Color3>
<bool name="TextEditable">true</bool>
<bool name="TextScaled">false</bool>
<float name="TextSize">22</float>
<Color3 name="TextStrokeColor3">
<R>1</R>
<G>1</G>
<B>1</B>
</Color3>
<float name="TextStrokeTransparency">1</float>
<float name="TextTransparency">0</float>
<token name="TextTruncate">0</token>
<bool name="TextWrapped">true</bool>
<token name="TextXAlignment">0</token>
<token name="TextYAlignment">1</token>
<bool name="Visible">true</bool>
<int name="ZIndex">1</int>
</Properties>
</Item>
<Item class="Frame" referent="RBXF724A454860F40D29871A4F7DDC974CE">
<Properties>
<bool name="Active">false</bool>
<Vector2 name="AnchorPoint">
<X>0</X>
<Y>1</Y>
</Vector2>
<BinaryString name="AttributesSerialize"></BinaryString>
<bool name="AutoLocalize">false</bool>
<token name="AutomaticSize">0</token>
<Color3 name="BackgroundColor3">
<R>0.0862745121</R>
<G>0.0862745121</G>
<B>0.0862745121</B>
</Color3>
<float name="BackgroundTransparency">0.100000001</float>
<Color3 name="BorderColor3">
<R>0</R>
<G>0</G>
<B>0</B>
</Color3>
<token name="BorderMode">0</token>
<int name="BorderSizePixel">0</int>
<bool name="ClipsDescendants">true</bool>
<bool name="Draggable">false</bool>
<int name="LayoutOrder">0</int>
<string name="Name">TopBar</string>
<Ref name="NextSelectionDown">null</Ref>
<Ref name="NextSelectionLeft">null</Ref>
<Ref name="NextSelectionRight">null</Ref>
<Ref name="NextSelectionUp">null</Ref>
<UDim2 name="Position">
<XS>0</XS>
<XO>0</XO>
<YS>0</YS>
<YO>0</YO>
</UDim2>
<Ref name="RootLocalizationTable">null</Ref>
<float name="Rotation">0</float>
<bool name="Selectable">false</bool>
<token name="SelectionBehaviorDown">0</token>
<token name="SelectionBehaviorLeft">0</token>
<token name="SelectionBehaviorRight">0</token>
<token name="SelectionBehaviorUp">0</token>
<bool name="SelectionGroup">false</bool>
<Ref name="SelectionImageObject">null</Ref>
<int name="SelectionOrder">0</int>
<UDim2 name="Size">
<XS>1</XS>
<XO>0</XO>
<YS>0</YS>
<YO>40</YO>
</UDim2>
<token name="SizeConstraint">0</token>
<int64 name="SourceAssetId">-1</int64>
<token name="Style">0</token>
<BinaryString name="Tags"></BinaryString>
<bool name="Visible">true</bool>
<int name="ZIndex">5</int>
</Properties>
</Item>
<Item class="ScrollingFrame" referent="RBXF43C44E636F54A918C03DBC086B0EC8C">
<Properties>
<bool name="Active">false</bool>
<Vector2 name="AnchorPoint">
<X>0</X>
<Y>0</Y>
</Vector2>
<BinaryString name="AttributesSerialize"></BinaryString>
<bool name="AutoLocalize">false</bool>
<token name="AutomaticCanvasSize">0</token>
<token name="AutomaticSize">0</token>
<Color3 name="BackgroundColor3">
<R>0.0862745121</R>
<G>0.0862745121</G>
<B>0.0862745121</B>
</Color3>
<float name="BackgroundTransparency">1</float>
<Color3 name="BorderColor3">
<R>0</R>
<G>0</G>
<B>0</B>
</Color3>
<token name="BorderMode">0</token>
<int name="BorderSizePixel">0</int>
<Content name="BottomImage"><url>http://roblox.com/asset?id=158348114</url></Content>
<Vector2 name="CanvasPosition">
<X>0</X>
<Y>0</Y>
</Vector2>
<UDim2 name="CanvasSize">
<XS>0</XS>
<XO>0</XO>
<YS>0</YS>
<YO>1000</YO>
</UDim2>
<bool name="ClipsDescendants">true</bool>
<bool name="Draggable">false</bool>
<token name="ElasticBehavior">0</token>
<token name="HorizontalScrollBarInset">0</token>
<int name="LayoutOrder">0</int>
<Content name="MidImage"><url>http://roblox.com/asset?id=158348114</url></Content>
<string name="Name">ScrollingFrame</string>
<Ref name="NextSelectionDown">null</Ref>
<Ref name="NextSelectionLeft">null</Ref>
<Ref name="NextSelectionRight">null</Ref>
<Ref name="NextSelectionUp">null</Ref>
<UDim2 name="Position">
<XS>0</XS>
<XO>5</XO>
<YS>0</YS>
<YO>35</YO>
</UDim2>
<Ref name="RootLocalizationTable">null</Ref>
<float name="Rotation">0</float>
<Color3 name="ScrollBarImageColor3">
<R>1</R>
<G>1</G>
<B>1</B>
</Color3>
<float name="ScrollBarImageTransparency">0</float>
<int name="ScrollBarThickness">0</int>
<token name="ScrollingDirection">2</token>
<bool name="ScrollingEnabled">true</bool>
<bool name="Selectable">true</bool>
<token name="SelectionBehaviorDown">0</token>
<token name="SelectionBehaviorLeft">0</token>
<token name="SelectionBehaviorRight">0</token>
<token name="SelectionBehaviorUp">0</token>
<bool name="SelectionGroup">true</bool>
<Ref name="SelectionImageObject">null</Ref>
<int name="SelectionOrder">0</int>
<UDim2 name="Size">
<XS>1</XS>
<XO>-130</XO>
<YS>0</YS>
<YO>100</YO>
</UDim2>
<token name="SizeConstraint">0</token>
<int64 name="SourceAssetId">-1</int64>
<BinaryString name="Tags"></BinaryString>
<Content name="TopImage"><url>http://roblox.com/asset?id=158348114</url></Content>
<token name="VerticalScrollBarInset">0</token>
<token name="VerticalScrollBarPosition">0</token>
<bool name="Visible">true</bool>
<int name="ZIndex">2</int>
</Properties>
</Item>
</Item>
<Item class="TextButton" referent="RBX6A85C01399694BF29C0685D67D3AB627">
<Properties>
<bool name="Active">true</bool>
<Vector2 name="AnchorPoint">
<X>0</X>
<Y>0</Y>
</Vector2>
<BinaryString name="AttributesSerialize"></BinaryString>
<bool name="AutoButtonColor">true</bool>
<bool name="AutoLocalize">false</bool>
<token name="AutomaticSize">0</token>
<Color3 name="BackgroundColor3">
<R>0.227450997</R>
<G>0.258823544</G>
<B>0.36470589</B>
</Color3>
<float name="BackgroundTransparency">1</float>
<Color3 name="BorderColor3">
<R>0.105882362</R>
<G>0.164705887</G>
<B>0.207843155</B>
</Color3>
<token name="BorderMode">0</token>
<int name="BorderSizePixel">0</int>
<bool name="ClipsDescendants">false</bool>
<bool name="Draggable">false</bool>
<token name="Font">3</token>
<Font name="FontFace">
<Family><url>rbxasset://fonts/families/SourceSansPro.json</url></Family>
<Weight>400</Weight>
<Style>Normal</Style>
<CachedFaceId><url>rbxasset://fonts/SourceSansPro-Regular.ttf</url></CachedFaceId>
</Font>
<int name="LayoutOrder">0</int>
<float name="LineHeight">1</float>
<int name="MaxVisibleGraphemes">-1</int>
<bool name="Modal">false</bool>
<string name="Name">Entry</string>
<Ref name="NextSelectionDown">null</Ref>
<Ref name="NextSelectionLeft">null</Ref>
<Ref name="NextSelectionRight">null</Ref>
<Ref name="NextSelectionUp">null</Ref>
<UDim2 name="Position">
<XS>0</XS>
<XO>0</XO>
<YS>0</YS>
<YO>0</YO>
</UDim2>
<bool name="RichText">false</bool>
<Ref name="RootLocalizationTable">null</Ref>
<float name="Rotation">0</float>
<bool name="Selectable">true</bool>
<bool name="Selected">false</bool>
<token name="SelectionBehaviorDown">0</token>
<token name="SelectionBehaviorLeft">0</token>
<token name="SelectionBehaviorRight">0</token>
<token name="SelectionBehaviorUp">0</token>
<bool name="SelectionGroup">false</bool>
<Ref name="SelectionImageObject">null</Ref>
<int name="SelectionOrder">0</int>
<UDim2 name="Size">
<XS>1</XS>
<XO>-10</XO>
<YS>0</YS>
<YO>20</YO>
</UDim2>
<token name="SizeConstraint">0</token>
<int64 name="SourceAssetId">-1</int64>
<token name="Style">0</token>
<BinaryString name="Tags"></BinaryString>
<string name="Text">:ff <player></string>
<Color3 name="TextColor3">
<R>1</R>
<G>1</G>
<B>1</B>
</Color3>
<bool name="TextScaled">false</bool>
<float name="TextSize">18</float>
<Color3 name="TextStrokeColor3">
<R>0</R>
<G>0</G>
<B>0</B>
</Color3>
<float name="TextStrokeTransparency">1</float>
<float name="TextTransparency">0</float>
<token name="TextTruncate">0</token>
<bool name="TextWrapped">false</bool>
<token name="TextXAlignment">0</token>
<token name="TextYAlignment">1</token>
<bool name="Visible">false</bool>
<int name="ZIndex">3</int>
</Properties>
</Item>
<Item class="Folder" referent="RBXE60030A72D0B485CA7934EF2167DB7D0">
<Properties>
<BinaryString name="AttributesSerialize"></BinaryString>
<string name="Name">Config</string>
<int64 name="SourceAssetId">-1</int64>
<BinaryString name="Tags"></BinaryString>
</Properties>
<Item class="BoolValue" referent="RBX7B9405DC665A41F4AAD651D137B01229">
<Properties>
<BinaryString name="AttributesSerialize"></BinaryString>
<string name="Name">CanKeepAlive</string>
<int64 name="SourceAssetId">-1</int64>
<BinaryString name="Tags"></BinaryString>
<bool name="Value">false</bool>
</Properties>
</Item>
<Item class="ModuleScript" referent="RBX650BA9DFA61640CDB4ECFC7A77A9419C">
<Properties>
<BinaryString name="AttributesSerialize"></BinaryString>
<Content name="LinkedSource"><null></null></Content>
<string name="Name">Code</string>
<string name="ScriptGuid">{B657D7B2-F9BE-4DCF-9B3B-B447F129FD08}</string>
<ProtectedString name="Source"><![CDATA[client = nil
Pcall = nil
Routine = nil
service = nil
gTable = nil
--// All global vars will be wiped/replaced except script
--// All guis are autonamed codeName..gui.Name
return function(data, env)
if env then
setfenv(1, env)
end
local player = service.Players.LocalPlayer
local playergui = player.PlayerGui
local UI = client.UI
local Remote = client.Remote
local Variables = client.Variables
local gui = script.Parent.Parent
gTable.Name = "Console"
gTable.CanKeepAlive = true
local frame = gui.Frame
local text = frame.TextBox
local scroll = frame.ScrollingFrame
local autoList = frame.PlayerList
local entry = gui.Entry
local Settings = Remote.Get("Setting", {"SplitKey", "ConsoleKeyCode", "BatchKey", "Prefix"})
local splitKey = Settings.SplitKey
local consoleKey = Settings.ConsoleKeyCode
local batchKey = Settings.BatchKey
local prefix = Settings.Prefix
local commands = Remote.Get("FormattedCommands") or {}
local opened = false
local scrolling = false
local scrollOpen = false
local debounce = false
local tweenInfo = TweenInfo.new(0.15)----service.SafeTweenSize(frame,UDim2.new(1,0,0,40), nil, nil,0.3, nil,function() if scrollOpen then frame.Size = UDim2.new(1,0,0,140) end end)
local scrollOpenTween = service.TweenService:Create(frame, tweenInfo, {
Size = UDim2.new(1, 0, 0, 140);
})
local scrollCloseTween = service.TweenService:Create(frame, tweenInfo, {
Size = UDim2.new(1, 0, 0, 40);
})
local consoleOpenTween = service.TweenService:Create(frame, tweenInfo, {
Position = UDim2.new(0, 0, 0, 0);
})
local consoleCloseTween = service.TweenService:Create(frame, tweenInfo, {
Position = UDim2.new(0, 0, 0, -200);
})
frame.TopBar.Size = UDim2.new(1, 0, 0, service.GuiService:GetGuiInset().Y)
local function showGuis()
if UI.Get("Notif") then
UI.Get("Notif", nil, true).Object.LABEL.Visible = true
end
do
local scr = UI.Get("Chat", nil, true)
if scr then scr.Object.Drag.Visible = true end
end
do
local scr = UI.Get("PlayerList", nil, true)
if scr then scr.Object.Drag.Visible = true end
end
do
local scr = UI.Get("HintHolder", nil, true)
if scr then scr.Object.Frame.Visible = true end
end
end
local function hideGuis()
if UI.Get("Notif") then
UI.Get("Notif", nil, true).Object.LABEL.Visible = false
end
do
local scr = UI.Get("Chat", nil, true)
if scr then scr.Object.Drag.Visible = false end
end
do
local scr = UI.Get("PlayerList", nil, true)
if scr then scr.Object.Drag.Visible = false end
end
do
local scr = UI.Get("HintHolder", nil, true)
if scr then scr.Object.Frame.Visible = false end
end
end
frame.Position = UDim2.fromOffset(0, -200)
frame.Visible = false
frame.Size = UDim2.new(1, 0, 0, 40)
scroll.Visible = false
if Variables.ConsoleOpen then
if Variables.ChatEnabled then
service.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
end
if Variables.PlayerListEnabled then
service.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, true)
end
showGuis()
end
Variables.ChatEnabled = service.StarterGui:GetCoreGuiEnabled("Chat")
Variables.PlayerListEnabled = service.StarterGui:GetCoreGuiEnabled("PlayerList")
local function closeConsole()
if gui:IsDescendantOf(game) and not debounce then
debounce = true
scroll:ClearAllChildren()
scroll.CanvasSize = UDim2.new(0,0,0,0)
scroll.ScrollingEnabled = false
frame.Size = UDim2.new(1,0,0,40)
scroll.Visible = false
autoList.Visible = false
scrollOpen = false
if Variables.ChatEnabled then
service.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
end
if Variables.PlayerListEnabled then
service.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, true)
end
showGuis()
consoleCloseTween:Play()
--service.SafeTweenPos(frame,UDim2.new(0,0,0,-200), "Out", "Linear",0.2, true)
--frame:TweenPosition(UDim2.new(0,0,0,-200), "Out", "Linear",0.2, true)
debounce = false
opened = false
end
end
local function openConsole()
if not gui:IsDescendantOf(game) or debounce then
return
end
debounce = true
Variables.ChatEnabled = service.StarterGui:GetCoreGuiEnabled("Chat")
Variables.PlayerListEnabled = service.StarterGui:GetCoreGuiEnabled("PlayerList")
service.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
service.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
scroll.ScrollingEnabled = true
autoList.ScrollingEnabled = true
hideGuis()
consoleOpenTween:Play()
frame.Size = UDim2.new(1, 0, 0, 40)
scroll.Visible = false
autoList.Visible = false
scrollOpen = false
text.Text = ""
frame.Visible = true
frame.Position = UDim2.new()
text:CaptureFocus()
text.Text = ""
wait()
text.Text = ""
debounce = false
opened = true
end
local function isInConsoleBounds(pos)
for i,v in ipairs(playergui:GetGuiObjectsAtPosition(pos.X, pos.Y)) do
if v == gui or v == gui.Frame then return true end
end
return false
end
text.FocusLost:Connect(function(enterPressed)
if enterPressed then
if text.Text ~= '' and string.len(text.Text) > 1 then
Remote.Send('ProcessCommand', text.Text)
end
closeConsole()
elseif not isInConsoleBounds(player:GetMouse()) then
closeConsole()
end
end)
text:GetPropertyChangedSignal("Text"):Connect(function()
if text.Text ~= "" and openConsole then
local tabWhiteSpace = " "
if string.sub(text.Text, string.len(text.Text)) == tabWhiteSpace then
if autoList:FindFirstChild("Entry 0") then
local args = string.split(text.Text, splitKey) -- Get command args
local textWithoutLastArg = string.sub(text.Text, 1, string.len(text.Text) - string.len(args[#args])) -- Remove the last arg
text.Text = `{textWithoutLastArg}{autoList["Entry 0"].Text} ` -- Combine the text witout the last arg and the player name
elseif scroll:FindFirstChild("Entry 0") then
text.Text = string.split(scroll["Entry 0"].Text, "<")[1]
end
text.CursorPosition = string.len(text.Text) + 1
text.Text = string.gsub(text.Text, tabWhiteSpace, "")
end
scroll:ClearAllChildren()
autoList:ClearAllChildren()
local nText = text.Text
local fullCmdStr = string.match(nText, `.*{batchKey}([^']+)`)
if fullCmdStr then
nText = string.match(fullCmdStr, "^%s*(.-)%s*$")
end
local num = 0
local selectedCmd = ""
for _, v in commands do
local cmdName = string.match(string.lower(nText), `^(.-){splitKey}`) or string.lower(nText)
if string.sub(string.lower(v), 1, #nText) == string.lower(nText) or string.find(string.lower(v), cmdName, 1, true) then
selectedCmd = v
if not scrollOpen then
scrollOpenTween:Play()
--frame.Size = UDim2.new(1,0,0,140)
scroll.Visible = true
autoList.Visible = true
scrollOpen = true
end
local b = entry:Clone()
b.Visible = true
b.Parent = scroll
b.Text = v
b.Name = `Entry {num}`
b.Position = UDim2.fromOffset(0, 20*num)
b.MouseButton1Down:Connect(function()
text.Text = b.Text
text:CaptureFocus()
end)
num += 1
end
end
local aNum = 0
local fullSplit = string.split(nText, splitKey)
if num > 0 and #fullSplit > 1 then
local provided = string.match(nText, `.+{splitKey}(.*)$`)
local selectedSplit = string.split(selectedCmd, splitKey)
local arg = selectedSplit[#fullSplit]
for _, v in UI.Autocomplete(provided, arg) do
local new = entry:Clone()
new.Text = v
new.Name = `Entry {aNum}`
new.TextXAlignment = "Right"
new.Visible = true
new.Parent = autoList
new.Position = UDim2.new(0, 0, 0, 20 * aNum)
new.MouseButton1Down:Connect(function()
text.Text = text.Text..tostring(v)
text:CaptureFocus()
end)
aNum += 1
end
end
frame.Size = UDim2.new(1, 0, 0, math.clamp((math.max(num, aNum) * 20) + 40, 40, 140))
scroll.CanvasSize = UDim2.fromOffset(0, num * 20)
elseif text.Text == "" and opened then
scrollCloseTween:Play()
--service.SafeTweenSize(frame,UDim2.new(1,0,0,40), nil, nil,0.3, nil,function() if scrollOpen then frame.Size = UDim2.new(1,0,0,140) end end)
scroll.Visible = false
autoList.Visible = false
scrollOpen = false
scroll:ClearAllChildren()
scroll.CanvasSize = UDim2.new()
end
end)
service.HookEvent("ToggleConsole", function()
if opened then
closeConsole()
else
openConsole()
end
Variables.ConsoleOpen = opened
end)
gTable.BindEvent(service.UserInputService.InputBegan, function(inputObject: InputObject)
local textbox = service.UserInputService:GetFocusedTextBox()
if not textbox and rawequal(inputObject.UserInputType, Enum.UserInputType.Keyboard) and inputObject.KeyCode.Name == (Variables.CustomConsoleKey or consoleKey) then
service.Events.ToggleConsole:Fire()
end
end)
gTable:Ready()
end
]]></ProtectedString>
<int64 name="SourceAssetId">-1</int64>
<BinaryString name="Tags"></BinaryString>
</Properties>
</Item>
<Item class="BoolValue" referent="RBX9160A5A45AF74D6EB2DD7F939D7CD004">
<Properties>
<BinaryString name="AttributesSerialize"></BinaryString>
<string name="Name">AllowMultiple</string>
<int64 name="SourceAssetId">-1</int64>
<BinaryString name="Tags"></BinaryString>
<bool name="Value">false</bool>
</Properties>
</Item>
</Item>
</Item>
</roblox>