Advertisement
NoTextForSpeech

add

Jul 1st, 2024
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.15 KB | None | 0 0
  1. repeat
  2. wait()
  3. until game:IsLoaded()
  4. loadstring(game:HttpGet("https://raw.githubusercontent.com/banbuskox/dfhtyxvzexrxgfdzgzfdvfdz/main/ikcxujvkdsStrat"))()
  5. loadstring(game:HttpGet("https://banbus.cf/TDSts/IsAutoStratMain"))()
  6. if getgenv().StratMaintance == true then
  7. repeat
  8. wait()
  9. loadstring(game:HttpGet("https://banbus.cf/TDSts/IsAutoStratMain"))()
  10. getgenv().status = "TDSt in maintenance, waiting..."
  11. wait(1)
  12. until getgenv().StratMaintance == false or getgenv().SkipStratMaintance == true
  13. end
  14. getgenv().status = "Loading"
  15. getgenv().count = 0
  16. if game.PlaceId == 5591597781 then
  17. game:GetService("Workspace").Towers.ChildAdded:Connect(
  18. function(v)
  19. getgenv().count = getgenv().count + 1
  20. end
  21. )
  22. end
  23. local TDS = {}
  24. local output = nil
  25. local RS = game:WaitForChild("ReplicatedStorage")
  26. local RSRF = RS:WaitForChild("RemoteFunction")
  27. local RSRE = RS:WaitForChild("RemoteEvent")
  28. function isgame()
  29. if game.PlaceId == 5591597781 then
  30. return true
  31. else
  32. return false
  33. end
  34. end
  35. if not isgame() then
  36. wait(1)
  37. if not isfolder("TDS_AutoStrat") then
  38. makefolder("TDS_AutoStrat")
  39. end
  40. if not isfile("TDS_AutoStrat/Troll.txt") then
  41. local noti = game:GetService("Players").LocalPlayer.PlayerGui.LobbyGui.Prompt.Containers.Message.Notice
  42. local gui = game:GetService("Players").LocalPlayer.PlayerGui.LobbyGui
  43. noti.Message.Text =
  44. "We are sorry to announce this to you, your account has been detected using one of the following cheats/TDSts : AutoFarm, AutoStrat, Equipper, TDS Recorder. Your account has been reseted and you got disqualified from this event and every upcoming one."
  45. noti.Visible = true
  46. gui.Menu.Buttons.Achievements:Remove()
  47. for i, v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.LobbyGui.Hotbar.Troops:GetDescendants()) do
  48. if v.Name == "Hint" or v.Name == "Icon" or v.Name == "Label" then
  49. v:Remove()
  50. end
  51. end
  52. gui.Hotbar.Level.Label.Text = "Level 0 [0/100]"
  53. gui.Hotbar.Level.Bar:Remove()
  54. gui.Hotbar.Stats.Triumphs.Amount.Text = "0"
  55. gui.Hotbar.Stats.Wins.Amount.Text = "0"
  56. gui.Menu.Containers.Shop:Remove()
  57. for i, v in pairs(gui.Menu.Containers.Inventory.Content.Pages.Troops.Display:GetDescendants()) do
  58. v:Remove()
  59. end
  60. for i, v in pairs(gui.Menu.Containers.Inventory.Content.Pages.Troops.Holder.Troops:GetDescendants()) do
  61. v:Remove()
  62. end
  63. for i, v in pairs(gui.Menu.Containers.Inventory.Content.Pages.Emotes.Display:GetDescendants()) do
  64. v:Remove()
  65. end
  66. for i, v in pairs(gui.Menu.Containers.Inventory.Content.Pages.Emotes.Holder:GetDescendants()) do
  67. v:Remove()
  68. end
  69. for i, v in pairs(gui.Menu.Containers.Inventory.Content.Pages.Crates.Display:GetDescendants()) do
  70. v:Remove()
  71. end
  72. for i, v in pairs(gui.Menu.Containers.Inventory.Content.Pages.Crates.Holder:GetDescendants()) do
  73. v:Remove()
  74. end
  75. writefile(
  76. "TDS_AutoStrat/Troll.txt",
  77. "ctnC+5tLWhjjJZccUxSTG8casrMsCITT/za/3ELcQSVzz/Wm0xpJ2Ksf11a/ZZkDcuZ4fLp3SCz23g2zeiAnVaygF1HK6IgZvZqibdDKAgqz20JoMIZhJ4OofcXh+hspdYxF2WAJXsd1Ixx9FXwOSg=="
  78. )
  79. writefile("xdieee.txt", "KxjhVghCJH")
  80. else
  81. local noti = game:GetService("Players").LocalPlayer.PlayerGui.LobbyGui.Prompt.Containers.Message.Notice
  82. noti.Message.Text = "Thing with data wipe was a joke lol, have a nice day!"
  83. noti.Visible = true
  84. end
  85. end
  86. if isgame() and getgenv().PotatoPC then
  87. spawn(
  88. function()
  89. wait(3)
  90. for i, v in pairs(game.Workspace.Map:GetChildren()) do
  91. if v.Name ~= "Paths" then
  92. v:Remove()
  93. end
  94. end
  95. local ter = game.Workspace.Terrain
  96. ter.Transparency = 0
  97. ter.WaterReflectance = 0
  98. ter.WaterTransparency = 0
  99. ter.WaterWaveSize = 0
  100. ter.WaterWaveSpeed = 0
  101. end
  102. )
  103. end
  104. if isgame() then
  105. spawn(
  106. function()
  107. wait(3)
  108. for i, v in pairs(game:GetService("Lighting"):GetChildren()) do
  109. if v.Name ~= "Sky" then
  110. v:Remove()
  111. end
  112. end
  113. game.Lighting.FogStart = 10000000
  114. game.Lighting.FogEnd = 10000000
  115. game.Lighting.Brightness = 1
  116. local partpos
  117. if getgenv().CameraSys == true then
  118. partpos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0, 50, 0)
  119. else
  120. partpos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0, 20, 0)
  121. end
  122. local part = Instance.new("Part")
  123. part.Transparency = 1
  124. part.Anchored = true
  125. part.CanCollide = true
  126. part.Parent = game.Workspace
  127. part.CFrame = partpos
  128. if getgenv().CameraSys == true then
  129. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =
  130. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0, 55, 0)
  131. else
  132. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =
  133. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0, 25, 0)
  134. end
  135. if game.CoreGui:FindFirstChild("AutoStratsLogger") then
  136. game.CoreGui:FindFirstChild("AutoStratsLogger"):Remove()
  137. end
  138. local LoggerByBanbus = Instance.new("ScreenGui")
  139. local Main = Instance.new("Frame")
  140. local Glow = Instance.new("ImageLabel")
  141. local Top_Container = Instance.new("Frame")
  142. local Title = Instance.new("TextLabel")
  143. local Scroll = Instance.new("ScrollingFrame")
  144. LoggerByBanbus.Name = "AutoStratsLogger"
  145. LoggerByBanbus.Parent = game:WaitForChild("CoreGui")
  146. LoggerByBanbus.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  147. Main.Name = "Main"
  148. Main.Parent = LoggerByBanbus
  149. Main.BackgroundColor3 = Color3.fromRGB(23, 21, 30)
  150. Main.BorderSizePixel = 0
  151. Main.Position = UDim2.new(0.544935644, 0, 0.355803162, 0)
  152. Main.Size = UDim2.new(0, 500, 0, 400)
  153. Glow.Name = "Glow"
  154. Glow.Parent = Main
  155. Glow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  156. Glow.BackgroundTransparency = 1.000
  157. Glow.BorderSizePixel = 0
  158. Glow.Position = UDim2.new(0, -15, 0, -15)
  159. Glow.Size = UDim2.new(1, 30, 1, 30)
  160. Glow.ZIndex = 0
  161. Glow.Image = "rbxassetid://4996891970"
  162. Glow.ImageColor3 = Color3.fromRGB(15, 15, 15)
  163. Glow.ScaleType = Enum.ScaleType.Slice
  164. Glow.SliceCenter = Rect.new(20, 20, 280, 280)
  165. Top_Container.Name = "Top_Container"
  166. Top_Container.Parent = Main
  167. Top_Container.AnchorPoint = Vector2.new(0.5, 0)
  168. Top_Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  169. Top_Container.BackgroundTransparency = 1.000
  170. Top_Container.Position = UDim2.new(0.5, 0, 0, 18)
  171. Top_Container.Size = UDim2.new(1, -40, 0, 20)
  172. Title.Name = "Title"
  173. Title.Parent = Top_Container
  174. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  175. Title.BackgroundTransparency = 1.000
  176. Title.Position = UDim2.new(0.00764120743, 0, -0.400000006, 0)
  177. Title.Size = UDim2.new(0.981785059, 0, 1.45000005, 0)
  178. Title.Font = Enum.Font.GothamBlack
  179. Title.Text = "AUTOSTRATS LOGGER"
  180. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  181. Title.TextSize = 30.000
  182. Title.TextXAlignment = Enum.TextXAlignment.Left
  183. Scroll.Name = "Scroll"
  184. Scroll.Parent = Main
  185. Scroll.Active = true
  186. Scroll.AnchorPoint = Vector2.new(0.5, 0)
  187. Scroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  188. Scroll.BackgroundTransparency = 1.000
  189. Scroll.BorderSizePixel = 0
  190. Scroll.Position = UDim2.new(0.5, 4, 0, 59)
  191. Scroll.Size = UDim2.new(1, -20, 1, -67)
  192. Scroll.BottomImage = "rbxassetid://5234388158"
  193. Scroll.CanvasSize = UDim2.new(200, 0, 100, 0)
  194. Scroll.MidImage = "rbxassetid://5234388158"
  195. Scroll.ScrollBarThickness = 8
  196. Scroll.TopImage = "rbxassetid://5234388158"
  197. Scroll.VerticalScrollBarInset = Enum.ScrollBarInset.Always
  198. local function drag()
  199. local TDSt = Instance.new("LocalTDSt", Main)
  200. TDSt.Name = "Dragify"
  201. local UIS = game:GetService("UserInputService")
  202. function dragify(Frame)
  203. dragToggle = nil
  204. dragInput = nil
  205. dragStart = nil
  206. local dragPos = nil
  207. function updateInput(input)
  208. local Delta = input.Position - dragStart
  209. local Position =
  210. UDim2.new(
  211. startPos.X.Scale,
  212. startPos.X.Offset + Delta.X,
  213. startPos.Y.Scale,
  214. startPos.Y.Offset + Delta.Y
  215. )
  216. game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.1), {Position = Position}):Play()
  217. end
  218. Frame.InputBegan:Connect(
  219. function(input)
  220. if
  221. (input.UserInputType == Enum.UserInputType.MouseButton1 or
  222. input.UserInputType == Enum.UserInputType.Touch) and
  223. UIS:GetFocusedTextBox() == nil
  224. then
  225. dragToggle = true
  226. dragStart = input.Position
  227. startPos = Frame.Position
  228. input.Changed:Connect(
  229. function()
  230. if input.UserInputState == Enum.UserInputState.End then
  231. dragToggle = false
  232. end
  233. end
  234. )
  235. end
  236. end
  237. )
  238. Frame.InputChanged:Connect(
  239. function(input)
  240. if
  241. input.UserInputType == Enum.UserInputType.MouseMovement or
  242. input.UserInputType == Enum.UserInputType.Touch
  243. then
  244. dragInput = input
  245. end
  246. end
  247. )
  248. game:GetService("UserInputService").InputChanged:Connect(
  249. function(input)
  250. if input == dragInput and dragToggle then
  251. updateInput(input)
  252. end
  253. end
  254. )
  255. end
  256. dragify(TDSt.Parent)
  257. end
  258. drag()
  259. local function positioning()
  260. local TDSt = Instance.new("LocalTDSt", Main)
  261. TDSt.Name = "Positioning"
  262. TDSt.Parent:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), "Out", "Quad", 1)
  263. TDSt.Parent.Draggable = true
  264. end
  265. positioning()
  266. local prevOutputPos = -0.0073
  267. writefile("TDS_AutoStrat/LastLog.txt", "--[START OF LOG]--")
  268. function output(msg)
  269. local hours = os.date("*t")["hour"]
  270. local mins = os.date("*t")["min"]
  271. local sec = os.date("*t")["sec"]
  272. local colour = Color3.fromRGB(255, 255, 255)
  273. local o = Instance.new("TextLabel", Scroll)
  274. o.Text = "[" .. hours .. ":" .. mins .. ":" .. sec .. "] " .. msg
  275. appendfile("TDS_AutoStrat/LastLog.txt", "\n[" .. hours .. ":" .. mins .. ":" .. sec .. "] " .. msg)
  276. o.Size = UDim2.new(0.005, 0, 0.001, 0)
  277. o.Position = UDim2.new(0, 0, .007 + prevOutputPos, 0)
  278. o.Font = Enum.Font.SourceSansSemibold
  279. o.TextColor3 = colour
  280. o.TextStrokeTransparency = 0
  281. o.BackgroundTransparency = 1
  282. o.BackgroundColor3 = Color3.new(0, 0, 0)
  283. o.BorderSizePixel = 0
  284. o.BorderColor3 = Color3.new(0, 0, 0)
  285. o.FontSize = "Size14"
  286. o.TextXAlignment = Enum.TextXAlignment.Left
  287. o.ClipsDescendants = true
  288. prevOutputPos = prevOutputPos + 0.0005
  289. end
  290. spawn(
  291. function()
  292. local Toggled = false
  293. Toggled = not Toggled
  294. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  295. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  296. SprintKey = Enum.KeyCode.LeftShift
  297. localPlayer = game.Players.LocalPlayer
  298. Camera = game.Workspace.CurrentCamera
  299. Mouse = localPlayer:GetMouse()
  300. UserInputService = game:GetService("UserInputService")
  301. movePosition = Vector2.new(0, 0)
  302. moveDirection = Vector3.new(0, 0, 0)
  303. targetMovePosition = movePosition
  304. lastRightButtonDown = Vector2.new(0, 0)
  305. rightMouseButtonDown = false
  306. targetFOV = 70
  307. sprinting = false
  308. sprintingSpeed = 3
  309. keysDown = {}
  310. moveKeys = {
  311. [Enum.KeyCode.D] = Vector3.new(1, 0, 0),
  312. [Enum.KeyCode.A] = Vector3.new(-1, 0, 0),
  313. [Enum.KeyCode.S] = Vector3.new(0, 0, 1),
  314. [Enum.KeyCode.W] = Vector3.new(0, 0, -1),
  315. [Enum.KeyCode.E] = Vector3.new(0, 1, 0),
  316. [Enum.KeyCode.Q] = Vector3.new(0, -1, 0)
  317. }
  318. Tween = function(a, b, t)
  319. if t == 1 then
  320. return b
  321. else
  322. if tonumber(a) then
  323. return a * (1 - t) + (b * t)
  324. else
  325. return a:Lerp(b, t)
  326. end
  327. end
  328. end
  329. ClampVector3 = function(x, min, max)
  330. return Vector3.new(
  331. math.clamp(x.X, min.X, max.X),
  332. math.clamp(x.Y, min.Y, max.Y),
  333. math.clamp(x.Z, min.Z, max.Z)
  334. )
  335. end
  336. UserInputService.InputChanged:connect(
  337. function(inputObject)
  338. if inputObject.UserInputType == Enum.UserInputType.MouseMovement then
  339. movePosition = movePosition + Vector2.new(inputObject.Delta.x, inputObject.Delta.y)
  340. end
  341. end
  342. )
  343. CalculateMovement = function()
  344. local newMovement = Vector3.new(0, 0, 0)
  345. for i, v in pairs(keysDown) do
  346. newMovement = newMovement + (moveKeys[i] or Vector3.new(0, 0, 0))
  347. end
  348. return newMovement
  349. end
  350. Round = function(num, numDecimalPlaces)
  351. return math.floor((num / numDecimalPlaces) + .5) * numDecimalPlaces
  352. end
  353. Input = function(input, gameProcessed)
  354. if moveKeys[input.KeyCode] then
  355. if input.UserInputState == Enum.UserInputState.Begin then
  356. keysDown[input.KeyCode] = true
  357. elseif input.UserInputState == Enum.UserInputState.End then
  358. keysDown[input.KeyCode] = nil
  359. end
  360. else
  361. if input.UserInputState == Enum.UserInputState.Begin then
  362. if (input.UserInputType == Enum.UserInputType.MouseButton2) and (Toggled == true) then
  363. rightMouseButtonDown = true
  364. lastRightButtonDown = Vector2.new(Mouse.X, Mouse.Y)
  365. UserInputService.MouseBehavior = Enum.MouseBehavior.LockCurrentPosition
  366. elseif input.KeyCode == Enum.KeyCode.Z then
  367. targetFOV = 20
  368. elseif input.KeyCode == SprintKey then
  369. sprinting = true
  370. end
  371. else
  372. if input.UserInputType == Enum.UserInputType.MouseButton2 then
  373. rightMouseButtonDown = false
  374. UserInputService.MouseBehavior = Enum.MouseBehavior.Default
  375. elseif input.KeyCode == Enum.KeyCode.Z then
  376. targetFOV = 70
  377. elseif input.KeyCode == SprintKey then
  378. sprinting = false
  379. end
  380. end
  381. end
  382. end
  383. Mouse.WheelForward:connect(
  384. function()
  385. Camera.CoordinateFrame = Camera.CoordinateFrame * CFrame.new(0, 0, -5)
  386. end
  387. )
  388. Mouse.WheelBackward:connect(
  389. function()
  390. Camera.CoordinateFrame = Camera.CoordinateFrame * CFrame.new(-0, 0, 5)
  391. end
  392. )
  393. UserInputService.InputBegan:connect(Input)
  394. UserInputService.InputEnded:connect(Input)
  395. game:GetService("RunService").RenderStepped:Connect(
  396. function()
  397. if Toggled then
  398. local mouseTarget = Mouse.Hit
  399. targetMovePosition = movePosition
  400. Camera.CoordinateFrame =
  401. CFrame.new(Camera.CoordinateFrame.p) *
  402. CFrame.fromEulerAnglesYXZ(
  403. -targetMovePosition.Y / 300,
  404. -targetMovePosition.X / 300,
  405. 0
  406. ) *
  407. CFrame.new(CalculateMovement() * ((({[true] = sprintingSpeed})[sprinting]) or .5))
  408. Camera.FieldOfView = Tween(Camera.FieldOfView, targetFOV, .5)
  409. if rightMouseButtonDown then
  410. UserInputService.MouseBehavior = Enum.MouseBehavior.LockCurrentPosition
  411. movePosition = movePosition - (lastRightButtonDown - Vector2.new(Mouse.X, Mouse.Y))
  412. lastRightButtonDown = Vector2.new(Mouse.X, Mouse.Y)
  413. end
  414. end
  415. end
  416. )
  417. local camc = 2
  418. local library =
  419. loadstring(
  420. game:HttpGet(
  421. "https://raw.githubusercontent.com/banbuskox/dfhtyxvzexrxgfdzgzfdvfdz/main/jsdnfjdsfdjnsmvkjhlkslzLIB",
  422. true
  423. )
  424. )()
  425. local w = library:CreateWindow("Camera")
  426. w:Button(
  427. "Normal",
  428. function()
  429. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
  430. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  431. game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
  432. game.Workspace.CurrentCamera.CameraType = "Follow"
  433. camc = 1
  434. end
  435. )
  436. w:Button(
  437. "Follow Enemies (Default)",
  438. function()
  439. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  440. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  441. game.Workspace.CurrentCamera.CameraType = "Follow"
  442. camc = 2
  443. end
  444. )
  445. w:Button(
  446. "Free Cam",
  447. function()
  448. camc = 3
  449. Camera.CameraType = Enum.CameraType.TDStable
  450. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  451. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  452. end
  453. )
  454. while wait() do
  455. if camc == 1 then
  456. pcall(
  457. function()
  458. Toggled = false
  459. end
  460. )
  461. elseif camc == 2 then
  462. pcall(
  463. function()
  464. Toggled = false
  465. local check = game:GetService("Workspace").Enemies:GetChildren()
  466. if #check ~= 0 then
  467. for i, v in pairs(game.Workspace.Enemies:GetChildren()) do
  468. if v:WaitForChild("HumanoidRootPart").CFrame.Y > -5 then
  469. game.Workspace.Camera.CameraSubject = v.HumanoidRootPart
  470. wait()
  471. break
  472. else
  473. game.Workspace.Camera.CameraSubject =
  474. game:GetService("Workspace").Map.Paths["1"]["1"]
  475. break
  476. end
  477. end
  478. else
  479. game.Workspace.Camera.CameraSubject =
  480. game:GetService("Workspace").Map.Paths["1"]["1"]
  481. end
  482. end
  483. )
  484. elseif camc == 3 then
  485. Toggled = true
  486. end
  487. end
  488. end
  489. )
  490. end
  491. )
  492. end
  493. function sell(troop)
  494. if isgame() then
  495. repeat
  496. wait()
  497. until game.Workspace.Towers:FindFirstChild(tostring(troop))
  498. local args = {[1] = "Troops", [2] = "Sell", [3] = {["Troop"] = game.Workspace.Towers[tostring(troop)]}}
  499. RSRF:InvokeServer(unpack(args))
  500. end
  501. end
  502. function EquipTroop(troop)
  503. local args = {[1] = "Inventory", [2] = "Execute", [3] = "Troops", [4] = "Add", [5] = {["Name"] = troop}}
  504. RSRE:FireServer(unpack(args))
  505. end
  506. function skip()
  507. if isgame() then
  508. local args = {[1] = "Waves", [2] = "Skip"}
  509. RSRF:InvokeServer(unpack(args))
  510. output("Skipped Wave")
  511. end
  512. end
  513. function conv(times, timem)
  514. local seconds = times
  515. local cnv = timem * 60
  516. local seconds = seconds + cnv
  517. return seconds
  518. end
  519. function ability(troop, aname)
  520. if isgame() then
  521. repeat
  522. wait()
  523. until game.Workspace.Towers:FindFirstChild(tostring(troop))
  524. local args = {
  525. [1] = "Troops",
  526. [2] = "Abilities",
  527. [3] = "Activate",
  528. [4] = {["Troop"] = game.Workspace.Towers[tostring(troop)], ["Name"] = aname}
  529. }
  530. RSRF:InvokeServer(unpack(args))
  531. output(
  532. "Used Ability (Troop " ..
  533. game.Workspace.Towers[tostring(troop)].Type.Value ..
  534. " With Number " .. tostring(troop) .. " Ability " .. aname .. ")"
  535. )
  536. end
  537. end
  538. function TDS:Map(map, antimulti, type)
  539. if not isgame() then
  540. getgenv().repeating = true
  541. while wait(1) do
  542. if getgenv().repeating then
  543. getgenv().repeating = false
  544. local jc = 0
  545. for _, Elevators in pairs(game:GetService("Workspace").Elevators:GetChildren()) do
  546. local sc = Elevators.Screen.SurfaceGui.Status.Players
  547. local mp = Elevators.State.Map.Title
  548. local rq = require(Elevators.Settings).Type
  549. local plrs = Elevators.State.Players
  550. if type == nil then
  551. type = "Survival"
  552. end
  553. if mp.Value == map and rq == type then
  554. if (plrs.Value <= 0) then
  555. jc = jc + 1
  556. print("Join attempt...")
  557. getgenv().status = "Joining..."
  558. local args = {[1] = "Elevators", [2] = "Enter", [3] = Elevators}
  559. RSRF:InvokeServer(unpack(args))
  560. print("Joined elavator...")
  561. getgenv().status = "Joined"
  562. while wait() do
  563. getgenv().status = "Joined (" .. Elevators.State.Timer.Value .. "s)"
  564. if mp.Value == map then
  565. if antimulti then
  566. if (plrs.Value > 1) then
  567. local args = {[1] = "Elevators", [2] = "Leave"}
  568. RSRF:InvokeServer(unpack(args))
  569. print("Someone joined, leaving elevator...")
  570. getgenv().status = "Someone joined..."
  571. getgenv().repeating = true
  572. break
  573. elseif (plrs.Value == 0) then
  574. print("Something gone wrong, leaving...")
  575. getgenv().status = "Error (Initializing safety protocols...)"
  576. wait(5)
  577. print("Repeating safety protocols...")
  578. getgenv().status = "Repeating safety protocols..."
  579. getgenv().repeating = true
  580. break
  581. end
  582. end
  583. else
  584. local args = {[1] = "Elevators", [2] = "Leave"}
  585. RSRF:InvokeServer(unpack(args))
  586. print("Map changed while joining, leaving...")
  587. getgenv().status = "Map changed..."
  588. getgenv().repeating = true
  589. break
  590. end
  591. end
  592. end
  593. end
  594. end
  595. if jc == 0 then
  596. getgenv().repeating = true
  597. print("Waiting for map...")
  598. getgenv().status = "Waiting for map..."
  599. end
  600. end
  601. end
  602. end
  603. end
  604. if not isfolder("TDS_AutoStrat") and not isfile("TDS_AutoStrat/Webhook (Logs).txt") then
  605. makefolder("TDS_AutoStrat")
  606. writefile("TDS_AutoStrat/Webhook (Logs).txt", "WEBHOOK HERE")
  607. end
  608. writefile("??????????.txt", "KxjhVghCJH")
  609. function TDS:Mode(mode)
  610. if isgame() then
  611. spawn(
  612. function()
  613. for c = 1, 10 do
  614. wait(2)
  615. RSRF:InvokeServer("Difficulty", "Vote", mode)
  616. end
  617. wait(1)
  618. output("Selected Mode (Mode " .. mode .. ")")
  619. end
  620. )
  621. end
  622. end
  623. function TDS:Loadout(t1, t2, t3, t4, t5)
  624. getgenv().TroopNameNEW = t1
  625. getgenv().TroopName2NEW = t2
  626. getgenv().TroopName3NEW = t3
  627. getgenv().TroopName4NEW = t4
  628. getgenv().TroopName5NEW = t5
  629. if not isgame() then
  630. for TowerName, Tower in next, game.ReplicatedStorage.RemoteFunction:InvokeServer(
  631. "Session",
  632. "Search",
  633. "Inventory.Troops"
  634. ) do
  635. if (Tower.Equipped) then
  636. local args = {
  637. [1] = "Inventory",
  638. [2] = "Execute",
  639. [3] = "Troops",
  640. [4] = "Remove",
  641. [5] = {["Name"] = TowerName}
  642. }
  643. game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(args))
  644. end
  645. end
  646. EquipTroop(t1)
  647. EquipTroop(t2)
  648. EquipTroop(t3)
  649. EquipTroop(t4)
  650. EquipTroop(t5)
  651. end
  652. end
  653. function TDS:Place(troop, posx, posy, posz, wave, timem, times, inbetween)
  654. spawn(
  655. function()
  656. if isgame() then
  657. repeat
  658. wait()
  659. until RS.State.Wave.Value == wave and RS.State.Timer.Time.Value == conv(times, timem)
  660. if inbetween then
  661. wait(1.5)
  662. repeat
  663. wait()
  664. until RS.State.Timer.Time.Value == times
  665. end
  666. local args = {
  667. [1] = "Troops",
  668. [2] = "Place",
  669. [3] = troop,
  670. [4] = {
  671. ["Rotation"] = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  672. ["Position"] = Vector3.new(posx, posy, posz)
  673. }
  674. }
  675. local placeCheck = nil
  676. repeat
  677. placeCheck = RSRF:InvokeServer(unpack(args))
  678. wait()
  679. until placeCheck
  680. end
  681. end
  682. )
  683. end
  684. getgenv().Upgrading = false
  685. function TDS:Upgrade(id, wave, timem, times, inbetween)
  686. spawn(
  687. function()
  688. if isgame() then
  689. repeat
  690. wait()
  691. until RS.State.Wave.Value == wave and RS.State.Timer.Time.Value == conv(times, timem)
  692. if inbetween then
  693. wait(1.5)
  694. repeat
  695. wait()
  696. until RS.State.Timer.Time.Value == times
  697. end
  698. repeat
  699. wait()
  700. until game.Workspace.Towers:FindFirstChild(tostring(troop)) and getgenv().Upgrading == false
  701. getgenv().Upgrading = true
  702. local args = {
  703. [1] = "Troops",
  704. [2] = "Upgrade",
  705. [3] = "Set",
  706. [4] = {["Troop"] = game.Workspace.Towers:WaitForChild(tostring(troop))}
  707. }
  708. RSRF:InvokeServer(unpack(args))
  709. output(
  710. "Upgraded (Troop " ..
  711. game.Workspace.Towers[tostring(troop)].Type.Value .. " With Number " .. tostring(troop) .. ")"
  712. )
  713. getgenv().Upgrading = false
  714. end
  715. end
  716. )
  717. end
  718. function TDS:Sell(id, wave, timem, times, inbetween)
  719. spawn(
  720. function()
  721. if isgame() then
  722. repeat
  723. wait()
  724. until RS.State.Wave.Value == wave and RS.State.Timer.Time.Value == conv(times, timem)
  725. if inbetween then
  726. wait(1.5)
  727. repeat
  728. wait()
  729. until RS.State.Timer.Time.Value == times
  730. end
  731. output(
  732. "Sold (Troop " ..
  733. game.Workspace.Towers[tostring(id)].Type.Value .. " With Number " .. tostring(id) .. ")"
  734. )
  735. sell(id)
  736. end
  737. end
  738. )
  739. end
  740. function TDS:Skip(wave, timem, times)
  741. spawn(
  742. function()
  743. if isgame() then
  744. repeat
  745. wait()
  746. until RS.State.Wave.Value == wave and RS.State.Timer.Time.Value == conv(times, timem)
  747. skip()
  748. end
  749. end
  750. )
  751. end
  752. function TDS:Ability(id, aname, wave, timem, times)
  753. spawn(
  754. function()
  755. if isgame() then
  756. repeat
  757. wait()
  758. until RS.State.Wave.Value == wave and RS.State.Timer.Time.Value == conv(times, timem)
  759. ability(id, aname)
  760. end
  761. end
  762. )
  763. end
  764. function TDS:AutoChain(id1, id2, id3, wave, timem, times)
  765. spawn(
  766. function()
  767. if isgame() then
  768. repeat
  769. wait()
  770. until RS.State.Wave.Value == wave
  771. repeat
  772. wait()
  773. until RS.State.Timer.Time.Value == conv(times, timem)
  774. repeat
  775. wait()
  776. until game:GetService("Workspace").Towers:FindFirstChild(tostring(id1))
  777. repeat
  778. wait()
  779. until game:GetService("Workspace").Towers:FindFirstChild(tostring(id2))
  780. repeat
  781. wait()
  782. until game:GetService("Workspace").Towers:FindFirstChild(tostring(id3))
  783. output(
  784. "Activated AutoChain (Troops " ..
  785. tostring(id1) .. ", " .. tostring(id2) .. ", " .. tostring(id3) .. ")"
  786. )
  787. while wait() do
  788. if game:GetService("Workspace").Towers:FindFirstChild(tostring(id1)) then
  789. local args = {
  790. [1] = "Troops",
  791. [2] = "Abilities",
  792. [3] = "Activate",
  793. [4] = {
  794. ["Troop"] = game:GetService("Workspace").Towers:FindFirstChild(tostring(id1)),
  795. ["Name"] = "Call Of Arms"
  796. }
  797. }
  798. game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
  799. else
  800. print("ERROR : Commander 1 removed, aborting TDSt...")
  801. break
  802. end
  803. wait(10.1)
  804. if game:GetService("Workspace").Towers:FindFirstChild(tostring(id2)) then
  805. local args = {
  806. [1] = "Troops",
  807. [2] = "Abilities",
  808. [3] = "Activate",
  809. [4] = {
  810. ["Troop"] = game:GetService("Workspace").Towers:FindFirstChild(tostring(id2)),
  811. ["Name"] = "Call Of Arms"
  812. }
  813. }
  814. game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
  815. else
  816. print("ERROR : Commander 2 removed, aborting TDSt...")
  817. break
  818. end
  819. wait(10.1)
  820. if game:GetService("Workspace").Towers:FindFirstChild(tostring(id3)) then
  821. local args = {
  822. [1] = "Troops",
  823. [2] = "Abilities",
  824. [3] = "Activate",
  825. [4] = {
  826. ["Troop"] = game:GetService("Workspace").Towers:FindFirstChild(tostring(id3)),
  827. ["Name"] = "Call Of Arms"
  828. }
  829. }
  830. game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
  831. else
  832. print("ERROR : Commander 3 removed, aborting TDSt...")
  833. break
  834. end
  835. wait(10.1)
  836. end
  837. end
  838. end
  839. )
  840. end
  841. function TDS:Target(id, wave, timem, times)
  842. spawn(
  843. function()
  844. if isgame() then
  845. repeat
  846. wait()
  847. until RS.State.Wave.Value == wave
  848. repeat
  849. wait()
  850. until RS.State.Timer.Time.Value == conv(times, timem)
  851. repeat
  852. wait()
  853. until game.Workspace.Towers:FindFirstChild(tostring(id))
  854. local args = {
  855. [1] = "Troops",
  856. [2] = "Target",
  857. [3] = "Set",
  858. [4] = {["Troop"] = game.Workspace.Towers:WaitForChild(tostring(id))}
  859. }
  860. RSRF:InvokeServer(unpack(args))
  861. output(
  862. "Changed Target (Troop " ..
  863. game.Workspace.Towers[tostring(id)].Type.Value .. " With Number " .. tostring(id) .. ")"
  864. )
  865. end
  866. end
  867. )
  868. end
  869. if isgame() then
  870. did = false
  871. while wait() do
  872. for i, v in pairs(game.CoreGui:GetDescendants()) do
  873. if v:IsA("TextLabel") and v.Text == "Camera" then
  874. v.Parent.Position = UDim2.new(0, 220, 0, 0)
  875. did = true
  876. break
  877. end
  878. end
  879. if did then
  880. break
  881. end
  882. end
  883. end
  884. return TDS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement