This repository was archived by the owner on May 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloader.lua
More file actions
3269 lines (2819 loc) · 97.5 KB
/
loader.lua
File metadata and controls
3269 lines (2819 loc) · 97.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
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
--sadly despite the rewrite and the rebranding we still have to keep KE as everything for backwards compatibility
--womp womp
--bloxstrap support
Bloxstrap = {
SendMessage = function(command, data)
local json = game:GetService('HttpService'):JSONEncode({
command = command,
data = data
});
print("[BloxstrapRPC] " .. json)
end;
SetRichPresence = function(data)
if data.timeStart ~= nil then
data.timeStart = math.round(data.timeStart)
end
if data.timeEnd ~= nil then
data.timeEnd = math.round(data.timeEnd)
end
Bloxstrap.SendMessage("SetRichPresence", data)
end;
};
-- why did i even need to include this 💀
if game.PlaceId ~= 6447798030 and game.PlaceId ~= 6996694685 then
return error("No!")
end
-- Check which functions are missing in order to know what to expect from the client
local missing = {};
if not getgc then -- This one is required for the script to work, as it hooks into the Framework.
return error("Your exploit is not supported by this script; Missing function getgc().")
end;
if not writefile or not readfile or not isfile or not isfolder or not makefolder then
return error("Your exploit is not supported by this script; Missing fs functions which are required by v0.11b+.")
end;
if not setclipboard then
missing["clipboard"] = true;
end;
if not (type(syn) == 'table' and syn.set_thread_identity) or setidentity or setthreadcontext then
missing["setidentity"] = true;
end;
-- 💀
if not isfolder("KateEngine") then
makefolder("KateEngine");
end;
-- Check if this is the first time the script is being executed; Doable by checking if a file exists.
if not isfile("KateEngine/Accepted.txt") then
-- Create a GUI to accept the terms of use.
local screenGui = Instance.new("ScreenGui")
local canvasGroup = Instance.new("CanvasGroup")
canvasGroup.AnchorPoint = Vector2.new(0.5, 1.5)
canvasGroup.BackgroundColor3 = Color3.fromRGB(39, 39, 39)
canvasGroup.Position = UDim2.fromScale(0.5, 0.5)
canvasGroup.Size = UDim2.fromScale(0.25, 0.325)
local frame = Instance.new("Frame")
frame.AnchorPoint = Vector2.new(0.5, 0)
frame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
frame.BorderSizePixel = 0
frame.Position = UDim2.fromScale(0.5, 0)
frame.Size = UDim2.new(1, 0, 0, 30)
local textLabel = Instance.new("TextLabel")
textLabel.FontFace = Font.new("rbxasset://fonts/families/PermanentMarker.json")
textLabel.Text = "Kate Engine - Warning"
textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
textLabel.TextSize = 22
textLabel.AnchorPoint = Vector2.new(0.5, 0)
textLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
textLabel.BackgroundTransparency = 1
textLabel.Position = UDim2.fromScale(0.5, 0)
textLabel.Size = UDim2.new(0, 200, 1, 0)
local uIStroke = Instance.new("UIStroke")
uIStroke.Thickness = 1.5
uIStroke.Parent = textLabel
textLabel.Parent = frame
frame.Parent = canvasGroup
local uICorner = Instance.new("UICorner")
uICorner.Parent = canvasGroup
local textLabel1 = Instance.new("TextLabel")
textLabel1.FontFace = Font.new("rbxasset://fonts/families/PermanentMarker.json")
textLabel1.Text = "By using Funkify, you agree that any actions you do with it are your own, meaning it is your own responsibility. All FF(ify) contributors are not responsible to whatever happens when you use this.\n\n(also pls no use for cheats ty)"
textLabel1.TextColor3 = Color3.fromRGB(255, 255, 255)
textLabel1.TextSize = 22
textLabel1.TextStrokeTransparency = 0
textLabel1.TextWrapped = true
textLabel1.AnchorPoint = Vector2.new(0.5, 0)
textLabel1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
textLabel1.BackgroundTransparency = 1
textLabel1.Position = UDim2.new(0.5, 0, 0, 40)
textLabel1.Size = UDim2.new(0.9, 0, 1, -70)
textLabel1.Parent = canvasGroup
local agree = Instance.new("TextButton")
agree.FontFace = Font.new("rbxasset://fonts/families/PermanentMarker.json")
agree.Text = "Agree"
agree.TextColor3 = Color3.fromRGB(255, 255, 255)
agree.TextSize = 18
agree.TextStrokeTransparency = 0
agree.AnchorPoint = Vector2.new(0, 1)
agree.BackgroundColor3 = Color3.fromRGB(144, 144, 144)
agree.BorderSizePixel = 0
agree.Position = UDim2.fromScale(0, 1)
agree.Size = UDim2.new(0.6, 0, 0, 30)
agree.Parent = canvasGroup
local decline = Instance.new("TextButton")
decline.FontFace = Font.new("rbxasset://fonts/families/PermanentMarker.json")
decline.Text = "Disagree and Unload"
decline.TextColor3 = Color3.fromRGB(255, 255, 255)
decline.TextSize = 18
decline.TextStrokeTransparency = 0
decline.AnchorPoint = Vector2.new(1, 1)
decline.BackgroundColor3 = Color3.fromRGB(77, 77, 77)
decline.BorderSizePixel = 0
decline.Position = UDim2.fromScale(1, 1)
decline.Size = UDim2.new(0.4, 0, 0, 30)
decline.Parent = canvasGroup
canvasGroup.Parent = screenGui
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui");
game:GetService("TweenService"):Create(canvasGroup, TweenInfo.new(0.5), {Position = UDim2.fromScale(0.5, 0.5)}):Play()
local choice = nil
agree.MouseButton1Click:Connect(function()
choice = true
end)
decline.MouseButton1Click:Connect(function()
choice = false
end)
-- Wait until the user makes a choice.
repeat
task.wait();
until type(choice) == "boolean";
game:GetService("TweenService"):Create(canvasGroup, TweenInfo.new(0.5), {Position = UDim2.fromScale(0.5, 1.5)}):Play()
-- If the user chose to decline, unload the script.
if not choice then
task.wait(0.5);
screenGui:Destroy()
return -- Unloads the script
end
-- If the user chose to agree, continue.
screenGui:Destroy()
-- Add the file so the UI won't show up again.
writefile("KateEngine/Accepted.txt", "true");
end;
local Version = "v0.13a";
-- Function to get the Framework
function getGameFramework()
for _, v in next, getgc(true) do
if type(v) == 'table' and rawget(v, 'GameUI') then
return v
end
end
end
function getNetworking()
for _, v in next, getgc(true) do
if type(v) == 'table' and (type(rawget(v, 'Client')) == 'table' or type(rawget(v, 'Server')) == 'table') and rawget(v, "Broadcast") then
return v
end
end
end;
local ColorJSON = {
Encode = function(Color)
if typeof(Color) == "Color3" then
return string.format("%s,%s,%s", Color.r, Color.g, Color.b);
end;
end;
Decode = function(Color)
if typeof(Color) == "Color3" then
-- It's already a color, so just return it.
return Color;
elseif typeof(Color) == "string" then
local RGB = string.split(Color, ",");
return Color3.new(RGB[1], RGB[2], RGB[3]);
end;
end;
};
local funkything = Instance.new("ScreenGui");
funkything.Name = "loadinggui";
funkything.Parent = game.CoreGui;
local load = Instance.new("Frame");
load.Name = "loading";
load.Parent = funkything;
load.BackgroundColor3 = Color3.fromRGB(0,0,0);
load.BackgroundTransparency = 0.5;
load.BorderSizePixel = 0;
load.Position = UDim2.new(0.5, 0, 1, -50);
load.Size = UDim2.new(0.2, 0, 0, 30);
load.AnchorPoint = Vector2.new(0.5, 1);
local stroke = Instance.new("UIStroke");
stroke.Name = "stroke";
stroke.Parent = load;
stroke.Color = Color3.fromRGB(0,0,0);
stroke.Thickness = 2;
stroke.Transparency = 0.5;
local loadtext = Instance.new("TextLabel");
loadtext.Name = "loadingtext";
loadtext.Parent = load;
loadtext.BackgroundColor3 = Color3.fromRGB(0,0,0);
loadtext.BackgroundTransparency = 1;
loadtext.BorderSizePixel = 0;
loadtext.Position = UDim2.fromScale(0.5, 0.5);
loadtext.Size = UDim2.fromScale(1, 1);
loadtext.AnchorPoint = Vector2.new(0.5, 0.5);
loadtext.Text = "-";
loadtext.TextColor3 = Color3.fromRGB(170,170,170);
loadtext.TextSize = 24;
loadtext.TextStrokeTransparency = 0.5;
loadtext.Font = Enum.Font.PermanentMarker;
loadtext.ZIndex = 2; -- Above the loading bar
local loadbar = Instance.new("Frame");
loadbar.Name = "loadingbar";
loadbar.Parent = load;
loadbar.BackgroundColor3 = Color3.fromRGB(255,255,255);
loadbar.BackgroundTransparency = 0;
loadbar.BorderSizePixel = 0;
loadbar.Position = UDim2.fromScale(0, 0);
loadbar.Size = UDim2.fromScale(0, 1);
loadbar.AnchorPoint = Vector2.new(0, 0);
local LocalPlayer = game:GetService("Players").LocalPlayer;
local LoadAsset = getsynasset or getcustomasset;
local FetchAsset = function(Asset)
if isfolder('KateEngine/Assets') and isfile('KateEngine/Assets/'..Asset) then
return LoadAsset('KateEngine/Assets/'..Asset);
else
if not isfolder('KateEngine/Assets') then
makefolder('KateEngine/Assets');
end
writefile('KateEngine/Assets/'..Asset,game:HttpGet("https://github.com/Sezei/ff-kate-engine/blob/main/modchart_material/"..Asset.."?raw=true"));
return LoadAsset('KateEngine/Assets/'..Asset);
end
end;
local PreRequisites = {
"KF_warning.png";
"lse_maniaDW.png";
"lse_maniaGS.png";
"mania_defaultgray.png";
"mania_defaultalt.png";
"metalpipe.mp3";
"pop_up.mp3";
"Meow.mp3";
"woeM.mp3";
"popup1.png";
"popup2.png";
"popup3.png";
"popup4.png";
"popup5.png";
"popup6.png";
"popup7.png";
"popup8.png";
"popup9.png";
"popup10.png";
"popup11.png";
"fkc_eye1.png";
"fkc_eye2.png";
"fkc_eye3.png";
"fkc_eye4.png";
"fkc_eyeidle1.png";
"fkc_eyeidle2.png";
"fkc_eyeidle3.png";
"fkc_eyeidle4.png";
"funkify_1.png";
};
for k,v in pairs(PreRequisites) do
loadtext.Text = "Loading Asset: "..v.." ("..k.."/"..#PreRequisites..")";
loadbar.Size = UDim2.fromScale(k/#PreRequisites, 1);
FetchAsset(v);
end;
loadtext.Text = "Taking your sweet time...";
local Framework = getGameFramework();
-- Create the KateEngine table
KateEngine = {
-- Base Info
Version = Version;
Cache = {};
InSolo = false;
Network = getNetworking();
DefaultStrings = {
ScoreL = "Score: <Score>";
ScoreR = "Score: <Score>";
Accuracy = "Accuracy: <Accuracy>";
Misses = "Misses: <Misses>";
Combo = "Combo: <Combo>";
FullCombo = "Full Combo (<Combo>)";
};
Strings = {
ScoreL = "Score: <Score>";
ScoreR = "Score: <Score>";
Accuracy = "Accuracy: <Accuracy>";
Misses = "Misses: <Misses>";
Combo = "Combo: <Combo>";
FullCombo = "Full Combo (<Combo>)";
};
Song = {
Id = 0;
BPM = 0;
Clock = 0;
Step = 0;
Beat = 0;
Section = 0;
Instance = nil; -- The audio instance the song uses.
};
-- Game Modifications
Health = {
Current = 40;
Max = 100;
};
-- UI Improvements
Mania = {
PreviousCombo = 0;
CurrentCombo = 0;
TotalNotes = 0;
Combo = 0;
Perfects = 0;
};
Topbar = {
OriginTime = 0;
SongDifficulty = 0;
};
ColorJSON = ColorJSON;
-- UI Settings; They are built from the MenuBuild table, so for now it's empty. For documentation sake, Key is the name of the setting, and Value is the value of the setting.
Settings = {};
-- Menu Settings; These are the settings that are used to build the menu and are used to save the settings.
MenuBuild = {
["Main"] = {
{
Type = "Boolean";
Default = false;
Text = "3D Combo Display";
Key = "WorldCombo";
Stored = true;
};
{
Type = "Boolean";
Default = true;
Text = "Debug Visible";
Key = "DebugVisible";
Callback = function(Value)
Framework.KateEngine.Assets.Watermark.BPMSheet.Visible = Value;
end;
Stored = true;
};
{
Requirement = "clipboard";
Type = "Button";
Text = "Copy Song ID";
Callback = function()
setclipboard(Framework:GetKEValue("SongID"));
end;
};
{
Requirement = "clipboard";
Type = "Button";
Text = "Copy Discord Invite";
Callback = function()
setclipboard("https://discord.gg/S5azXERwF7");
end;
};
{
Type = "Button";
Text = "Export Chart";
Callback = function()
-- Get the chart
local Chart = Framework.KateEngine.Cache["CurrentChart"];
-- Attempt to turn the chart into JSON
local Success, JSON = pcall(game:GetService("HttpService").JSONEncode, game:GetService("HttpService"), Chart);
if Success then
if not isfolder("KateEngine/Exported_Charts") then
makefolder("KateEngine/Exported_Charts");
end;
writefile("KateEngine/Exported_Charts/" .. Framework:GetKEValue("SongID") .. ".json", JSON);
end
end;
};
{
Type = "Button";
Text = "Force Save Settings";
Callback = function()
writefile("KateEngine/config.png", game:GetService("HttpService"):JSONEncode(KateEngine.Settings));
end;
};
{
Requirement = "custom modchart";
Type = "Button";
Text = "Reload Modcharts";
Callback = function()
KateEngine.ReloadModcharts();
end;
};
};
["Display"] = {
{
Type = "Label";
Text = "-- MANIA --";
};
{
Type = "Label";
Text = "This section contains settings for the Mania Improvements and the Combo Counter.";
};
{
Type = "Boolean";
Default = false;
Text = "Enabled";
Key = "ManiaCounter";
Stored = true;
};
{
Type = "Boolean";
Default = true;
Text = "FC Indicator";
Key = "Mania_FCIndicator";
Stored = true;
};
{
Type = "Boolean";
Default = false;
Text = "Simple Ratings";
Key = "Mania_SimpleRatings";
Stored = true;
};
{
Type = "Boolean";
Default = true;
Text = "Dynamic Font Increments";
Key = "Mania_DynamicIncrements";
Stored = true;
};
{
Type = "Multichoice";
Default = 50;
Text = "Milestone";
Key = "Mania_Milestone";
Options = {10, 20, 25, 50, 100};
Stored = true;
};
{
Type = "Color3";
Default = ColorJSON.Encode(Color3.new(1,1,1));
Text = "0 Combo Color";
Key = "Mania_0Combo";
Stored = true;
};
{
Type = "Color3";
Default = ColorJSON.Encode(Color3.new(1,1,0.75));
Text = "100 Combo Color";
Key = "Mania_100Combo";
Stored = true;
};
{
Type = "Color3";
Default = ColorJSON.Encode(Color3.new(1,1,0.5));
Text = "200 Combo Color";
Key = "Mania_200Combo";
Stored = true;
};
{
Type = "Color3";
Default = ColorJSON.Encode(Color3.new(1,1,0.25));
Text = "300 Combo Color";
Key = "Mania_300Combo";
Stored = true;
};
{
Type = "Color3";
Default = ColorJSON.Encode(Color3.new(1,1,0));
Text = "400 Combo Color";
Key = "Mania_400Combo";
Stored = true;
};
{
Type = "Label";
Text = "-- JUDGEMENT OVERLAY --";
};
{
Type = "Label";
Text = "Judgement overlays are displaying an overlay when you hit a note, depending on the rating.";
};
{
Type = "Boolean";
Default = false;
Text = "Show Judgement Overlays [EXPERIMENTAL]";
Key = "Mania_JudgementOverlays";
Stored = true;
};
{
Type = "Boolean";
Default = true; -- Less annoyance for the players (deserved tbh)
Text = "Non-Sick Overlays Only";
Key = "Mania_NonPerfectOverlays";
Stored = true;
};
};
["Gameplay"] = {
{
Type = "Label";
Text = "-- BOT OPPONENT --";
};
{
Type = "Label";
Text = "This section contains settings for the bot opponent.";
};
{
Type = "Multichoice";
Default = "Insane";
Text = "Bot Difficulty";
Key = "BotDifficulty";
Options = {"Average Blimey (Insane) Player", "Easy", "Normal", "Hard", "Insane", "PFC"};
Stored = true;
};
{
Type = "Label";
Text = "-- HEALTHBAR --";
};
{
Type = "Label";
Text = "This section contains settings for the healthbar.";
};
{
Type = "Boolean";
Default = true;
Text = "Enabled";
Key = "Healthbar";
Callback = function(Value)
if Value then
KateEngine.Assets.Healthbar.Visible = true;
else
KateEngine.Assets.Healthbar.Visible = false;
end
end;
Stored = true;
};
{
Type = "Boolean";
Default = true;
Text = "Death on 0 Health";
Key = "Healthbar_DeathOnZero";
Stored = true;
};
{
Type = "Slider";
Default = 5; -- Apparently it's 5 from the Framework source.
Text = "Health Gain";
Key = "Healthbar_HealthGain";
Minimum = 1;
Maximum = 50;
Stored = true;
};
{
Type = "Slider";
Default = 15;
Text = "Health Loss";
Key = "Healthbar_HealthLoss";
Minimum = 1;
Maximum = 50;
Stored = true;
};
{
Type = "Color3";
Default = ColorJSON.Encode(Color3.new(1,0,0));
Text = "Missing Health Color";
Key = "Healthbar_ColorBack";
Callback = function(Value)
KateEngine.Assets.Healthbar.BackgroundColor3 = Value;
end;
Stored = true;
};
{
Type = "Color3";
Default = ColorJSON.Encode(Color3.new(0,1,0));
Text = "Remaining Health Color";
Key = "Healthbar_ColorFront";
Callback = function(Value)
KateEngine.Assets.Healthbar.Front.BackgroundColor3 = Value;
end;
Stored = true;
};
{
Type = "Label";
Text = "Player Icon";
};
{
Type = "TextField";
Default = "rbxassetid://6605178204";
Text = "Player Icon";
Key = "Healthbar_IconPlayer";
Callback = function(Value)
KateEngine.Assets.Healthbar.Front.IconP2.Image = Value;
end;
Stored = true;
};
{
Type = "TextField";
Default = "";
Text = "Losing Icon";
Key = "Healthbar_IconPlayerLosing";
Stored = true;
};
{
Type = "TextField";
Default = "";
Text = "Winning Icon";
Key = "Healthbar_IconPlayerWinning";
Stored = true;
};
{
Type = "Label";
Text = "Opponent Icon";
};
{
Type = "TextField";
Default = "rbxassetid://8846704715";
Text = "Opponent Icon";
Key = "Healthbar_IconOpponent";
Callback = function(Value)
KateEngine.Assets.Healthbar.Front.IconP1.Image = Value;
end;
Stored = true;
};
{
Type = "TextField";
Default = "";
Text = "Losing Icon";
Key = "Healthbar_IconOpponentLosing";
Stored = true;
};
{
Type = "TextField";
Default = "";
Text = "Winning Icon";
Key = "Healthbar_IconOpponentWinning";
Stored = true;
};
{
Type = "Label";
Text = "-- CAMERA --"
};
{
Type = "Label";
Text = "This section contains settings that can be used to manipulate the camera."
};
{
Type = "Boolean";
Default = true;
Text = "Camera Manipulation";
Key = "CamManipulation";
Stored = true;
};
{
Type = "Slider";
Default = 5;
Text = "Camera Displacement";
Key = "CamDisplace";
Minimum = 1;
Maximum = 30;
Stored = true;
};
};
["Cosmetic"] = {
{
Type = "Label";
Text = "-- PERFECT RATING --";
};
{
Type = "Label";
Text = "This section contains settings for the custom perfect rating.";
};
{
Type = "Boolean";
Default = true;
Text = "Enabled";
Key = "PerfectRating";
Stored = true;
};
{
Type = "Slider";
Default = 1;
Text = "Perfect Timeframe (ms)";
Key = "PerfectTimeframe";
Minimum = 1;
Maximum = 20;
Stored = true;
};
{
Type = "Label";
Text = "-- MISCELLANEOUS --";
};
{
Type = "Label";
Text = "Other settings that do not affect gameplay";
};
{
Type = "Multichoice";
Default = "None";
Text = "Death Effect";
Key = "DeathEffect";
Options = {
"None";
"Explosion";
"Burn";
"Pipe";
};
Stored = true;
};
{
Type = "Boolean";
Default = true;
Text = "Miss Highlight";
Key = "MissHighlight";
Stored = true;
};
};
["Modcharting"] = {
{
Type = "Label";
Text = "-- MODCHARTING --";
};
{
Type = "Label";
Text = "This section contains settings for modcharting.";
};
{
Type = "Boolean";
Default = true;
Text = "Modcharting Enabled";
Key = "Modcharts";
Stored = true;
};
{
Type = "Boolean";
Default = true;
Text = "Allow Shitpost Charts";
Key = "Modcharts_AllowShitposts";
Stored = true;
};
{
Type = "Slider";
Default = 5;
Text = "Default Camera Zoom Strength (x0.2)";
Key = "Modcharts_CameraStrength";
Minimum = 0;
Maximum = 10;
Stored = true;
};
};
["Credits"] = {
{
Type = "Label";
Text = "Kate Engine " .. Version;
};
{
Type = "Label";
Text = "Contributors:";
};
{
Type = "Label";
Text = "<font color=\"#ff1a70\">Sezei</font>";
};
{
Type = "Label";
Text = "<font color=\"#11a7b8\">Aaron</font>";
};
{
Type = "Label";
Text = "Resources Used:";
};
{
Type = "Label";
Text = "<font color=\"#00ff00\">Wally</font> / <font color=\"#00ff00\">Bigtimbob</font> - Framework Detection";
};
{
Type = "Label";
Text = "<font color=\"#ff7700\">Kinlei</font>(?) - UI Library (MaterialUI)";
};
{
Type = "Boolean";
Default = false;
Text = "Hide Watermark";
Key = "HideWatermark";
Callback = function(Value)
if Value then
KateEngine.Assets.Watermark.Visible = false;
else
KateEngine.Assets.Watermark.Visible = true;
end
end;
Stored = false;
}
};
};
-- Store assets generated by the script
Assets = {
-- UIKey = Instance (Element)
};
CameraBinds = {
--UIKey = {
-- Strength = Number; -> How 'strongly' is it binded to the camera movement: How much the element will move against the camera movement to 'stay in place';
-- Self = Instance; -> The element itself;
--}
};
};
Framework.KateEngine = KateEngine;
-- Pre-Rewrite Support
Framework.KEValues = {};
function Framework:SetKEValue(key, value)
self.KEValues[key] = value;
end
function Framework:GetKEValue(key)
return self.KEValues[key];
end
function Format(Original,ReplacementData)
local s:string = tostring(Original);
for old,new in pairs(ReplacementData) do
s = s:gsub("<"..old..">",tostring(new));
end
return s;
end
-- Services and Variables
local LoadStartTime = tick();
local HttpService = game:GetService("HttpService");
local TweenService = game:GetService("TweenService");
local UIS = game:GetService("UserInputService");
-- Game Stuff
local GameUI = LocalPlayer.PlayerGui:FindFirstChild("GameUI");
local IngameUI = GameUI:FindFirstChild("Screen");
local PromptUI = GameUI:FindFirstChild("Windows");
local RemoteEvent = game.ReplicatedStorage.RE;
-- Material UI (Used for the menu)
local material = loadstring(game:HttpGet("https://raw.githubusercontent.com/Sezei/ff-kate-engine/unstable/UIFramework.lua",true))().Load({Style = 1;Title = "Kate Engine "..Version;Theme = "Dark";SizeX = 550;})
material.Self.Enabled = false;
-- Build the UI
-- Mania Combo Counter
local ManiaComboCounter = Instance.new("TextLabel");
ManiaComboCounter.AnchorPoint = Vector2.new(0.5, 0.5);
ManiaComboCounter.Position = UDim2.fromScale(0.5, 0.5);
ManiaComboCounter.Parent = IngameUI;
ManiaComboCounter.BackgroundTransparency = 1;
ManiaComboCounter.TextColor3 = Color3.new(1, 1, 1);
ManiaComboCounter.TextStrokeColor3 = Color3.new(0, 0, 0);
ManiaComboCounter.TextStrokeTransparency = 0.5;
ManiaComboCounter.TextSize = 50;
ManiaComboCounter.Text = "0";
ManiaComboCounter.Font = Enum.Font.Arcade;
ManiaComboCounter.Visible = false;
ManiaComboCounter.Name = "KE_ManiaComboCounter";
KateEngine.Assets.ManiaComboCounter = ManiaComboCounter;
local ManiaComboCounterTween = ManiaComboCounter:Clone();
ManiaComboCounterTween.Visible = true;
ManiaComboCounterTween.Parent = ManiaComboCounter;
ManiaComboCounterTween.TextStrokeTransparency = 1;
ManiaComboCounterTween.TextTransparency = 1;
ManiaComboCounterTween.Name = "Tween";
local ManiaRating = ManiaComboCounter:Clone();
ManiaRating.Visible = true;
ManiaRating.Parent = ManiaComboCounter;
ManiaRating.Text = "";
ManiaRating.Position = UDim2.new(0.5,0,0,40);
ManiaRating.TextSize = 30;
ManiaRating.Name = "Rating";
-- Mania-Like Judgement Overlay (For some reason modern rhythm games use this, so I added it as well ig lol)
local ManiaJudgementOverlay = Instance.new("ImageLabel");
ManiaJudgementOverlay.Position = UDim2.new(0, 0, 0, -40);
ManiaJudgementOverlay.Size = UDim2.new(1, 0, 1, 40);
ManiaJudgementOverlay.Parent = IngameUI;
ManiaJudgementOverlay.BackgroundTransparency = 1;
ManiaJudgementOverlay.Image = "rbxassetid://12395330181";
ManiaJudgementOverlay.Visible = false;
ManiaJudgementOverlay.Name = "KE_ManiaJudgementOverlay";
ManiaJudgementOverlay.ImageColor3 = Color3.fromRGB(255, 255, 255);
ManiaJudgementOverlay.ImageTransparency = 1;
ManiaJudgementOverlay.ScaleType = Enum.ScaleType.Slice;
ManiaJudgementOverlay.SliceCenter = Rect.new(4, 4, 96, 96);
ManiaJudgementOverlay.SliceScale = 1.5;
KateEngine.Assets.ManiaJudgementOverlay = ManiaJudgementOverlay;
-- Lyrics UI
local LyricsLabel = Instance.new("TextLabel");
LyricsLabel.AnchorPoint = Vector2.new(0.5, 0.75);
LyricsLabel.Position = UDim2.fromScale(0.5, 0.75);
LyricsLabel.Parent = IngameUI.Arrows;
LyricsLabel.BackgroundTransparency = 1;
LyricsLabel.TextColor3 = Color3.new(1, 1, 1);
LyricsLabel.TextStrokeColor3 = Color3.new(0, 0, 0);
LyricsLabel.TextStrokeTransparency = 0.5;
LyricsLabel.TextSize = 45;