This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
/
CustomCrosshairv2.lua
1029 lines (959 loc) · 33.6 KB
/
CustomCrosshairv2.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
-- Gui to Lua
-- Version: 3.2
-- Instances:
local CCv2 = Instance.new("ScreenGui")
local C = Instance.new("Frame")
local D = Instance.new("Frame")
local R = Instance.new("Frame")
local T = Instance.new("Frame")
local B = Instance.new("Frame")
local L = Instance.new("Frame")
local Gui = Instance.new("Frame")
local Color = Instance.new("TextBox")
local Drop = Instance.new("TextButton")
local UIListLayout = Instance.new("UIListLayout")
local Opacity = Instance.new("TextBox")
local Length = Instance.new("TextBox")
local Thickness = Instance.new("TextBox")
local Offset = Instance.new("TextBox")
local Movement = Instance.new("TextButton")
local Outline = Instance.new("TextButton")
local OutlineColor = Instance.new("TextBox")
local Dot = Instance.new("TextButton")
local Factor = Instance.new("TextBox")
local OutlineThickness = Instance.new("TextBox")
local Label = Instance.new("TextLabel")
local Menu = Instance.new("TextButton")
local Rainbow = Instance.new("TextButton")
local Colors = Instance.new("Frame")
local UIListLayout_2 = Instance.new("UIListLayout")
local White = Instance.new("TextButton")
local Green = Instance.new("TextButton")
local YellowGreen = Instance.new("TextButton")
local Yellow = Instance.new("TextButton")
local Cyan = Instance.new("TextButton")
local Pink = Instance.new("TextButton")
local Red = Instance.new("TextButton")
local Config = Instance.new("Frame")
local UIListLayout_3 = Instance.new("UIListLayout")
local Load = Instance.new("TextButton")
local Exit = Instance.new("TextButton")
local Config_2 = Instance.new("TextBox")
local Copy = Instance.new("TextButton")
local Set = Instance.new("TextButton")
local Label_2 = Instance.new("TextLabel")
local Placeholder = Instance.new("TextButton")
local Create = Instance.new("TextButton")
local Delete = Instance.new("TextButton")
local Message = Instance.new("Frame")
local Label_3 = Instance.new("TextLabel")
local Title = Instance.new("TextLabel")
if syn then
syn.protect_gui(CCv2)
end
--Properties:
CCv2.Name = game:GetService("HttpService"):GenerateGUID(false)
CCv2.Parent = (gethui and gethui()) or (get_hidden_ui and get_hidden_ui()) or game.CoreGui
CCv2.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
C.Name = "C"
C.Parent = CCv2
C.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
C.BackgroundTransparency = 1.000
C.BorderSizePixel = 0
C.Size = UDim2.new(1, 0, 1, 0)
D.Name = "D"
D.Parent = C
D.AnchorPoint = Vector2.new(0.5, 0.5)
D.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
D.BorderColor3 = Color3.fromRGB(0, 0, 0)
D.BorderSizePixel = 0
D.Position = UDim2.new(0.5, 0, 0.5, 0)
D.Size = UDim2.new(0, 2, 0, 2)
R.Name = "R"
R.Parent = C
R.AnchorPoint = Vector2.new(0, 0.5)
R.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
R.BorderColor3 = Color3.fromRGB(0, 0, 0)
R.BorderSizePixel = 0
R.Position = UDim2.new(0.5, 4, 0.5, 0)
R.Size = UDim2.new(0, 6, 0, 2)
T.Name = "T"
T.Parent = C
T.AnchorPoint = Vector2.new(0.5, 1)
T.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
T.BorderColor3 = Color3.fromRGB(0, 0, 0)
T.BorderSizePixel = 0
T.Position = UDim2.new(0.5, 0, 0.5, -4)
T.Size = UDim2.new(0, 2, 0, 6)
B.Name = "B"
B.Parent = C
B.AnchorPoint = Vector2.new(0.5, 0)
B.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
B.BorderColor3 = Color3.fromRGB(0, 0, 0)
B.BorderSizePixel = 0
B.Position = UDim2.new(0.5, 0, 0.5, 4)
B.Size = UDim2.new(0, 2, 0, 6)
L.Name = "L"
L.Parent = C
L.AnchorPoint = Vector2.new(1, 0.5)
L.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
L.BorderColor3 = Color3.fromRGB(0, 0, 0)
L.BorderSizePixel = 0
L.Position = UDim2.new(0.5, -4, 0.5, 0)
L.Size = UDim2.new(0, 6, 0, 2)
Gui.Name = "Gui"
Gui.Parent = CCv2
Gui.AnchorPoint = Vector2.new(1, 0.5)
Gui.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Gui.BorderColor3 = Color3.fromRGB(0, 0, 0)
Gui.BorderSizePixel = 2
Gui.Position = UDim2.new(0.5, -120, 0.5, 0)
Gui.Size = UDim2.new(0, 150, 0, 25)
Color.Name = "Color"
Color.Parent = Gui
Color.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Color.BorderSizePixel = 0
Color.LayoutOrder = 1
Color.Size = UDim2.new(1, 0, 0, 25)
Color.Font = Enum.Font.SourceSans
Color.PlaceholderText = "Color"
Color.Text = ""
Color.TextColor3 = Color3.fromRGB(0, 0, 0)
Color.TextSize = 14.000
Drop.Name = "Drop"
Drop.Parent = Color
Drop.AnchorPoint = Vector2.new(1, 0)
Drop.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Drop.BorderSizePixel = 0
Drop.Position = UDim2.new(1, 0, 0, 0)
Drop.Size = UDim2.new(0, 15, 0, 25)
Drop.AutoButtonColor = false
Drop.Font = Enum.Font.Code
Drop.Text = ">"
Drop.TextColor3 = Color3.fromRGB(0, 0, 0)
Drop.TextSize = 14.000
UIListLayout.Parent = Gui
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
Opacity.Name = "Opacity"
Opacity.Parent = Gui
Opacity.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Opacity.BorderSizePixel = 0
Opacity.LayoutOrder = 2
Opacity.Size = UDim2.new(1, 0, 0, 25)
Opacity.Font = Enum.Font.SourceSans
Opacity.PlaceholderText = "Opacity (0-1)"
Opacity.Text = ""
Opacity.TextColor3 = Color3.fromRGB(0, 0, 0)
Opacity.TextSize = 14.000
Length.Name = "Length"
Length.Parent = Gui
Length.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Length.BorderSizePixel = 0
Length.LayoutOrder = 3
Length.Size = UDim2.new(1, 0, 0, 25)
Length.Font = Enum.Font.SourceSans
Length.PlaceholderText = "Length"
Length.Text = ""
Length.TextColor3 = Color3.fromRGB(0, 0, 0)
Length.TextSize = 14.000
Thickness.Name = "Thickness"
Thickness.Parent = Gui
Thickness.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Thickness.BorderSizePixel = 0
Thickness.LayoutOrder = 4
Thickness.Size = UDim2.new(1, 0, 0, 25)
Thickness.Font = Enum.Font.SourceSans
Thickness.PlaceholderText = "Thickness"
Thickness.Text = ""
Thickness.TextColor3 = Color3.fromRGB(0, 0, 0)
Thickness.TextSize = 14.000
Offset.Name = "Offset"
Offset.Parent = Gui
Offset.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Offset.BorderSizePixel = 0
Offset.LayoutOrder = 5
Offset.Size = UDim2.new(1, 0, 0, 25)
Offset.Font = Enum.Font.SourceSans
Offset.PlaceholderText = "Offset"
Offset.Text = ""
Offset.TextColor3 = Color3.fromRGB(0, 0, 0)
Offset.TextSize = 14.000
Movement.Name = "Movement"
Movement.Parent = Gui
Movement.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Movement.BorderSizePixel = 0
Movement.LayoutOrder = 6
Movement.Size = UDim2.new(1, 0, 0, 25)
Movement.AutoButtonColor = false
Movement.Font = Enum.Font.SourceSans
Movement.Text = "Movement Error"
Movement.TextColor3 = Color3.fromRGB(0, 0, 0)
Movement.TextSize = 14.000
Outline.Name = "Outline"
Outline.Parent = Gui
Outline.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Outline.BorderSizePixel = 0
Outline.LayoutOrder = 8
Outline.Size = UDim2.new(1, 0, 0, 25)
Outline.AutoButtonColor = false
Outline.Font = Enum.Font.SourceSans
Outline.Text = "Outline"
Outline.TextColor3 = Color3.fromRGB(0, 0, 0)
Outline.TextSize = 14.000
OutlineColor.Name = "OutlineColor"
OutlineColor.Parent = Gui
OutlineColor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
OutlineColor.BorderSizePixel = 0
OutlineColor.LayoutOrder = 9
OutlineColor.Size = UDim2.new(1, 0, 0, 25)
OutlineColor.Font = Enum.Font.SourceSans
OutlineColor.PlaceholderText = "Outline Color"
OutlineColor.Text = ""
OutlineColor.TextColor3 = Color3.fromRGB(0, 0, 0)
OutlineColor.TextSize = 14.000
Dot.Name = "Dot"
Dot.Parent = Gui
Dot.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
Dot.BorderSizePixel = 0
Dot.LayoutOrder = 11
Dot.Size = UDim2.new(1, 0, 0, 25)
Dot.AutoButtonColor = false
Dot.Font = Enum.Font.SourceSans
Dot.Text = "Center Dot"
Dot.TextColor3 = Color3.fromRGB(0, 0, 0)
Dot.TextSize = 14.000
Factor.Name = "Factor"
Factor.Parent = Gui
Factor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Factor.BorderSizePixel = 0
Factor.LayoutOrder = 7
Factor.Size = UDim2.new(1, 0, 0, 25)
Factor.Font = Enum.Font.SourceSans
Factor.PlaceholderText = "Error Factor"
Factor.Text = ""
Factor.TextColor3 = Color3.fromRGB(0, 0, 0)
Factor.TextSize = 14.000
OutlineThickness.Name = "OutlineThickness"
OutlineThickness.Parent = Gui
OutlineThickness.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
OutlineThickness.BorderSizePixel = 0
OutlineThickness.LayoutOrder = 10
OutlineThickness.Size = UDim2.new(1, 0, 0, 25)
OutlineThickness.Font = Enum.Font.SourceSans
OutlineThickness.PlaceholderText = "Outline Thickness"
OutlineThickness.Text = ""
OutlineThickness.TextColor3 = Color3.fromRGB(0, 0, 0)
OutlineThickness.TextSize = 14.000
Label.Name = "Label"
Label.Parent = Gui
Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Label.BorderSizePixel = 0
Label.LayoutOrder = 100
Label.Size = UDim2.new(1, 0, 0, 25)
Label.Font = Enum.Font.SourceSans
Label.Text = "Right Control to show/hide"
Label.TextColor3 = Color3.fromRGB(0, 0, 0)
Label.TextSize = 14.000
Menu.Name = "Menu"
Menu.Parent = Gui
Menu.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Menu.BorderSizePixel = 0
Menu.LayoutOrder = 13
Menu.Size = UDim2.new(1, 0, 0, 25)
Menu.AutoButtonColor = false
Menu.Font = Enum.Font.SourceSans
Menu.Text = "Config Menu"
Menu.TextColor3 = Color3.fromRGB(0, 0, 0)
Menu.TextSize = 14.000
Rainbow.Name = "Rainbow"
Rainbow.Parent = Gui
Rainbow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Rainbow.BorderSizePixel = 0
Rainbow.LayoutOrder = 12
Rainbow.Size = UDim2.new(1, 0, 0, 25)
Rainbow.AutoButtonColor = false
Rainbow.Font = Enum.Font.SourceSans
Rainbow.Text = "Rainbow Color"
Rainbow.TextColor3 = Color3.fromRGB(0, 0, 0)
Rainbow.TextSize = 14.000
Colors.Name = "Colors"
Colors.Parent = CCv2
Colors.AnchorPoint = Vector2.new(0, 0.5)
Colors.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Colors.BorderSizePixel = 2
Colors.Position = UDim2.new(0.5, -118, 0.5, -87)
Colors.Size = UDim2.new(0, 100, 0, 25)
Colors.Visible = false
UIListLayout_2.Parent = Colors
UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
White.Name = "White"
White.Parent = Colors
White.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
White.BorderSizePixel = 0
White.Size = UDim2.new(1, 0, 0, 25)
White.AutoButtonColor = false
White.Font = Enum.Font.SourceSans
White.Text = "White"
White.TextColor3 = Color3.fromRGB(0, 0, 0)
White.TextSize = 14.000
Green.Name = "Green"
Green.Parent = Colors
Green.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Green.BorderSizePixel = 0
Green.Size = UDim2.new(1, 0, 0, 25)
Green.AutoButtonColor = false
Green.Font = Enum.Font.SourceSans
Green.Text = "Green"
Green.TextColor3 = Color3.fromRGB(0, 0, 0)
Green.TextSize = 14.000
YellowGreen.Name = "YellowGreen"
YellowGreen.Parent = Colors
YellowGreen.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
YellowGreen.BorderSizePixel = 0
YellowGreen.Size = UDim2.new(1, 0, 0, 25)
YellowGreen.AutoButtonColor = false
YellowGreen.Font = Enum.Font.SourceSans
YellowGreen.Text = "Yellow Green"
YellowGreen.TextColor3 = Color3.fromRGB(0, 0, 0)
YellowGreen.TextSize = 14.000
Yellow.Name = "Yellow"
Yellow.Parent = Colors
Yellow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Yellow.BorderSizePixel = 0
Yellow.Size = UDim2.new(1, 0, 0, 25)
Yellow.AutoButtonColor = false
Yellow.Font = Enum.Font.SourceSans
Yellow.Text = "Yellow"
Yellow.TextColor3 = Color3.fromRGB(0, 0, 0)
Yellow.TextSize = 14.000
Cyan.Name = "Cyan"
Cyan.Parent = Colors
Cyan.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Cyan.BorderSizePixel = 0
Cyan.Size = UDim2.new(1, 0, 0, 25)
Cyan.AutoButtonColor = false
Cyan.Font = Enum.Font.SourceSans
Cyan.Text = "Cyan"
Cyan.TextColor3 = Color3.fromRGB(0, 0, 0)
Cyan.TextSize = 14.000
Pink.Name = "Pink"
Pink.Parent = Colors
Pink.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Pink.BorderSizePixel = 0
Pink.Size = UDim2.new(1, 0, 0, 25)
Pink.AutoButtonColor = false
Pink.Font = Enum.Font.SourceSans
Pink.Text = "Pink"
Pink.TextColor3 = Color3.fromRGB(0, 0, 0)
Pink.TextSize = 14.000
Red.Name = "Red"
Red.Parent = Colors
Red.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Red.BorderSizePixel = 0
Red.Size = UDim2.new(1, 0, 0, 25)
Red.AutoButtonColor = false
Red.Font = Enum.Font.SourceSans
Red.Text = "Red"
Red.TextColor3 = Color3.fromRGB(0, 0, 0)
Red.TextSize = 14.000
Config.Name = "Config"
Config.Parent = CCv2
Config.AnchorPoint = Vector2.new(0, 0.5)
Config.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Config.BorderColor3 = Color3.fromRGB(0, 0, 0)
Config.BorderSizePixel = 2
Config.Position = UDim2.new(0.5, 120, 0.5, 0)
Config.Size = UDim2.new(0, 150, 0, 25)
Config.Visible = false
UIListLayout_3.Parent = Config
UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
Load.Name = "Load"
Load.Parent = Config
Load.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Load.BorderSizePixel = 0
Load.LayoutOrder = 2
Load.Size = UDim2.new(1, 0, 0, 25)
Load.AutoButtonColor = false
Load.Font = Enum.Font.SourceSans
Load.Text = "Load Config"
Load.TextColor3 = Color3.fromRGB(0, 0, 0)
Load.TextSize = 14.000
Exit.Name = "Exit"
Exit.Parent = Config
Exit.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Exit.BorderSizePixel = 0
Exit.LayoutOrder = 100
Exit.Size = UDim2.new(1, 0, 0, 25)
Exit.AutoButtonColor = false
Exit.Font = Enum.Font.SourceSans
Exit.Text = "Exit"
Exit.TextColor3 = Color3.fromRGB(0, 0, 0)
Exit.TextSize = 14.000
Config_2.Name = "Config"
Config_2.Parent = Config
Config_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Config_2.BorderSizePixel = 0
Config_2.LayoutOrder = 1
Config_2.Size = UDim2.new(1, 0, 0, 25)
Config_2.Font = Enum.Font.SourceSans
Config_2.PlaceholderText = "Paste config here"
Config_2.Text = ""
Config_2.TextColor3 = Color3.fromRGB(0, 0, 0)
Config_2.TextSize = 14.000
Copy.Name = "Copy"
Copy.Parent = Config
Copy.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Copy.BorderSizePixel = 0
Copy.LayoutOrder = 5
Copy.Size = UDim2.new(1, 0, 0, 25)
Copy.AutoButtonColor = false
Copy.Font = Enum.Font.SourceSans
Copy.Text = "Copy Crosshair Config"
Copy.TextColor3 = Color3.fromRGB(0, 0, 0)
Copy.TextSize = 14.000
Set.Name = "Set"
Set.Parent = Config
Set.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Set.BorderSizePixel = 0
Set.LayoutOrder = 6
Set.Size = UDim2.new(1, 0, 0, 25)
Set.AutoButtonColor = false
Set.Font = Enum.Font.SourceSans
Set.Text = "Set to Default"
Set.TextColor3 = Color3.fromRGB(0, 0, 0)
Set.TextSize = 14.000
Label_2.Name = "Label"
Label_2.Parent = Config
Label_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Label_2.BorderSizePixel = 0
Label_2.LayoutOrder = 7
Label_2.Size = UDim2.new(1, 0, 0, 25)
Label_2.Font = Enum.Font.SourceSans
Label_2.Text = "Your configs are below"
Label_2.TextColor3 = Color3.fromRGB(0, 0, 0)
Label_2.TextSize = 14.000
Placeholder.Name = "Placeholder"
Placeholder.Parent = Config
Placeholder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Placeholder.BorderSizePixel = 0
Placeholder.LayoutOrder = 8
Placeholder.Size = UDim2.new(1, 0, 0, 25)
Placeholder.Visible = false
Placeholder.AutoButtonColor = false
Placeholder.Font = Enum.Font.SourceSans
Placeholder.Text = "Config Name"
Placeholder.TextColor3 = Color3.fromRGB(0, 0, 0)
Placeholder.TextSize = 14.000
Create.Name = "Create"
Create.Parent = Config
Create.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Create.BorderSizePixel = 0
Create.LayoutOrder = 3
Create.Size = UDim2.new(1, 0, 0, 25)
Create.AutoButtonColor = false
Create.Font = Enum.Font.SourceSans
Create.Text = "Create New Config"
Create.TextColor3 = Color3.fromRGB(0, 0, 0)
Create.TextSize = 14.000
Delete.Name = "Delete"
Delete.Parent = Config
Delete.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Delete.BorderSizePixel = 0
Delete.LayoutOrder = 3
Delete.Size = UDim2.new(1, 0, 0, 25)
Delete.AutoButtonColor = false
Delete.Font = Enum.Font.SourceSans
Delete.Text = "Delete Config"
Delete.TextColor3 = Color3.fromRGB(0, 0, 0)
Delete.TextSize = 14.000
Message.Name = "Message"
Message.Parent = CCv2
Message.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Message.BorderColor3 = Color3.fromRGB(0, 0, 0)
Message.BorderSizePixel = 2
Message.Position = UDim2.new(0, 50, 0, 50)
Message.Size = UDim2.new(0, 180, 0, 90)
Message.Visible = false
Message.ZIndex = 2
Label_3.Name = "Label"
Label_3.Parent = Message
Label_3.AnchorPoint = Vector2.new(0.5, 0)
Label_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Label_3.BorderSizePixel = 0
Label_3.Position = UDim2.new(0.5, 0, 0, 24)
Label_3.Size = UDim2.new(1, -10, 1, -30)
Label_3.ZIndex = 2
Label_3.Font = Enum.Font.SourceSans
Label_3.Text = "Message"
Label_3.TextColor3 = Color3.fromRGB(0, 0, 0)
Label_3.TextSize = 14.000
Label_3.TextWrapped = true
Label_3.TextXAlignment = Enum.TextXAlignment.Left
Label_3.TextYAlignment = Enum.TextYAlignment.Top
Title.Name = "Title"
Title.Parent = Message
Title.AnchorPoint = Vector2.new(0.5, 0)
Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title.BorderSizePixel = 0
Title.Position = UDim2.new(0.5, 0, 0, 5)
Title.Size = UDim2.new(1, -10, 0, 18)
Title.ZIndex = 2
Title.Font = Enum.Font.SourceSans
Title.Text = "Title"
Title.TextColor3 = Color3.fromRGB(0, 0, 0)
Title.TextSize = 16.000
Title.TextWrapped = true
Title.TextXAlignment = Enum.TextXAlignment.Left
Title.TextYAlignment = Enum.TextYAlignment.Top
-- Scripts:
local function AAHILWJ_fake_script() -- Gui.LocalScript
local script = Instance.new('LocalScript', Gui)
-- stuff that doesnt get converted by gui to lua
script.Parent.Dot:SetAttribute("Enabled",true)
script.Parent.Movement:SetAttribute("Enabled",false)
script.Parent.Outline:SetAttribute("Enabled",false)
script.Parent.Rainbow:SetAttribute("Enabled",false)
script.Parent.Menu:SetAttribute("IsVisible",false)
script.Parent.AutomaticSize = Enum.AutomaticSize.Y
script.Parent.Parent.Colors.AutomaticSize = Enum.AutomaticSize.Y
script.Parent.Parent.IgnoreGuiInset = true
script.Parent.Parent.Message.Label.TextTruncate = Enum.TextTruncate.AtEnd
script.Parent.Parent.Message.Label.TextWrapped = true
script.Parent.Parent.Config.AutomaticSize = Enum.AutomaticSize.Y
script.Parent.Parent.Config.Config.TextTruncate = Enum.TextTruncate.AtEnd
local default = '{"Offset":4,"OutlineColor":{"R":0,"B":0,"G":0},"Color":{"R":255,"B":255,"G":255},"Opacity":0,"Factor":2,"Length":6,"Outline":false,"OutlineThickness":1,"Thickness":2,"CenterDot":true,"MovementError":false}'
--[[{
Color = {R = 255,G = 255,B = 255},
Opacity = 0,
Length = 6,
Thickness = 2,
Offset = 4,
MovementError = false,
Factor = 2,
Outline = false,
OutlineColor = {R = 0,G = 0,B = 0},
OutlineThickness = 1,
CenterDot = true,
}]]
-- warning: shitty code !
local cc = script.Parent.Parent.C
local colors = {
['white'] = Color3.fromRGB(255,255,255),
['green'] = Color3.fromRGB(0,255,0),
['yellowgreen'] = Color3.fromRGB(150,255,0),
['greenyellow'] = Color3.fromRGB(150,255,0),
['yellow'] = Color3.fromRGB(255,255,0),
['cyan'] = Color3.fromRGB(0,255,255),
['pink'] = Color3.fromRGB(255,0,255),
['red'] = Color3.fromRGB(255,0,0),
}
local studio = game:GetService("RunService"):IsStudio()
local rs = true
local color = Color3.fromRGB(255,255,255)
local opacity = 0
local length = 6
local thickness = 2
local offset = 4
local factor = 2
local ocolor = Color3.fromRGB(0,0,0)
local othickness = 1
local config = nil
function change(prop,value)
for i,v in next, script.Parent.Parent.C:GetChildren() do
if v:IsA("Frame") then
v[prop] = value
end
end
end
function enabled(name)
return script.Parent[name]:GetAttribute("Enabled")
end
function fromvalue(c)
return Color3.fromRGB(c.R,c.G,c.B)
end
function tovalue(c)
return {R = math.floor(c.R * 255),G = math.floor(c.G * 255),B = math.floor(c.B * 255)}
end
function getconfig()
local c = {
Color = tovalue(color),
Opacity = opacity,
Length = length,
Thickness = thickness,
Offset = offset,
MovementError = enabled("Movement"),
Factor = factor,
Outline = enabled("Outline"),
OutlineColor = tovalue(ocolor),
OutlineThickness = othickness,
CenterDot = enabled("Dot"),
Rainbow = enabled("Rainbow")
}
return game:GetService("HttpService"):JSONEncode(c)
end
function loadconfig(c)
c = game:GetService("HttpService"):JSONDecode(c)
color = fromvalue(c.Color)
script.Parent.Color.Text = c.Color.R..", "..c.Color.G..", "..c.Color.B
change("BackgroundColor3",fromvalue(c.Color))
opacity = c.Opacity
script.Parent.Opacity.Text = 1 - c.Opacity
change("BackgroundTransparency",c.Opacity)
length = c.Length
thickness = c.Thickness
script.Parent.Length.Text = c.Length
script.Parent.Thickness.Text = c.Thickness
cc.L.Size = UDim2.new(0,c.Length,0,c.Thickness)
cc.R.Size = UDim2.new(0,c.Length,0,c.Thickness)
cc.T.Size = UDim2.new(0,c.Thickness,0,c.Length)
cc.B.Size = UDim2.new(0,c.Thickness,0,c.Length)
cc.D.Size = UDim2.new(0,c.Thickness,0,c.Thickness)
offset = c.Offset
script.Parent.Offset.Text = c.Offset
cc.L.Position = UDim2.new(0.5,-c.Offset,0.5,0)
cc.R.Position = UDim2.new(0.5,c.Offset,0.5,0)
cc.T.Position = UDim2.new(0.5,0,0.5,-c.Offset)
cc.B.Position = UDim2.new(0.5,0,0.5,c.Offset)
script.Parent.Movement:SetAttribute("Enabled",c.MovementError)
script.Parent.Movement.BackgroundColor3 = (c.MovementError and Color3.fromRGB(0,255,0)) or Color3.fromRGB(255,255,255)
factor = c.Factor
script.Parent.Factor.Text = c.Factor
script.Parent.Outline:SetAttribute("Enabled",c.Outline)
script.Parent.Outline.BackgroundColor3 = (c.Outline and Color3.fromRGB(0,255,0)) or Color3.fromRGB(255,255,255)
script.Parent.OutlineColor.Text = c.OutlineColor.R..", "..c.OutlineColor.G..", "..c.OutlineColor.B
change("BorderColor3",fromvalue(c.OutlineColor))
othickness = (c.Outline and c.OutlineThickness) or 0
script.Parent.OutlineThickness.Text = c.OutlineThickness
change("BorderSizePixel",(c.Outline and c.OutlineThickness) or 0)
script.Parent.Dot:SetAttribute("Enabled",c.CenterDot)
script.Parent.Dot.BackgroundColor3 = (c.CenterDot and Color3.fromRGB(0,255,0)) or Color3.fromRGB(255,255,255)
cc.D.Visible = c.CenterDot
script.Parent.Rainbow:SetAttribute("Enabled",c.Rainbow)
script.Parent.Rainbow.BackgroundColor3 = (c.Rainbow and Color3.fromRGB(0,255,0)) or Color3.fromRGB(255,255,255)
end
local showingmessageboxthingorsomethinglikethatidk = false
function message(msg,duration)
if showingmessageboxthingorsomethinglikethatidk then
return
end
rs = false
showingmessageboxthingorsomethinglikethatidk = true
spawn(function()
repeat
script.Parent.Parent.Message.AnchorPoint = Vector2.new(0.5,0)
script.Parent.Parent.Message.Position = UDim2.new(0.5,0,0.5,50)
script.Parent.Parent.Message.Visible = true
script.Parent.Parent.Message.Title.Text = "Message"
script.Parent.Parent.Message.Label.Text = msg
game:GetService("RunService").RenderStepped:Wait()
until rs
end)
wait(duration)
rs = true
showingmessageboxthingorsomethinglikethatidk = false
script.Parent.Parent.Message.AnchorPoint = Vector2.new(0,0)
script.Parent.Parent.Message.Visible = false
end
if not studio and isfolder("CCv2") then
default = readfile("CCv2\\\Default.json")
loadconfig(default)
end
if not studio and not isfolder("CCv2") then
makefolder("CCv2")
writefile("CCv2\\Default.json",default)
end
script.Parent.Color.FocusLost:Connect(function()
if script.Parent.Color.Text:find(",") then
local c = script.Parent.Color.Text:gsub(" ",""):split(",")
color = Color3.fromRGB(tonumber(c[1]),tonumber(c[2]),tonumber(c[3]))
change("BackgroundColor3",Color3.fromRGB(tonumber(c[1]),tonumber(c[2]),tonumber(c[3])))
end
end)
script.Parent.Color.Drop.Activated:Connect(function()
script.Parent.Parent.Colors.Visible = not script.Parent.Parent.Colors.Visible
if script.Parent.Parent.Colors.Visible then
script.Parent.Color.Drop.Text = "<"
else
script.Parent.Color.Drop.Text = ">"
end
end)
for _,v in next, script.Parent.Parent.Colors:GetChildren() do
if v:IsA("TextButton") then
v.Activated:Connect(function()
color = colors[v.Name:lower()]
change("BackgroundColor3",colors[v.Name:lower()])
end)
end
end
script.Parent.Opacity.FocusLost:Connect(function()
if tonumber(script.Parent.Opacity.Text) ~= nil then
local num = tonumber(script.Parent.Opacity.Text)
num = 1 - num
opacity = num
change("BackgroundTransparency",num)
end
end)
script.Parent.Length.FocusLost:Connect(function()
if tonumber(script.Parent.Length.Text) ~= nil then
local len = tonumber(script.Parent.Length.Text)
length = len
cc.L.Size = UDim2.new(0,len,0,thickness)
cc.R.Size = UDim2.new(0,len,0,thickness)
cc.T.Size = UDim2.new(0,thickness,0,len)
cc.B.Size = UDim2.new(0,thickness,0,len)
end
end)
script.Parent.Thickness.FocusLost:Connect(function()
if tonumber(script.Parent.Thickness.Text) ~= nil then
local thick = tonumber(script.Parent.Thickness.Text)
thickness = thick
cc.L.Size = UDim2.new(0,length,0,thick)
cc.R.Size = UDim2.new(0,length,0,thick)
cc.T.Size = UDim2.new(0,thick,0,length)
cc.B.Size = UDim2.new(0,thick,0,length)
cc.D.Size = UDim2.new(0,thick,0,thick)
end
end)
script.Parent.Offset.FocusLost:Connect(function()
if tonumber(script.Parent.Offset.Text) ~= nil then
local off = tonumber(script.Parent.Offset.Text)
offset = off
cc.L.Position = UDim2.new(0.5,-off,0.5,0)
cc.R.Position = UDim2.new(0.5,off,0.5,0)
cc.T.Position = UDim2.new(0.5,0,0.5,-off)
cc.B.Position = UDim2.new(0.5,0,0.5,off)
end
end)
script.Parent.Movement.Activated:Connect(function()
script.Parent.Movement:SetAttribute("Enabled",not script.Parent.Movement:GetAttribute("Enabled"))
if enabled("Movement") then
script.Parent.Movement.BackgroundColor3 = Color3.fromRGB(0,255,0)
else
script.Parent.Movement.BackgroundColor3 = Color3.fromRGB(255,255,255)
end
end)
script.Parent.Factor.FocusLost:Connect(function()
if tonumber(script.Parent.Factor.Text) ~= nil then
factor = tonumber(script.Parent.Factor.Text)
end
end)
script.Parent.Outline.Activated:Connect(function()
script.Parent.Outline:SetAttribute("Enabled",not script.Parent.Outline:GetAttribute("Enabled"))
if enabled("Outline") then
script.Parent.Outline.BackgroundColor3 = Color3.fromRGB(0,255,0)
change("BorderSizePixel",1)
else
script.Parent.Outline.BackgroundColor3 = Color3.fromRGB(255,255,255)
change("BorderSizePixel",0)
end
end)
script.Parent.OutlineColor.FocusLost:Connect(function()
if script.Parent.OutlineColor.Text:find(",") then
local c = script.Parent.OutlineColor.Text:gsub(" ",""):split(",")
ocolor = Color3.fromRGB(tonumber(c[1]),tonumber(c[2]),tonumber(c[3]))
change("BorderColor3",Color3.fromRGB(tonumber(c[1]),tonumber(c[2]),tonumber(c[3])))
end
end)
script.Parent.OutlineThickness.FocusLost:Connect(function()
if tonumber(script.Parent.OutlineThickness.Text) ~= nil then
othickness = tonumber(script.Parent.OutlineThickness.Text)
change("BorderSizePixel",tonumber(script.Parent.OutlineThickness.Text))
end
end)
script.Parent.Dot.Activated:Connect(function()
script.Parent.Dot:SetAttribute("Enabled",not script.Parent.Dot:GetAttribute("Enabled"))
cc.D.Visible = enabled("Dot")
if enabled("Dot") then
script.Parent.Dot.BackgroundColor3 = Color3.fromRGB(0,255,0)
else
script.Parent.Dot.BackgroundColor3 = Color3.fromRGB(255,255,255)
end
end)
script.Parent.Rainbow.Activated:Connect(function()
script.Parent.Rainbow:SetAttribute("Enabled",not script.Parent.Rainbow:GetAttribute("Enabled"))
if enabled("Rainbow") then
script.Parent.Rainbow.BackgroundColor3 = Color3.fromRGB(0,255,0)
else
script.Parent.Rainbow.BackgroundColor3 = Color3.fromRGB(255,255,255)
end
end)
function move(speed)
speed = math.abs(speed)
if script.Parent.Movement:GetAttribute("Enabled") then
cc.L.Position = UDim2.new(0.5,
math.clamp(-offset * ((enabled("Movement") and (speed / factor)) or 1),-math.huge,-offset),
0.5,0)
cc.R.Position = UDim2.new(0.5,
math.clamp(offset * ((enabled("Movement") and (speed / factor)) or 1),offset,math.huge),
0.5,0)
cc.T.Position = UDim2.new(0.5,0,0.5,
math.clamp(-offset * ((enabled("Movement") and (speed / factor)) or 1),-math.huge,-offset))
cc.B.Position = UDim2.new(0.5,0,0.5,
math.clamp(offset * ((enabled("Movement") and (speed / factor)) or 1),offset,math.huge))
end
end
function events()
local h = game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid")
h.Running:Connect(move)
h.Climbing:Connect(move)
h.Swimming:Connect(move)
end
events()
game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function(char)
events()
end)
script.Parent.Menu.Activated:Connect(function()
script.Parent.Parent.Config.Visible = not script.Parent.Parent.Config.Visible
script.Parent.Menu:SetAttribute("IsVisible",script.Parent.Parent.Config.Visible)
end)
local old1,old2 = false,false
game:GetService("UserInputService").InputBegan:Connect(function(i,gp)
if not gp and i.KeyCode == Enum.KeyCode.RightControl then
script.Parent.Visible = not script.Parent.Visible
script.Parent.Parent.Colors.Visible = false
script.Parent.Parent.Config.Visible = false
if script.Parent.Visible then
if script.Parent.Color.Drop.Text == "<" then
script.Parent.Parent.Colors.Visible = true
end
if script.Parent.Menu:GetAttribute("IsVisible") then
script.Parent.Parent.Config.Visible = true
end
end
end
end)
local msgs = {
['Color'] = "The color of your crosshair\nExample: 0,170,255",
['Opacity'] = "The opacity of your crosshair\nMust be a number between 0 and 1",
['Length'] = "The length of each line",
['Thickness'] = "The thickness of each line",
['Offset'] = "How far away the lines are from the center",
['Movement'] = "If enabled, character movement will affect the size of the crosshair",
['Factor'] = "hard to explain, just set it to something greater than 0",
['Outline'] = "If enabled, your crosshair will have an outline",
['OutlineColor'] = "The color of the outline",
['OutlineThickness'] = "The thickness of the outline",
['Dot'] = "If enabled, a dot in the center of your crosshair will be visible",
['Rainbow'] = "If enabled, your crosshair will cycle through colors",
['Reset'] = "Resets your crosshair to the default config. If you have set a config to default, it will set it to that config instead.",
['Menu'] = "Opens the config menu",
['Config'] = "Paste your config here and click Load Config",
['Load'] = "Paste your config in the text box above and click Load Config",
['Create'] = "Enter your desired config name in the text box at the top and click Create New Config",
['Delete'] = "Enter the name of the config you want to delete in the text box at the top (CASE SENSITIVE!)",
['Copy'] = "Copies the current crosshair's config to your clipboard",
['Set'] = "Sets the default config to the current crosshair",
}
local t = script.Parent:GetChildren()
for _,v in next, script.Parent.Parent.Config:GetChildren() do
table.insert(t,v)
end
for _,v in next, t do
if not v:IsA("LocalScript") and not v:IsA("UIListLayout") then
local ishovering = false
v.MouseEnter:Connect(function()
if not rs then
return
end
if msgs[v.Name] then
script.Parent.Parent.Message.Title.Text = (v.ClassName == "TextBox" and v.PlaceholderText) or v.Text
script.Parent.Parent.Message.Label.Text = msgs[v.Name]
ishovering = true
wait(1)
if ishovering then
script.Parent.Parent.Message.Visible = true
v.MouseLeave:Wait()
script.Parent.Parent.Message.Visible = false
end
ishovering = false
end
end)
v.MouseLeave:Connect(function()
ishovering = false
end)
end
end
game:GetService("RunService").RenderStepped:Connect(function()
if rs then
local m = game:GetService("UserInputService"):GetMouseLocation()
script.Parent.Parent.Message.Position = UDim2.new(0,m.X + 16,0,m.Y + 22)
end
if enabled("Rainbow") then
change("BackgroundColor3",Color3.fromHSV(tick()%5/5,1,1))
end
end)
-- config shits
local x = script.Parent.Parent.Config
local z = nil
local fake = { -- this is for testing in studio
['Default.json'] = '{"Offset":4,"OutlineColor":{"R":0,"B":0,"G":0},"Color":{"R":255,"B":255,"G":255},"Opacity":0,"Factor":2,"Length":6,"Outline":false,"OutlineThickness":1,"Thickness":2,"CenterDot":true,"MovementError":false}',
['MyConfig.json'] = '{"Offset":2,"OutlineColor":{"R":0,"B":0,"G":0},"Color":{"R":0,"B":255,"G":255},"Opacity":0,"Factor":2,"Thickness":2,"Length":4,"OutlineThickness":1,"CenterDot":false,"MovementError":false,"Outline":false}'
}
x.Config.FocusLost:Connect(function()
z = x.Config.Text
end)
x.Load.Activated:Connect(function()
if not z then
return
end
loadconfig(z)
message("Successfully loaded your config!",1.5)
end)
x.Create.Activated:Connect(function()
if z ~= nil and not z:find("{") then
local c = getconfig()
if not studio then
writefile("CCv2\\"..z..".json",c)
end
local new = x.Placeholder:Clone()
new.Parent = x
new.Visible = true
new.Text = z
new.Name = z
message("Created a new config: "..z,1.5)
new.Activated:Connect(function()
loadconfig(c)
message("Successfully loaded config: "..z,1.5)
end)
end
end)
x.Delete.Activated:Connect(function()
if z ~= nil and not z:find("{") and isfile("CCv2\\"..z..".json") and script.Parent.Parent.Config:FindFirstChild(z) then
if not studio then
delfile("CCv2\\"..z..".json")
end
script.Parent.Parent.Config[z]:Destroy()
message("Deleted config: "..z,2)
elseif not isfile(z..".json") then
message(z.." does not exist",2)
end
end)
x.Copy.Activated:Connect(function()