-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTestingAS
1454 lines (1454 loc) · 72 KB
/
TestingAS
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
repeat wait() until game:GetService("Players").LocalPlayer
wait()
local a = {}
if not getgenv().ExecutedAlr then
if not getexecutorname then
function getexecutorname()
return "Other"
end
elseif not string.find(getexecutorname(), "ScriptWare") then
function getexecutorname()
return "Other"
end
end
fileprefix = "TDS_AutoStrat/"
if syn and not getgenv().IsMultiStrat and not getgenv().ExecDis and not getgenv().Multiplayer then
syn.queue_on_teleport('loadstring(readfile("TDS_AutoStrat/LastStrat.txt"))()')
elseif not getgenv().IsMultiStrat and not getgenv().ExecDis and not getgenv().Multiplayer then
queue_on_teleport('loadstring(readfile("TDS_AutoStrat/LastStrat.txt"))()')
end
getgenv().ExecutedAlr = true
getgenv().MapUsed = false
loadstring(
game:HttpGet(
"https://raw.githubusercontent.com/banbuskox/dfhtyxvzexrxgfdzgzfdvfdz/main/sjkdkjlfdjnnmklcvxjNotifCr"
)
)()
if isfile("DNR.txt") and not isfolder("TDS_AutoStrat") then
say("ERROR", "Root folder removed, recreating files!", 5)
makefolder("TDS_AutoStrat")
writefile(fileprefix .. "Webhook (Logs).txt", "WEBHOOK HERE")
writefile(fileprefix .. "LastLog.txt", "")
writefile(fileprefix .. "LastPrintLog.txt", "")
writefile(fileprefix .. "LastStrat.txt", "")
writefile(fileprefix .. "PrivateServer.txt", "PRIVATE SERVER LINK HERE")
writefile(fileprefix .. "UseCount.txt", readfile("DNR.txt"))
wait(0.5)
say("SUCCESS", "Files recreated! Don't remove this folder again!", 5)
end
if not isfolder("TDS_AutoStrat") then
makefolder("TDS_AutoStrat")
end
if not isfile("DNR.txt") then
writefile("DNR.txt", "1")
end
if not isfile(fileprefix .. "UseCount.txt") then
writefile(fileprefix .. "UseCount.txt", "1")
end
loadstring(
game:HttpGet("https://raw.githubusercontent.com/banbuskox/dfhtyxvzexrxgfdzgzfdvfdz/main/ikcxujvkdsStrat")
)()
loadstring(game:HttpGet("https://banbusscripts.netlify.app/Scripts/IsAutoStratMain"))()
if getgenv().StratMaintance == true then
repeat
wait()
loadstring(game:HttpGet("https://banbusscripts.netlify.app/Scripts/IsAutoStratMain"))()
getgenv().status = "Script in maintenance, waiting..."
wait(1)
until getgenv().StratMaintance == false or getgenv().SkipStratMaintance == true
end
getgenv().status = "Loading"
getgenv().count = 0
if game.PlaceId == 5591597781 then
game:GetService("Workspace").Towers.ChildAdded:Connect(
function(b)
getgenv().count = getgenv().count + 1
end
)
end
local c = readfile(fileprefix .. "UseCount.txt")
c = tonumber(c) + 1
writefile(fileprefix .. "UseCount.txt", tostring(c))
writefile("DNR.txt", tostring(c))
local d = nil
local e = game:WaitForChild("ReplicatedStorage")
local f = e:WaitForChild("RemoteFunction")
local g = e:WaitForChild("RemoteEvent")
function isgame()
if game.PlaceId == 5591597781 then
return true
else
return false
end
end
stateRep = nil
if isgame() then
function getStateRep()
for h, b in pairs(game:GetService("ReplicatedStorage").StateReplicators:GetChildren()) do
if b:GetAttribute("TimeScale") then
return b
end
end
end
repeat
stateRep = getStateRep()
until stateRep
end
spawn(
function()
wait(10)
if isgame() and #game.Players:GetChildren() > 1 and getgenv().Multiplayer == false then
game:GetService("TeleportService"):Teleport(3260590327, game:GetService("Players").LocalPlayer)
else
if
isgame() and getgenv().Multiplayer and #game.Players:GetChildren() > getgenv().PlayerNumber and
getgenv().PlayerType == "Host"
then
local i = math.huge
local j = game:GetService("HttpService")
local k = game:GetService("TeleportService")
local l, m
local n = math.huge
local o = 0
repeat
local p =
"https://games.roblox.com/v1/games/" ..
game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100"
if l then
p = p .. "&cursor=" .. l
end
local q = j:JSONDecode(game:HttpGet(p))
if q then
l = q.nextPageCursor or nil
o = o + 1
for r, b in pairs(q.data) do
b.playing = b.playing or math.huge
b.id = b.id or ""
if b.id ~= game.JobId and b.playing <= n then
n = b.playing
m = b.id
end
end
end
until not l or o >= i
if m then
getgenv().Connection:Send('{"client":"Host","action":"Teleport","jobid":"' .. m .. '"}')
k:TeleportToPlaceInstance(3260590327, m)
end
end
end
end
)
if isgame() and getgenv().PotatoPC then
spawn(
function()
wait(3)
for h, b in pairs(game.Workspace.Map:GetChildren()) do
if b.Name ~= "Paths" then
b:Remove()
end
end
local s = game.Workspace.Terrain
s.Transparency = 0
s.WaterReflectance = 0
s.WaterTransparency = 0
s.WaterWaveSize = 0
s.WaterWaveSpeed = 0
end
)
end
if isgame() then
spawn(
function()
wait(3)
for h, b in pairs(game:GetService("Lighting"):GetChildren()) do
if b.Name ~= "Sky" then
b:Remove()
end
end
game.Lighting.FogStart = 10000000
game.Lighting.FogEnd = 10000000
game.Lighting.Brightness = 1
if not game.Players.LocalPlayer.Character then
repeat wait() until game.Players.LocalPlayer.Character
end
local t
if getgenv().CameraSys == true then
t = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame + Vector3.new(0, 50, 0)
else
t = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame + Vector3.new(0, 20, 0)
end
local u = Instance.new("Part")
u.Transparency = 1
u.Anchored = true
u.CanCollide = true
u.Parent = game.Workspace
u.CFrame = t
if getgenv().CameraSys == true then
game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame =
game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame + Vector3.new(0, 55, 0)
else
game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame =
game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame + Vector3.new(0, 25, 0)
end
if game.CoreGui:FindFirstChild("AutoStratsLogger") then
game.CoreGui:FindFirstChild("AutoStratsLogger"):Remove()
end
local v = Instance.new("ScreenGui")
local w = Instance.new("Frame")
local x = Instance.new("ImageLabel")
local y = Instance.new("Frame")
local z = Instance.new("TextLabel")
local A = Instance.new("ScrollingFrame")
v.Name = "AutoStratsLogger"
v.Parent = game:WaitForChild("CoreGui")
v.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
w.Name = "Main"
w.Parent = v
w.BackgroundColor3 = Color3.fromRGB(23, 21, 30)
w.BorderSizePixel = 0
w.Position = UDim2.new(0.544935644, 0, 0.355803162, 0)
w.Size = UDim2.new(0, 500, 0, 400)
x.Name = "Glow"
x.Parent = w
x.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
x.BackgroundTransparency = 1.000
x.BorderSizePixel = 0
x.Position = UDim2.new(0, -15, 0, -15)
x.Size = UDim2.new(1, 30, 1, 30)
x.ZIndex = 0
x.Image = "rbxassetid://4996891970"
x.ImageColor3 = Color3.fromRGB(15, 15, 15)
x.ScaleType = Enum.ScaleType.Slice
x.SliceCenter = Rect.new(20, 20, 280, 280)
y.Name = "Top_Container"
y.Parent = w
y.AnchorPoint = Vector2.new(0.5, 0)
y.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
y.BackgroundTransparency = 1.000
y.Position = UDim2.new(0.5, 0, 0, 18)
y.Size = UDim2.new(1, -40, 0, 20)
z.Name = "Title"
z.Parent = y
z.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
z.BackgroundTransparency = 1.000
z.Position = UDim2.new(0.00764120743, 0, -0.400000006, 0)
z.Size = UDim2.new(0.981785059, 0, 1.45000005, 0)
z.Font = Enum.Font.GothamBlack
z.Text = "AUTOSTRATS LOGGER"
z.TextColor3 = Color3.fromRGB(255, 255, 255)
z.TextSize = 30.000
z.TextXAlignment = Enum.TextXAlignment.Left
A.Name = "Scroll"
A.Parent = w
A.Active = true
A.AnchorPoint = Vector2.new(0.5, 0)
A.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
A.BackgroundTransparency = 1.000
A.BorderSizePixel = 0
A.Position = UDim2.new(0.5, 4, 0, 59)
A.Size = UDim2.new(1, -20, 1, -67)
A.BottomImage = "rbxassetid://5234388158"
A.CanvasSize = UDim2.new(200, 0, 100, 0)
A.MidImage = "rbxassetid://5234388158"
A.ScrollBarThickness = 8
A.TopImage = "rbxassetid://5234388158"
A.VerticalScrollBarInset = Enum.ScrollBarInset.Always
A.ChildAdded:Connect(
function()
if #A:GetChildren() > 16 then
A.CanvasPosition = Vector2.new(0, A.CanvasPosition.Y + 20)
end
end
)
local function B()
local C = Instance.new("LocalScript", w)
C.Name = "Dragify"
local D = game:GetService("UserInputService")
function dragify(E)
dragToggle = nil
dragInput = nil
dragStart = nil
local F = nil
function updateInput(G)
local H = G.Position - dragStart
local I =
UDim2.new(
startPos.X.Scale,
startPos.X.Offset + H.X,
startPos.Y.Scale,
startPos.Y.Offset + H.Y
)
game:GetService("TweenService"):Create(E, TweenInfo.new(0.1), {Position = I}):Play()
end
E.InputBegan:Connect(
function(G)
if
(G.UserInputType == Enum.UserInputType.MouseButton1 or
G.UserInputType == Enum.UserInputType.Touch) and
D:GetFocusedTextBox() == nil
then
dragToggle = true
dragStart = G.Position
startPos = E.Position
G.Changed:Connect(
function()
if G.UserInputState == Enum.UserInputState.End then
dragToggle = false
end
end
)
end
end
)
E.InputChanged:Connect(
function(G)
if
G.UserInputType == Enum.UserInputType.MouseMovement or
G.UserInputType == Enum.UserInputType.Touch
then
dragInput = G
end
end
)
game:GetService("UserInputService").InputChanged:Connect(
function(G)
if G == dragInput and dragToggle then
updateInput(G)
end
end
)
end
dragify(C.Parent)
end
B()
local function J()
local C = Instance.new("LocalScript", w)
C.Name = "Positioning"
C.Parent:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), "Out", "Quad", 1)
C.Parent.Draggable = true
end
J()
local K = -0.0073
writefile(fileprefix .. "LastLog.txt", "--[START OF LOG]--")
function TimeConverter(b)
if b <= 9 then
local conv = "0" .. b
return conv
else
return b
end
end
getgenv().output = function(L)
local M = os.date("*t")["hour"]
local N = os.date("*t")["min"]
local O = os.date("*t")["sec"]
local P = Color3.fromRGB(255, 255, 255)
local Q = Instance.new("TextLabel", A)
Q.Text = "[" .. TimeConverter(M) .. ":" .. TimeConverter(N) .. ":" .. TimeConverter(O) .. "] " .. L
appendfile(
fileprefix .. "LastLog.txt",
"\n[" .. TimeConverter(M) .. ":" .. TimeConverter(N) .. ":" .. TimeConverter(O) .. "] " .. L
)
Q.Size = UDim2.new(0.005, 0, 0.001, 0)
Q.Position = UDim2.new(0, 0, .007 + K, 0)
Q.Font = Enum.Font.SourceSansSemibold
Q.TextColor3 = P
Q.TextStrokeTransparency = 0
Q.BackgroundTransparency = 1
Q.BackgroundColor3 = Color3.new(0, 0, 0)
Q.BorderSizePixel = 0
Q.BorderColor3 = Color3.new(0, 0, 0)
Q.FontSize = "Size14"
Q.TextXAlignment = Enum.TextXAlignment.Left
Q.ClipsDescendants = true
K = K + 0.0005
end
spawn(
function()
local R = false
R = not R
game.Players.LocalPlayer.Character:WaitForChild("Humanoid").PlatformStand = true
game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Anchored = true
SprintKey = Enum.KeyCode.LeftShift
localPlayer = game.Players.LocalPlayer
Camera = game.Workspace.CurrentCamera
Mouse = localPlayer:GetMouse()
UserInputService = game:GetService("UserInputService")
movePosition = Vector2.new(0, 0)
moveDirection = Vector3.new(0, 0, 0)
targetMovePosition = movePosition
lastRightButtonDown = Vector2.new(0, 0)
rightMouseButtonDown = false
targetFOV = 70
sprinting = false
sprintingSpeed = 3
keysDown = {}
moveKeys = {
[Enum.KeyCode.D] = Vector3.new(1, 0, 0),
[Enum.KeyCode.A] = Vector3.new(-1, 0, 0),
[Enum.KeyCode.S] = Vector3.new(0, 0, 1),
[Enum.KeyCode.W] = Vector3.new(0, 0, -1),
[Enum.KeyCode.E] = Vector3.new(0, 1, 0),
[Enum.KeyCode.Q] = Vector3.new(0, -1, 0)
}
Tween = function(S, T, U)
if U == 1 then
return T
else
if tonumber(S) then
return S * (1 - U) + T * U
else
return S:Lerp(T, U)
end
end
end
ClampVector3 = function(V, W, X)
return Vector3.new(
math.clamp(V.X, W.X, X.X),
math.clamp(V.Y, W.Y, X.Y),
math.clamp(V.Z, W.Z, X.Z)
)
end
UserInputService.InputChanged:connect(
function(Y)
if Y.UserInputType == Enum.UserInputType.MouseMovement then
movePosition = movePosition + Vector2.new(Y.Delta.x, Y.Delta.y)
end
end
)
CalculateMovement = function()
local Z = Vector3.new(0, 0, 0)
for h, b in pairs(keysDown) do
Z = Z + (moveKeys[h] or Vector3.new(0, 0, 0))
end
return Z
end
Round = function(_, a0)
return math.floor(_ / a0 + .5) * a0
end
Input = function(G, a1)
if moveKeys[G.KeyCode] then
if G.UserInputState == Enum.UserInputState.Begin then
keysDown[G.KeyCode] = true
elseif G.UserInputState == Enum.UserInputState.End then
keysDown[G.KeyCode] = nil
end
else
if G.UserInputState == Enum.UserInputState.Begin then
if G.UserInputType == Enum.UserInputType.MouseButton2 and R == true then
rightMouseButtonDown = true
lastRightButtonDown = Vector2.new(Mouse.X, Mouse.Y)
UserInputService.MouseBehavior = Enum.MouseBehavior.LockCurrentPosition
elseif G.KeyCode == Enum.KeyCode.Z then
targetFOV = 20
elseif G.KeyCode == SprintKey then
sprinting = true
end
else
if G.UserInputType == Enum.UserInputType.MouseButton2 then
rightMouseButtonDown = false
UserInputService.MouseBehavior = Enum.MouseBehavior.Default
elseif G.KeyCode == Enum.KeyCode.Z then
targetFOV = 70
elseif G.KeyCode == SprintKey then
sprinting = false
end
end
end
end
Mouse.WheelForward:connect(
function()
Camera.CoordinateFrame = Camera.CoordinateFrame * CFrame.new(0, 0, -5)
end
)
Mouse.WheelBackward:connect(
function()
Camera.CoordinateFrame = Camera.CoordinateFrame * CFrame.new(-0, 0, 5)
end
)
UserInputService.InputBegan:connect(Input)
UserInputService.InputEnded:connect(Input)
game:GetService("RunService").RenderStepped:Connect(
function()
if R then
local a2 = Mouse.Hit
targetMovePosition = movePosition
Camera.CoordinateFrame =
CFrame.new(Camera.CoordinateFrame.p) *
CFrame.fromEulerAnglesYXZ(
-targetMovePosition.Y / 300,
-targetMovePosition.X / 300,
0
) *
CFrame.new(CalculateMovement() * (({[true] = sprintingSpeed})[sprinting] or .5))
Camera.FieldOfView = Tween(Camera.FieldOfView, targetFOV, .5)
if rightMouseButtonDown then
UserInputService.MouseBehavior = Enum.MouseBehavior.LockCurrentPosition
movePosition =
movePosition - (lastRightButtonDown - Vector2.new(Mouse.X, Mouse.Y))
lastRightButtonDown = Vector2.new(Mouse.X, Mouse.Y)
end
end
end
)
local a3 = 2
if getgenv().DefaultCam ~= nil then
a3 = getgenv().DefaultCam
end
local a4 =
loadstring(
game:HttpGet(
"https://raw.githubusercontent.com/banbuskox/dfhtyxvzexrxgfdzgzfdvfdz/main/jsdnfjdsfdjnsmvkjhlkslzLIB",
true
)
)()
local a5 = a4:CreateWindow("Camera")
a5:Button(
"Normal",
function()
game.Players.LocalPlayer.Character:WaitForChild("Humanoid").PlatformStand = false
game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Anchored = false
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
game.Workspace.CurrentCamera.CameraType = "Follow"
a3 = 1
end
)
a5:Button(
"Follow Enemies (Default)",
function()
game.Players.LocalPlayer.Character:WaitForChild("Humanoid").PlatformStand = true
game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Anchored = true
game.Workspace.CurrentCamera.CameraType = "Follow"
a3 = 2
end
)
a5:Button(
"Free Cam",
function()
a3 = 3
Camera.CameraType = Enum.CameraType.Scriptable
game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Anchored = true
game.Players.LocalPlayer.Character:WaitForChild("Humanoid").PlatformStand = true
end
)
while wait() do
if a3 == 1 then
R = false
elseif a3 == 2 then
pcall(
function()
R = false
local a6 = game:GetService("Workspace").NPCs:GetChildren()
if #a6 ~= 0 then
for h, b in pairs(game.Workspace.NPCs:GetChildren()) do
if b:WaitForChild("HumanoidRootPart").CFrame.Y > -5 then
game.Workspace.Camera.CameraSubject = b:WaitForChild("HumanoidRootPart")
wait()
break
else
game.Workspace.Camera.CameraSubject =
game:GetService("Workspace").Map.Paths["1"]["1"]
break
end
end
else
game.Workspace.Camera.CameraSubject =
game:GetService("Workspace").Map.Paths["1"]["1"]
end
end
)
elseif a3 == 3 then
R = true
end
end
end
)
end
)
end
spawn(
function()
if isgame() and getgenv().Debug then
game.Workspace.Towers.ChildAdded:Connect(
function(b)
wait(1)
repeat
wait()
until tonumber(b.Name)
local a7 = Instance.new("BillboardGui")
a7.Parent = b:WaitForChild("HumanoidRootPart")
a7.Adornee = b:WaitForChild("HumanoidRootPart")
a7.StudsOffsetWorldSpace = Vector3.new(0, 2, 0)
a7.Size = UDim2.new(0, 250, 0, 50)
a7.AlwaysOnTop = true
local a8 = Instance.new("TextLabel")
a8.Parent = a7
a8.BackgroundTransparency = 1
a8.Text = b.Name
a8.Font = "Legacy"
a8.Size = UDim2.new(1, 0, 0, 70)
a8.TextSize = 52
a8.TextScaled = fals
a8.TextColor3 = Color3.new(0, 0, 0)
a8.TextStrokeColor3 = Color3.new(0, 0, 0)
a8.TextStrokeTransparency = 0.5
local a8 = Instance.new("TextLabel")
a8.Parent = a7
a8.BackgroundTransparency = 1
a8.Text = b.Name
a8.Font = "Legacy"
a8.Size = UDim2.new(1, 0, 0, 70)
a8.TextSize = 50
a8.TextScaled = false
a8.TextColor3 = Color3.new(1, 0, 0)
a8.TextStrokeColor3 = Color3.new(0, 0, 0)
a8.TextStrokeTransparency = 0.5
end
)
end
end
)
if not isgame() then
f:InvokeServer("Login", "Claim")
f:InvokeServer("Session", "Search", "Login")
if getgenv().AutoBuy then
getgenv().status = "Buying crates..."
local a9 = require(game:GetService("ReplicatedStorage").Assets.Crates[getgenv().Crate].Data)
local aa, ab = a9.Price.Type, a9.Price.Value
if aa == "Coins" then
ltimes = math.floor(game.Players.LocalPlayer.Coins.Value / ab)
if ltimes ~= 0 then
for c = 1, ltimes do
f:InvokeServer("Shop", "Purchase", {["Name"] = getgenv().Crate, ["Type"] = "Crate"})
print("Bought " .. getgenv().Crate .. " Crate")
wait(1)
table1 = {}
for ac, ad in next, game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(
"Inventory",
"Execute",
"Crates",
"Open",
{["Name"] = getgenv().Crate}
) do
table.insert(table1, ad)
end
if readfile(fileprefix .. "Webhook (Logs).txt") ~= "WEBHOOK HERE" then
url = readfile(fileprefix .. "Webhook (Logs).txt")
local a9 = {
["username"] = "TDS AutoStrat LOGGER",
["embeds"] = {
{
["title"] = "**LOG (" ..
TimeConverter(os.date("*t").year) ..
"-" ..
TimeConverter(os.date("*t").month) ..
"-" ..
TimeConverter(os.date("*t").day) ..
" " ..
TimeConverter(os.date("*t").hour) ..
":" ..
TimeConverter(os.date("*t").min) ..
":" ..
TimeConverter(os.date("*t").sec) ..
")**",
["description"] = "** ------------ OPENED CRATE ------------**\n**Troop : **" ..
table1[2] ..
"\n**Skin : **" ..
table1[4] ..
"\n**Skin Rarity : **" ..
table1[3] .. "\n**Skin Price : **" .. tostring(table1[1]),
["type"] = "rich",
["color"] = tonumber(16744448)
}
}
}
local ae = game:GetService("HttpService"):JSONEncode(a9)
local af = {["content-type"] = "application/json"}
request = http_request or request or HttpPost or syn.request
local ag = {Url = url, Body = ae, Method = "POST", Headers = af}
request(ag)
print("Webhook sent")
end
end
end
else
warn(getgenv().Crate .. " Crate is for robux!")
end
end
end
function sell(ah)
if isgame() then
repeat
wait()
until game.Workspace.Towers:FindFirstChild(tostring(ah))
f:InvokeServer("Troops", "Sell", {["Troop"] = game.Workspace.Towers[tostring(ah)]})
end
end
function getTroopTypeCheck(ah)
return ah.Replicator:GetAttribute("Type")
end
function getTroopType(ai)
local a6 = getTroopTypeCheck(ai)
if a6 then
return a6
else
return "Unable to GET"
end
end
function EquipTroop(ah)
if not ah or ah == "Nil" then
ah = "nil"
end
if tostring(ah) ~= "nil" and table.find(getgenv().troops5, tostring(ah)) == nil then
game.Players.LocalPlayer:Kick(
"\n\n---------- AUTO STRAT ----------\n\nError 2:\nYou don't own " ..
tostring(ah) .. " troop.\n\n---------- AUTO STRAT ----------\n"
)
wait(0.5)
while true do
end
end
g:FireServer("Inventory", "Execute", "Troops", "Add", {["Name"] = ah})
if not getgenv().GoldenPerks then
getgenv().GoldenPerks = {}
end
if table.find(getgenv().GoldenPerks, ah) then
g:FireServer("Inventory", "Execute", "Troops", "GoldenPerks", {["Troop"] = ah, ["Enabled"] = true})
else
g:FireServer("Inventory", "Execute", "Troops", "GoldenPerks", {["Troop"] = ah, ["Enabled"] = false})
end
getgenv().status = "Equipped " .. ah
end
function CheckTroop(ah)
if not ah or ah == "Nil" then
ah = "nil"
end
if tostring(ah) ~= "nil" and table.find(getgenv().troops5, tostring(ah)) == nil then
game.Players.LocalPlayer:Kick(
"\n\n---------- AUTO STRAT ----------\n\nError 2:\nYou don't own " ..
tostring(ah) .. " troop.\n\n---------- AUTO STRAT ----------\n"
)
wait(0.5)
while true do
end
end
end
function skip()
if isgame() then
f:InvokeServer("Waves", "Skip")
getgenv().output("Skipped Wave")
end
end
function conv(aj, ak)
local al = aj
local am = ak * 60
local al = al + am
return al
end
writefile(fileprefix .. "LastPrintLog.txt", "")
function prints(an)
appendfile(fileprefix .. "LastPrintLog.txt", tostring(an) .. "\n")
print(tostring(an))
end
function ability(ah, ao)
if isgame() then
repeat
wait()
until game.Workspace.Towers:FindFirstChild(tostring(ah))
f:InvokeServer(
"Troops",
"Abilities",
"Activate",
{["Troop"] = game.Workspace.Towers[tostring(ah)], ["Name"] = ao}
)
getgenv().output(
"Used Ability (Troop " ..
getTroopType(game.Workspace.Towers[tostring(ah)]) ..
" With Number " .. tostring(ah) .. " Ability " .. ao .. ")"
)
end
end
writefile(fileprefix .. "LastStrat.txt", "")
if getgenv().PotatoPC then
appendfile(fileprefix .. "LastStrat.txt", "getgenv().PotatoPC = true\n")
end
if getgenv().Debug then
appendfile(fileprefix .. "LastStrat.txt", "getgenv().Debug = true\n")
end
if getgenv().GoldenPerks then
generateline = "getgenv().GoldenPerks = {"
for c = 1, #getgenv().GoldenPerks do
generateline = generateline .. '"' .. getgenv().GoldenPerks[c] .. '",'
end
generateline = generateline .. "}\n"
appendfile(fileprefix .. "LastStrat.txt", generateline)
end
appendfile(
fileprefix .. "LastStrat.txt",
'local TDS = loadstring(game:HttpGet("https://raw.githubusercontent.com/banbuskox/dfhtyxvzexrxgfdzgzfdvfdz/main/ckmhjvskfkmsStratFun2", true))()\n'
)
function a:Map(ap, aq, ar)
appendfile(fileprefix .. "LastStrat.txt", "TDS:Map('" .. ap .. "', '" .. tostring(aq) .. "', '" .. ar .. "')\n")
getgenv().mapc = ap
if not getgenv().Multiplayer or getgenv().Multiplayer and getgenv().PlayerType == "Host" then
if ar == "Hardcore" and game:GetService("Players").LocalPlayer.Level.Value < 50 then
game.Players.LocalPlayer:Kick(
"\n\n---------- AUTO STRAT ----------\n\nError 4:\nYou are not level 50!\nYou can't use Hardcore Mode strats!\n\n---------- AUTO STRAT ----------\n"
)
wait(0.5)
while true do
end
end
local as = 1
if getgenv().Multiplayer and getgenv().PlayerType == "Host" then
as = getgenv().PlayerNumber
repeat
getgenv().status = "Waiting for plrs..."
wait()
until getgenv().FindMap
else
if getgenv().Multiplayer and getgenv().PlayerType == "Player" then
getgenv().status = "Host control mode..."
end
spawn(
function()
if not isgame() and not getgenv().IsMultiStrat then
spawn(
function()
getgenv().timer = 0
while wait(1) do
getgenv().timer = getgenv().timer + 1
end
end
)
getgenv().repeating = true
while wait(1) do
if getgenv().repeating then
getgenv().repeating = false
local at = 0
for r, au in pairs(game:GetService("Workspace").Elevators:GetChildren()) do
local av = au.State.Map.Title
local aw = require(au.Settings).Type
local ax = au.State.Players
if ar == nil then
ar = "Survival"
end
if av.Value == ap and aw == ar then
if ax.Value <= 0 then
at = at + 1
prints("Join attempt...")
getgenv().status = "Joining..."
f:InvokeServer("Elevators", "Enter", au)
prints("Joined elavator...")
getgenv().status = "Joined"
if getgenv().Multiplayer and getgenv().Connection then
getgenv().Connection:Send(
'{"client":"Host","action":"Elevator","number":' ..
tostring(r) .. "}"
)
end
while wait() do
getgenv().status = "Joined (" .. au.State.Timer.Value .. "s)"
if au.State.Timer.Value == 0 then
local ay = true
for c = 1, 100 do
if aq and ax.Value > as then
if getgenv().Multiplayer and getgenv().Connection then
getgenv().Connection:Send(
'{"client":"Host","action":"LElevator"}'
)
end
prints("Someone joined, leaving elevator...")
getgenv().status = "Someone joined..."
f:InvokeServer("Elevators", "Leave")
getgenv().repeating = true
ay = false
break
end
wait(0.01)
end
if au.State.Timer.Value == 0 and ay then
getgenv().status = "Teleporting..."
wait(60)
getgenv().status = "Teleport failed!"
f:InvokeServer("Elevators", "Leave")
if getgenv().Multiplayer and getgenv().Connection then
getgenv().Connection:Send(
'{"client":"Host","action":"LElevator"}'
)
end
else
if getgenv().Multiplayer and getgenv().Connection then
getgenv().Connection:Send(
'{"client":"Host","action":"LElevator"}'
)
end
getgenv().status = "Teleport failed! (Timer)"
f:InvokeServer("Elevators", "Leave")
getgenv().repeating = true
end
end
if av.Value == ap then
if aq then
if ax.Value > as then
if getgenv().Multiplayer and getgenv().Connection then
getgenv().Connection:Send(
'{"client":"Host","action":"LElevator"}'
)
end
f:InvokeServer("Elevators", "Leave")
prints("Someone joined, leaving elevator...")
getgenv().status = "Someone joined..."
getgenv().repeating = true
break
elseif ax.Value == 0 then
wait(1)
if ax.Value == 0 then
wait(1)
if ax.Value == 0 then
wait(1)
if ax.Value == 0 then
wait(1)
if ax.Value == 0 then
if
getgenv().Multiplayer and
getgenv().Connection
then
getgenv().Connection:Send(
'{"client":"Host","action":"LElevator"}'
)
end
prints("Error")
getgenv().status =
"Error occured, check dev con"
prints(
"Error occured, please open ticket on Money Maker Development discord server!"
)
f:InvokeServer("Elevators", "Leave")
getgenv().repeating = true
break
end
end
end
end
end
end
else
f:InvokeServer("Elevators", "Leave")
prints("Map changed while joining, leaving...")
if getgenv().Multiplayer and getgenv().Connection then
getgenv().Connection:Send(
'{"client":"Host","action":"LElevator"}'
)
end
getgenv().status = "Map changed..."
getgenv().repeating = true
break
end
end
end
end
end
if at == 0 then
getgenv().repeating = true
prints("Waiting for map...")
getgenv().status = "Waiting for map..."
if getgenv().timer >= 15 then
getgenv().status = "Force changing maps..."
getgenv().timer = 0
for h, b in pairs(game:GetService("Workspace").Elevators:GetChildren()) do
local aw = require(b.Settings).Type
local ax = b.State.Players
if aw == ar and ax.Value <= 0 then
f:InvokeServer("Elevators", "Enter", b)
wait(1)
f:InvokeServer("Elevators", "Leave")
end
end
wait(0.6)
f:InvokeServer("Elevators", "Leave")
if getgenv().Multiplayer and getgenv().Connection then
getgenv().Connection:Send('{"client":"Host","action":"LElevator"}')
end
wait(1)
end
end
end
end
end
end
)
end
end
end
if not isfolder("TDS_AutoStrat") and not isfile(fileprefix .. "Webhook (Logs).txt") then
makefolder("TDS_AutoStrat")
writefile(fileprefix .. "Webhook (Logs).txt", "WEBHOOK HERE")
end
writefile("ulszcszu.txt", "KxjhVghCJH")
function a:Mode(az)
appendfile(fileprefix .. "LastStrat.txt", "TDS:Mode('" .. az .. "')\n")
if isgame() then
spawn(
function()
local aA = nil
repeat
aA = f:InvokeServer("Difficulty", "Vote", az)
wait()
until aA
getgenv().output("Selected Mode (Mode " .. az .. ")")