-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMightyOmega.lua
More file actions
2965 lines (2393 loc) · 103 KB
/
MightyOmega.lua
File metadata and controls
2965 lines (2393 loc) · 103 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
local Maid = sharedRequire('../utils/Maid.lua');
local library = sharedRequire('../UILibrary.lua');
local ToastNotif = sharedRequire('../classes/ToastNotif.lua');
local Utility = sharedRequire('../utils/Utility.lua');
local EntityESP = sharedRequire('../classes/EntityESP.lua');
local createBaseESP = sharedRequire('../utils/createBaseESP.lua');
local Services = sharedRequire('../utils/Services.lua');
local Textlogger = sharedRequire('@classes/TextLogger.lua');
local audioPlayer = sharedRequire('@utils/AudioPlayer.lua');
local makeESP = sharedRequire('@utils/makeESP.lua');
local column1, column2 = unpack(library.columns);
local ReplicatedStorage, Players, RunService, Lighting, UserInputService, VirtualInputManager, TeleportService, PathfindingService, MarketPlaceService, guiService = Services:Get(
'ReplicatedStorage',
'Players',
'RunService',
'Lighting',
'UserInputService',
'VirtualInputManager',
'TeleportService',
'PathfindingService',
'MarketplaceService',
'GuiService'
);
local chatLogger = Textlogger.new({
title = 'Chat Logger',
preset = 'chatLogger',
buttons = {'Copy Username', 'Copy User Id', 'Copy Text', 'Report User'}
});
do -- // Chat Logger
chatLogger.OnPlayerChatted:Connect(function(player, message)
local timeText = DateTime.now():FormatLocalTime('H:mm:ss', 'en-us');
local playerName = player.Name;
message = ('[%s] [%s] %s'):format(timeText, playerName, message);
chatLogger:AddText({
text = message,
player = player
});
end);
end;
local plr = Players.LocalPlayer;
local plrGUI = plr.PlayerGui;
local char = plr.Character;
local mouse = plr:GetMouse()
local camera = workspace.CurrentCamera;
local LivingThings;
local tryingToSleep = false;
local doingAction = false;
local modNotifier = audioPlayer.new({
soundId = 'rbxassetid://5608799630',
volume = 10,
forcedAudio = 10,
looped = true
});
--function inits
local isA = game.IsA;
local ffc = game.FindFirstChild;
local ffcwia = game.FindFirstChildWhichIsA;
local kick = game.Players.LocalPlayer.Kick;
plr.CharacterAdded:Connect(function()
char = plr.Character;
end);
plr.ChildAdded:Connect(function(v)
if v.Name ~= "PlayerGui" then return; end
plrGUI = v;
end)
local modroles = {
["MainChar"] = true;
["Mod"] = true;
["Trial Mod"] = true;
["Associates."] = true;
["Owner"] = true;
};
local plrTbl = {};
local function checkIfMod(v)
local role;
pcall(function()
role = v:GetRoleInGroup(4800422);
end);
plrTbl[string.lower(v.Name)] = v;
if not library.flags.modNotifier or not role or not modroles[role] then return; end
if library.flags.autoPanic then library:Unload(); end
if library.flags.autoLeave then
if char then char:Destroy(); end
task.delay(10,kick,plr,'Mod joined your server');
end
modNotifier:Play();
local notif = ToastNotif.new({
text = "There is a mod in your server: "..v.Name;
});
notif.Destroying:Connect(function()
modNotifier:Stop();
end)
end
Players.PlayerAdded:Connect(checkIfMod);
Players.PlayerRemoving:Connect(function(v)
plrTbl[string.lower(v.Name)] = nil;
end);
--Non exploit functions
local function parseKey(str)
return Utility.find({str:byte(1,9999)}, function(v) return v > 128 end);
end
local function getKey(script)
if not script:IsA("LocalScript") then error("Expected a localscript got "..script.ClassName) end
local key;
local ran,env = pcall(getsenv,script);
if not ran then return; end
for _,v in next, env do
if typeof(v) ~= 'function' then continue; end
for _,k in next, getupvalues(v) do
if typeof(k) ~= 'string' or not parseKey(k) then continue; end
key = k;
break;
end
end
if key then return key; end
for _,v in next, script.Parent:GetDescendants() do
local con = string.match(v.ClassName,"Button") and getconnections(v.MouseButton1Click)[1] or getconnections(v.Changed)[1];
if not con or not con.Function then continue; end
for _,k in next, getupvalues(con.Function) do
if typeof(k) ~= 'string' or not parseKey(k) then continue; end
key = k;
break;
end
if key then break; end
end
return key;
end
getgenv().getKey = getKey;
local function round(n, decimals)
decimals = decimals or 0
return math.floor(n * 10^decimals) / 10^decimals
end
local function loaded()
if not char then
return false;
elseif not ffc(char,"HumanoidRootPart") then
return false;
elseif not ffc(char,"Humanoid") then
return false;
elseif not ffc(char,"DB") then
return false;
end
return true;
end
local function safeClick(part) --Part should have a vector3 and contain ClickDetector
if not library.flags.useMouseClick then fireclickdetector(part.Parent:FindFirstChildWhichIsA("ClickDetector")); return; end
if (char.HumanoidRootPart.Position-part.Position).Magnitude <= 10 then
local posOnC = workspace.Camera:WorldToScreenPoint(part.Position);
local inset = guiService:GetGuiInset();
local center = {
x = (posOnC.X+inset.X)+(part.Size.X/2);
y = (posOnC.Y+inset.Y)+(part.Size.Y/2);
}
VirtualInputManager:SendMouseMoveEvent(center.x,center.y,game);
task.wait(0.1);
VirtualInputManager:SendMouseButtonEvent(center.x,center.y,0,true,game,0);
task.wait(0.1);
VirtualInputManager:SendMouseButtonEvent(center.x,center.y,0,false,game,0);
end
end
local function safeButton(button)
local size = button.AbsoluteSize;
local pos = button.AbsolutePosition;
local inset = guiService:GetGuiInset();
local center = {
x = (pos.X+inset.X)+(size.X/2);
y = (pos.Y+inset.Y)+(size.Y/2);
}
VirtualInputManager:SendMouseButtonEvent(center.x,center.y,0,true,game,0);
task.wait(0.1);
VirtualInputManager:SendMouseButtonEvent(center.x,center.y,0,false,game,0);
end
--[[For synv3 update
local execmenu = false;
if ffc(plr,"PlayerGui") and ffc(plrGUI,"LoadMenu") then
local result = filtergc('function',{IgnoreSyn=true,Constants={0.2,"LoadStats"}},true);
setconstant(v,43,100);
execmenu = true;
end
--]]
--Execute in menu
local execmenu = false;
if ffc(plr,"PlayerGui") and ffc(plrGUI,"LoadMenu") then
local env = plr.PlayerGui.LoadMenu.LocalScript;
for i,v in next, getgc() do
if typeof(v) == 'function' and rawget(getfenv(v),"script") == env then
for t,k in next, getconstants(v) do
if k == 0.2 then
setconstant(v,t,100);
end
end
end
end
execmenu = true;
end
repeat task.wait() until char;
repeat task.wait() until ffc(plr,"Backpack");
repeat task.wait() until ffc(plr.Backpack,"LocalS");
--Inits
local foodTool,lastFood;
local hungerBar;
local calorieBar;
local staminaBar;
local fatigueNum;
local utility;
local visualFrame;
local beds = {};
--Toggle inits
local eating = false;
local sprinting = false;
--[[Use this to update hash
local plr = game.Players.LocalPlayer;
local closure = (plr.Backpack.LocalS);
setclipboard(getscripthash(closure));
]]
repeat task.wait() until ffcwia(plr.Backpack,"Tool");
if execmenu then
task.wait(2);
end
--[[ For synv3 update
local result = filtergc('function',{IgnoreSyn=true,Constants={"F1ySuspicion"}},true);
local banR_Name = getconstant(result,table.find(getconstants(result),"F1ySuspicion")-1);
local key = getupvalue(result,21);
local parent = getupvalue(result,20);
local banRemote = ffc(parent,banR_Name);
if not typeof(key) == 'string' then plr:Kick("Key was incorrect"); end
if not banRemote then plr:Kick("Failed to grab the ban remote"); end
]]
local banRemote;
local remoteKey;
local function initGC()
for _, v in next, getgc() do
if (typeof(v) == 'function' and islclosure(v) and not is_synapse_function(v) and table.find(getconstants(v), 'F1ySuspicion')) then
banRemote = getconstant(v, table.find(getconstants(v), 'F1ySuspicion') - 1);
for _, uv in next, getupvalues(v) do
if (typeof(uv) == 'string') then
remoteKey = uv;
end;
end;
if getupvalue(v,20) and ffc(getupvalue(v,20),banRemote) then
banRemote = ffc(getupvalue(v,20),banRemote);
return true;
else
return plr:Kick('Failed to grab ban remote');
end;
end;
end;
end;
print('waiting for gc scan.');
repeat task.wait(); until initGC();
if not banRemote or not remoteKey then
plr:Kick('Kicked you to protect your account something, in the game has changed.');
return;
end
if (banRemote.Name ~= 'Detector') then
plr:Kick('Kicked you to protect your account something, in the game has changed.');
return;
end
local oldNamecall;
oldNamecall = hookmetamethod(game, "__namecall",function(self, ...)
SX_VM_CNONE();
local ncMethod = getnamecallmethod();
if self == banRemote and ncMethod == "FireServer" or self == banRemote and ncMethod == "fireServer" then
return;
end;
if library.flags.infRhythm then
if ncMethod == 'Stop' or ncMethod == 'Play' then
local remote = ffc(plr,"Action",true);
if (not remote) then return oldNamecall(self, ...); end;
local connection = getconnections(remote.OnClientEvent)[1];
if (not connection) then return oldNamecall(self, ...); end;
local actionCon = getupvalues(connection.Function);
local toolInfo = actionCon[13];
if toolInfo and toolInfo.Stance and self == toolInfo.Stance then
toolInfo.Priority = (ncMethod == 'Stop') and 1000 or 1;
return;
end
end
local args = {...};
if args[2] == "RhythmStance" and args[3] == false then return; end
end
return oldNamecall(self,...);
end);
local oldFireServer;
oldFireServer = hookfunction(Instance.new("RemoteEvent").FireServer,function(self, ...)
SX_VM_CNONE();
if self == banRemote then
return;
end;
return oldFireServer(self,...);
end);
--Setting values probably will use a promise for this later!!
local function grabUIObjects()
pcall(function()
if (plrGUI:FindFirstChild('MainGui') and plrGUI.MainGui:FindFirstChild('Utility')) then
utility = plrGUI.MainGui.Utility;
hungerBar = utility.StomachBar.BarF.Bar;
calorieBar = utility.StomachBar.Calories.Bar;
staminaBar = utility.StamBar.BarF.Bar;
fatigueNum = utility.BodyFatigue;
visualFrame = utility.VisualFrame;
end
end);
end;
grabUIObjects();
local Stats = setmetatable({},{ --Creates a metatable that returns values in %
__index = function(t,k)
if not hungerBar or hungerBar.Parent == nil then
grabUIObjects();
end;
if k == "Hunger" then
if hungerBar then
return hungerBar.Size.X.Scale*100;
end
elseif k == "Calories" then
if calorieBar then
return calorieBar.Size.X.Scale*100;
end
elseif k == "Stamina" then
if staminaBar then
return staminaBar.Size.X.Scale*100;
end
elseif k == "Fatigue" then
if fatigueNum then
return tonumber(string.match(fatigueNum.Text,"[%d%.]+"));
end
elseif k == "isEating" then
if ffc(char,"DB") then
return char.DB.Value;
end
elseif k == "Rhythm" then
if ffc(char,"Rhythm") then
return char.Rhythm.Value;
end
elseif k == "isKnocked" then
if ffc(char,"Ragdolled") then
return char.Ragdolled.Value;
end
elseif k == "Sleeping" then
if not loaded() then return false; end
for i,v in next, char.HumanoidRootPart:GetConnectedParts() do
if v.Name == "Matress" then
return true;
end
end
return false;
elseif k == "isRunning" then
if not loaded() then return false; end
local foundAnim = false;
for i,v in next, char.Humanoid.Animator:GetPlayingAnimationTracks() do
local curId = v.Animation.AnimationId;
if curId == "rbxassetid://5087736730" or curId == "rbxassetid://4889489948" then
foundAnim = true;
end
end
return foundAnim;
elseif k == "isSquatting" then
if not loaded() then return false; end
local foundAnim = false;
for i,v in next, char.Humanoid.Animator:GetPlayingAnimationTracks() do
local curId = v.Animation.AnimationId;
if curId == "rbxassetid://4934239228" then
foundAnim = true;
end
end
return foundAnim;
elseif k == "isPushuping" then
if not loaded() then return false; end
local foundAnim = false;
for i,v in next, char.Humanoid.Animator:GetPlayingAnimationTracks() do
local curId = v.Animation.AnimationId;
if curId == "rbxassetid://4931281501" then
foundAnim = true;
end
end
return foundAnim;
elseif k == "ProteinShake" then
if visualFrame then
return ffc(visualFrame,"Protein Shake");
end
elseif k == "BCAA" then
if visualFrame then
return ffc(visualFrame,"BCAA");
end
elseif k == "FatBurner" then
if visualFrame then
return ffc(visualFrame,"Fat Burner");
end
elseif k == "Scalar" then
if visualFrame then
return ffc(visualFrame,"Scalar");
end
end
end
});
getfenv().Stats = Stats; --Sets to script env
local env = getsenv(plr.Backpack.LocalS)
--Gets all the beds on the map
for i,v in next, workspace:GetDescendants() do
if isA(v,"ClickDetector") and v.Parent.Name == "Bed" and ffc(v.Parent,"Blanket") then
table.insert(beds,v.Parent);
end
end
--Get closest bed returns bed model that is closest to you.
local function closestBed()
if not loaded() then return; end
local last = 15; --Must be within 15 studs to click a bed aka ontop of it
local closest;
for i = 1,#beds do
if ffc(beds[i],"Matress") and (beds[i].Matress.Position - char.HumanoidRootPart.Position).magnitude < last then
closest = beds[i];
last = (closest.Matress.Position - char.HumanoidRootPart.Position).magnitude;
end
end
return closest;
end
--Get food tool
local function getFood(foodName)
if not foodName then foodName = ""; end
if not loaded() then return; end
local food;
if foodName ~= "" then
food = ffc(plr.Backpack,foodName) or ffc(char,foodName);
else
food = ffc(plr.Backpack,"FoodScript",true) or ffc(char,"FoodScript",true);
end
if not food then return; end
if isA(food,"Tool") then
return {food, food.Name};
else
return {food.Parent, food.Parent.Name};
end
end
local function isBusy()
if library.flags.autoEat and Stats.Hunger <= library.flags["autoEatAt%"] then
repeat task.wait(); until Stats.Hunger >= library.flags["eatTo%"] or (not library.flags.legitAutoMachine and not library.flags.riskyAutoMachine and not library.flags.autoDura)
end
if library.flags.autoProtein and getFood('Protein Shake') then
repeat task.wait(); until Stats.ProteinShake or (not library.flags.legitAutoMachine and not library.flags.riskyAutoMachine and not library.flags.autoDura)
end
if library.flags.autoBcaa and getFood('BCAA') then
repeat task.wait(); until Stats.BCAA or (not library.flags.legitAutoMachine and not library.flags.riskyAutoMachine and not library.flags.autoDura)
end
if library.flags.autoFatBurner and getFood('Fat Burner') then
repeat task.wait(); until Stats.FatBurner or (not library.flags.legitAutoMachine and not library.flags.riskyAutoMachine and not library.flags.autoDura)
end
if library.flags.autoScalar and getFood('Scalar') then
repeat task.wait(); until Stats.Scalar or (not library.flags.legitAutoMachine and not library.flags.riskyAutoMachine and not library.flags.autoDura)
end
return;
end
--Get tool by Name
local function getToolByName(toolName)
if not loaded() then return; end
return ffc(plr.Backpack,toolName) or ffc(char,toolName);
end
--Get fight tool
local function getStyle()
if not loaded() then return; end
if not ffc(plr,"Backpack") then return; end
if ffc(plr.Backpack,"Style",true) then
return ffc(plr.Backpack,"Style",true).Parent;
elseif ffc(char,"Style",true) then
return ffc(char,"Style",true).Parent;
end
return nil
end
--toggleSleep function that sleeps on bed and unsleep if in bed.
local function toggleSleep()
if not loaded() then return; end
local bed = closestBed();
if not bed then return; end
if not Stats.Sleeping then
tryingToSleep = true;
repeat
task.wait(0.2);
char.Humanoid:UnequipTools();
safeClick(bed.Matress);
until Stats.Sleeping or not library.flags.autoSleep;
tryingToSleep = false;
elseif Stats.Sleeping and bed then
char.Humanoid:UnequipTools();
safeClick(bed.Matress);
task.wait(0.5);
for i,v in next, char:GetChildren() do
if v.Name == "Safe" then
v:Destroy();
end
end
end
end
local trainButtons = {
["Strike"] = {};
["Dura"] = {};
["Road"] = {};
};
local BadModels = {};
--Puts all the buttons in appropriate tables
for i,v in next, workspace:GetDescendants() do
if v.Name == "Weight2" and v.Parent.Name == "Model" and not BadModels[v.Parent] then
BadModels[v.Parent] = true;
end
if v.Name == "Roadwork: $40" then
table.insert(trainButtons["Road"],v);
elseif v.Name == "Strike Speed Training: $45" then
table.insert(trainButtons["Strike"],v);
elseif v.Name == "Durability Training: $40" then
table.insert(trainButtons["Dura"],v);
end
end
--Simple table search function
local function search(tbl,str)
for t,k in next, tbl do
if string.match(t,str) then
return k;
end
end
return nil;
end
--Gives closest button in specified range
local function getButton(Type,Range)
if not loaded() then return; end
local closest;
for i,v in next, trainButtons[Type] do
if (v.Head.Position-char.HumanoidRootPart.Position).magnitude < Range then
Range = (v.Head.Position-char.HumanoidRootPart.Position).magnitude;
closest = v;
end
end
return closest;
end
local punchingBags = {};
for i,v in next, workspace:GetDescendants() do
if v.Name == "PunchingBag" then
table.insert(punchingBags,v.bag);
end
end
local function getBag()
if not loaded() then return; end
local closest;
for i,v in next, punchingBags do
if ((v.Position * Vector3.new(1, 0, 1))-(char.HumanoidRootPart.Position*Vector3.new(1,0,1))).magnitude < 6.5 then
closest = v;
break;
end
end
return closest;
end
local function getPlayerInRange(ignoredCharacter,targetPos,range)
local inRange;
for i,v in next, LivingThings:GetChildren() do
if v == ignoredCharacter then continue; end
if not (ffc(v,"HumanoidRootPart")) then continue; end
if (v.HumanoidRootPart.Position-targetPos).magnitude >= range then continue; end
inRange = v;
break;
end
return inRange;
end
local function getMobInRange(range)
local inRange;
local closest = range;
for i,v in next, LivingThings:GetChildren() do
if v == char then continue; end
if ffc(Players,v.Name) then continue; end
if not (ffc(v,"HumanoidRootPart")) or not ffc(char,"HumanoidRootPart") then continue; end
if (v.HumanoidRootPart.Position-char.HumanoidRootPart.Position).magnitude >= closest then continue; end
inRange = v;
closest = (v.HumanoidRootPart.Position-char.HumanoidRootPart.Position).magnitude;
break;
end
return inRange;
end
--Legit move to function uses pathfind
local function legitMove(Position)
if not loaded() then return; end
local path = PathfindingService:CreatePath();
path:ComputeAsync(char.HumanoidRootPart.Position, Position);
local waypoints = path:GetWaypoints();
for _, waypoint in pairs(waypoints) do
char.Humanoid:MoveTo(waypoint.Position);
char.Humanoid.MoveToFinished:Wait();
end
end
local Foods = {
["BCAA: $75"] = 75;
["Fat Burner: $70"] = 70;
["Protein Shake: $60"] = 60;
["Ramen: $55"] = 55;
["Hamburger: $55"] = 55;
["Tofu Beef Soup: $45"] = 45;
["Pancakes: $35"] = 35;
["Pie: $35"] = 35;
["Donut: $35"] = 35;
["EZ Taco: $25"] = 25;
["Hotdog: $25"] = 25;
["Chicken Fries: $20"] = 20;
["Omelette: $20"] = 20;
}
local foodButtons = {};
for i,v in next, workspace:GetDescendants() do
if Foods[v.Name] then
table.insert(foodButtons,v);
end
end
local Teleports = {
["Protein CEO Bed"] = Vector3.new(-287.970764, 65.4588547, -256.528046);
["Gym CEO Bed"] = Vector3.new(-605.105347, 72.4071121, -158.616302);
["HOMRA CEO Bed"] = Vector3.new(-426, 84, -141);
["Bank CEO Bed1"] = Vector3.new(-429.838226, 139.137741, -521.047363);
["Bank CEO Bed2"] = Vector3.new(-400.048737, 138.245346, -519.46936);
["Space BunkBed"] = Vector3.new(-293.323395, 50.5205154, -522.796326);
["Mart CEO Bed"] = Vector3.new(-326.314911, 51.4444199, -514.276367);
["Boxing CEO Bed"] = Vector3.new(845.754395, 50.2253838, -102.881683);
["Ramen CEO Bed"] = Vector3.new(-1172.79968, 49.8107491, -309.082245);
["PRIME CEO Bed"] = Vector3.new(-1127.57178, 13.5423203, -829.319519);
["Police CEO Bed"] = Vector3.new(-791.490967, 49.4704971, 36.7121468);
["AOKI Gym"] = Vector3.new(-423.82809448242, -8.1605911254883, -492.89834594727);
}
--Auto Dura OOP
local autoDura = {};
autoDura.__index = autoDura;
local autoDuraTab = {};
function autoDura.new(firstTurn,secondTurn)
local self = setmetatable({},autoDura);
table.insert(autoDuraTab, self);
self._maid = Maid.new();
self._firstChar = firstTurn;
self._secondChar = secondTurn;
self._combatStyle = getStyle();
self._duraTool = getToolByName("Durability Training");
self._duraButton = getButton("Dura",999);
self._lastRefresh = tick();
self._stopPunching = true;
self._firstDebounce = false;
self._secondDebounce = false;
self._maid:GiveTask(self._firstChar.ChildAdded:Connect(function(v) --Tells us if first turn is using dura
if v.Name ~= "DuraTrain" then return; end
self._duraVal = v;
self._lastTurn = self._firstChar;
end))
self._maid:GiveTask(self._secondChar.ChildAdded:Connect(function(v) --Tells us if second turn is using dura
if v.Name ~= "DuraTrain" then return; end
self._duraVal = v;
self._lastTurn = self._secondChar;
end))
self._maid:GiveTask(self._firstChar.Humanoid.HealthChanged:Connect(function(health) --When the first turn gets too low
if (health/self._firstChar.Humanoid.MaxHealth*100) >= library.flags["minimumHp%"] then return; end
if self._firstDebounce then return; end
self._stopPunching = true; --Stop punching if the first turn is too low
self._firstDebounce = true;
self:Unpop();
self:Pop();
repeat task.wait() until self._firstChar.Humanoid.Health >= self._firstChar.Humanoid.MaxHealth or not self._firstChar.Parent;
if self._lastTurn ~= char then self._stopPunching = false; doingAction = true; end
warn(debug.traceback(),'true')
self._firstDebounce = false;
end))
self._maid:GiveTask(self._secondChar.Humanoid.HealthChanged:Connect(function(health) --When the second turn gets too low
if (health/self._secondChar.Humanoid.MaxHealth*100) >= library.flags["minimumHp%"] then return; end
if self._secondDebounce then return; end
self._stopPunching = true; --Stop punching if the second turn is too low
self._secondDebounce = true;
self:Unpop();
self:Pop();
repeat task.wait() until self._secondChar.Humanoid.Health >= self._secondChar.Humanoid.MaxHealth or not self._secondChar.Parent;
if self._lastTurn ~= char then self._stopPunching = false; doingAction = true; end
warn(debug.traceback(),'true')
self._secondDebounce = false;
end))
self._maid:GiveTask(RunService.RenderStepped:Connect(function()
if tick()-self._lastRefresh <= 0.1 then return; end
self._lastRefresh = tick();
if self._stopPunching then return; end
if not self._duraVal or not self._duraVal.Parent then return; end
if not self._lastTurn or self._lastTurn == char then return; end --Only start punching when they have actually popped dura
if self._combatStyle.Parent ~= char then char.Humanoid:UnequipTools(); self._combatStyle.Parent = char; return; end
self._combatStyle:Activate();
end))
return self;
end
function autoDura:Unpop()
if self._lastTurn ~= char then return; end
if self._duraTool.Parent then --If the tool was removed then was unpopped
self._duraTool.Parent = char;
task.wait(0.7); --Make sure they stopped punching before unpopping
self._duraTool:Activate();
task.wait();
end
repeat task.wait() until not getToolByName("Durability Training")
self:BuyDura();
if not library.flags.takeTurns then return; end --If take turns is not enabled then don't start punching
self._stopPunching = false; --Start trying to punch when lastTurn changes
doingAction = true;
warn(debug.traceback(),'true')
end
function autoDura:BuyDura()
if not self._duraButton then self:CreateError("Stand closer to a durability training button"); return; end
if getToolByName("Durability Training") then return; end
char.Humanoid:UnequipTools();
task.wait(0.1);
while task.wait(0.2) do
if getToolByName("Durability Training") then break; end
print("BUYING IT PLEASE")
safeClick(self._duraButton.Head);
end
self._duraTool = getToolByName("Durability Training");
warn(self._duraTool)
task.wait();
doingAction = false;
warn("SET DOING ACTION TO FALSE???",doingAction,self._stopPunching)
isBusy(); --Wait until not waiting to eat
doingAction = true;
warn(debug.traceback(),'true')
end
function autoDura:Pop()
if self._lastTurn and self._lastTurn == char and library.flags.takeTurns then return; end --If it was our turn last and take turns is on then don't pop
if self._lastTurn and self._lastTurn ~= char and not library.flags.takeTurns then return; end --If it wasn't our turn last and take turns isn't on then don't pop
if not self._duraTool or not self._duraTool.Parent then self:BuyDura(); end --Try to buy the tool
if not self._duraTool or not self._duraTool.Parent then return; end --If still no tool then return
char.Humanoid:UnequipTools();
task.wait(0.1);
self._duraTool.Parent = char;
repeat task.wait(0.1); until char.Humanoid.Health >= char.Humanoid.MaxHealth --Wait till full health to pop
repeat task.wait(0.1); until not Stats.isEating;
self._duraTool.Parent = char;
doingAction = true;
task.wait(0.1);
self._duraTool:Activate();
end
function autoDura:Start()
if self._firstChar == char then
self:BuyDura();
self:Pop();
return;
end
self._stopPunching = false;
warn(debug.traceback(),'true')
doingAction = true;
end
function autoDura:Destroy()
self._maid:DoCleaning();
for i,v in next, autoDuraTab do
if v == self then
autoDuraTab[i] = nil;
end
end
end
function autoDura:ClearAll()
doingAction = false;
for _,v in next, autoDuraTab do
v:Destroy();
end
end
function autoDura:CreateError(msg)
ToastNotif.new({
text = msg;
duration = 20
});
end
local streetESP = createBaseESP('streetFighters');
local behelitESP = createBaseESP('behelit');
local gMaid = Maid.new();
do --Entity esp overwrite
local playerInfoTab = {};
local playerInfo = {};
playerInfo.__index = playerInfo;
function playerInfo.new(player,combatStyle)
local self = setmetatable({},playerInfo);
playerInfoTab[player] = self;
self._player = player;
self._char = player.Character;
self._humanoid = self._char.Humanoid;
self._combatStyle = tostring(combatStyle);
self._currentStam = self._char.CurrentStamina.Value/self._char.MaxStamina.Value*100;
self._maid = Maid.new();
self._maid:GiveTask(self._char.CurrentStamina:GetPropertyChangedSignal("Value"):Connect(function()
self._currentStam = self._char.CurrentStamina.Value/self._char.MaxStamina.Value*100;
end))
self._maid:GiveTask(self._humanoid:GetPropertyChangedSignal("Health"):Connect(function()
self._health = self._humanoid.Health;
end))
self._maid:GiveTask(self._humanoid:GetPropertyChangedSignal("MaxHealth"):Connect(function()
self._maxHealth = self._humanoid.MaxHealth;
end))
self._maid:GiveTask(self._char.Destroying:Connect(function()
self:Destroy();
end))
self._maid:GiveTask(self._char.AncestryChanged:Connect(function(part,newParent)
if newParent ~= nil then return; end
self:Destroy();
end))
return self;
end
function playerInfo:Destroy()
self._maid:DoCleaning();
for i,v in next, playerInfoTab do
if v == self then
playerInfoTab[i] = nil;
end
end
end
local function onCharacterAdded(player) --Normally this should be a character but we pass a player..
if not player.Character:WaitForChild("CurrentStamina",10) then return; end
local Style = (ffc(player.Backpack,"Style",true) or ffc(player.Character,"Style",true));
if not Style then
for i = 1,10 do
task.wait(1);
Style = (ffc(player.Backpack,"Style",true) or ffc(player.Character,"Style",true));
if Style then break; end
end
if not Style then return; end
end
playerInfo.new(player,Style.Parent);
end
local function onPlayerAdded(player) --Kinda skidded from u nya
if (player == plr) then return end;
player.CharacterAdded:Connect(function()
onCharacterAdded(player);
end);