Advertisement
Plieax

Arcane Lineage GUI by .jaba. on discord

Jul 19th, 2023 (edited)
6,552
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 21.38 KB | None | 0 0
  1. --updated 7/30/2023
  2.   --added more auto farms
  3.   --fixed most auto farm bugs
  4.   --auto heal now instantly/automatically heals
  5.  
  6. --Thank you to frstee for creating the Gui to Lua Converter
  7. --It has helped tremendously in the development of this UI
  8.  
  9. --Rearrange this list to choose what enemies to attack first
  10. --Top name is always attacked first
  11. local enemyOrder = {
  12.     "King Slime",
  13.     "Zombie Mushroom",
  14.     "Thief",
  15.     "Slime",
  16.     "Grass Spirit",
  17.     "Sand Elemental",
  18.     "Desert Bandit",
  19.     "Stray Sand Storm",
  20.     "Sand Golem",
  21.     "Fog Spirit",
  22.     "Venom Shroom",
  23.     "Cursed Corpse",
  24.     "Cess Horror",
  25.     "Magma Golem",
  26.     "Lava Crab"
  27. }
  28.  
  29. --Rearrange this list to choose the order in which the auto attack mechanism attacks with
  30. --Currently fist QTEs are the only supported QTE attacks
  31. --For example, a mage attack that requires you to drag the pieces will not work because you will fail the QTE
  32. --Support for other classes will be added eventually
  33. local attackOrder = {
  34.     "Call Darkbeast",
  35.     "Dark Smite",
  36.     "Void Bite",
  37.     "Pounce",
  38.     "Barrage",
  39.     "Dark Smite",
  40.     "Darkcore Eruption",
  41.     "Strike",
  42.  
  43. }
  44.  
  45.  
  46. --THIS SCRIPT IS VERY NEW AND MAY NOT ALWAYS WORK AS INTENDED
  47. --If you would like to change the zone for the auto farm..
  48.     --You need to change the OUTERCALDERAPOS CFrame so it TPs you to that zone
  49.     --To do this, run this script
  50.     warn(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,2,0))
  51.     --Then check the console for the yellow warning message which should display the X,Y, and Z that you put in place of the default value
  52. --Press F9 to open the console if you didn't know that already
  53.  
  54. -- Instances:
  55.  
  56. local ScreenGui = Instance.new("ScreenGui")
  57. local MF = Instance.new("Frame")
  58. local CONTENT = Instance.new("Frame")
  59. local TPs = Instance.new("ScrollingFrame")
  60. local UIGridLayout = Instance.new("UIGridLayout")
  61. local Caldera = Instance.new("TextButton")
  62. local OldRuins = Instance.new("TextButton")
  63. local DeepCanopy = Instance.new("TextButton")
  64. local Autos = Instance.new("ScrollingFrame")
  65. local AutoDodge = Instance.new("TextButton")
  66. local UIGridLayout_2 = Instance.new("UIGridLayout")
  67. local AutoFarmCaldera = Instance.new("TextButton")
  68. local AutoDoctor = Instance.new("TextButton")
  69. local AutoFarmRuins = Instance.new("TextButton")
  70. local AutoFarmCanopy = Instance.new("TextButton")
  71. local NAV = Instance.new("ScrollingFrame")
  72. local TPs_2 = Instance.new("TextButton")
  73. local Autos_2 = Instance.new("TextButton")
  74. local UIGridLayout_3 = Instance.new("UIGridLayout")
  75. local Credit = Instance.new("TextButton")
  76. local Drag = Instance.new("TextButton")
  77. local TOPBAR = Instance.new("Frame")
  78. local CLOSE = Instance.new("TextButton")
  79. local MIN = Instance.new("TextButton")
  80.  
  81. --Properties:
  82.  
  83. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  84. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  85.  
  86. MF.Name = "MF"
  87. MF.Parent = ScreenGui
  88. MF.BackgroundColor3 = Color3.fromRGB(130, 130, 130)
  89. MF.BackgroundTransparency = 0.250
  90. MF.BorderColor3 = Color3.fromRGB(0, 0, 0)
  91. MF.BorderSizePixel = 0
  92. MF.Position = UDim2.new(0.600000024, 0, 0.649999976, 0)
  93. MF.Size = UDim2.new(0.300000012, 0, 0.224999994, 0)
  94.  
  95. CONTENT.Name = "CONTENT"
  96. CONTENT.Parent = MF
  97. CONTENT.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  98. CONTENT.BackgroundTransparency = 1.000
  99. CONTENT.BorderColor3 = Color3.fromRGB(0, 0, 0)
  100. CONTENT.BorderSizePixel = 0
  101. CONTENT.Position = UDim2.new(0.25, 0, 0.100000069, 0)
  102. CONTENT.Size = UDim2.new(0.749291241, 0, 0.895860553, 0)
  103.  
  104. TPs.Name = "TPs"
  105. TPs.Parent = CONTENT
  106. TPs.Active = true
  107. TPs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  108. TPs.BackgroundTransparency = 1.000
  109. TPs.BorderColor3 = Color3.fromRGB(0, 0, 0)
  110. TPs.BorderSizePixel = 0
  111. TPs.Size = UDim2.new(1, 0, 1, 0)
  112.  
  113. UIGridLayout.Parent = TPs
  114. UIGridLayout.FillDirection = Enum.FillDirection.Vertical
  115. UIGridLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  116. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  117. UIGridLayout.CellPadding = UDim2.new(0, 10, 0, 10)
  118. UIGridLayout.CellSize = UDim2.new(0.75, 0, 0.100000001, 0)
  119.  
  120. Caldera.Name = "Caldera"
  121. Caldera.Parent = TPs
  122. Caldera.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  123. Caldera.BackgroundTransparency = 0.250
  124. Caldera.BorderColor3 = Color3.fromRGB(0, 0, 0)
  125. Caldera.BorderSizePixel = 0
  126. Caldera.Size = UDim2.new(0, 200, 0, 50)
  127. Caldera.Font = Enum.Font.SourceSans
  128. Caldera.Text = "Caldera Town"
  129. Caldera.TextColor3 = Color3.fromRGB(0, 0, 0)
  130. Caldera.TextSize = 14.000
  131.  
  132. OldRuins.Name = "OldRuins"
  133. OldRuins.Parent = TPs
  134. OldRuins.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  135. OldRuins.BackgroundTransparency = 0.250
  136. OldRuins.BorderColor3 = Color3.fromRGB(0, 0, 0)
  137. OldRuins.BorderSizePixel = 0
  138. OldRuins.Size = UDim2.new(0, 200, 0, 50)
  139. OldRuins.Font = Enum.Font.SourceSans
  140. OldRuins.Text = "Old Ruins"
  141. OldRuins.TextColor3 = Color3.fromRGB(0, 0, 0)
  142. OldRuins.TextSize = 14.000
  143.  
  144. DeepCanopy.Name = "DeepCanopy"
  145. DeepCanopy.Parent = TPs
  146. DeepCanopy.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  147. DeepCanopy.BackgroundTransparency = 0.250
  148. DeepCanopy.BorderColor3 = Color3.fromRGB(0, 0, 0)
  149. DeepCanopy.BorderSizePixel = 0
  150. DeepCanopy.Size = UDim2.new(0, 200, 0, 50)
  151. DeepCanopy.Font = Enum.Font.SourceSans
  152. DeepCanopy.Text = "Deeproot Canopy"
  153. DeepCanopy.TextColor3 = Color3.fromRGB(0, 0, 0)
  154. DeepCanopy.TextSize = 14.000
  155.  
  156. Autos.Name = "Autos"
  157. Autos.Parent = CONTENT
  158. Autos.Active = true
  159. Autos.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  160. Autos.BackgroundTransparency = 1.000
  161. Autos.BorderColor3 = Color3.fromRGB(0, 0, 0)
  162. Autos.BorderSizePixel = 0
  163. Autos.Size = UDim2.new(1, 0, 1, 0)
  164. Autos.Visible = false
  165.  
  166. AutoDodge.Name = "AutoDodge"
  167. AutoDodge.Parent = Autos
  168. AutoDodge.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  169. AutoDodge.BackgroundTransparency = 0.250
  170. AutoDodge.BorderColor3 = Color3.fromRGB(0, 0, 0)
  171. AutoDodge.BorderSizePixel = 0
  172. AutoDodge.Size = UDim2.new(0, 200, 0, 50)
  173. AutoDodge.Font = Enum.Font.SourceSans
  174. AutoDodge.Text = "Auto Dodge: OFF"
  175. AutoDodge.TextColor3 = Color3.fromRGB(0, 0, 0)
  176. AutoDodge.TextSize = 14.000
  177.  
  178. UIGridLayout_2.Parent = Autos
  179. UIGridLayout_2.FillDirection = Enum.FillDirection.Vertical
  180. UIGridLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
  181. UIGridLayout_2.CellPadding = UDim2.new(0, 10, 0, 10)
  182. UIGridLayout_2.CellSize = UDim2.new(0.75, 0, 0.100000001, 0)
  183.  
  184. AutoFarmCaldera.Name = "AutoFarmCaldera"
  185. AutoFarmCaldera.Parent = Autos
  186. AutoFarmCaldera.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  187. AutoFarmCaldera.BackgroundTransparency = 0.250
  188. AutoFarmCaldera.BorderColor3 = Color3.fromRGB(0, 0, 0)
  189. AutoFarmCaldera.BorderSizePixel = 0
  190. AutoFarmCaldera.Size = UDim2.new(0, 200, 0, 50)
  191. AutoFarmCaldera.Font = Enum.Font.SourceSans
  192. AutoFarmCaldera.Text = "Auto Farm Caldera: OFF"
  193. AutoFarmCaldera.TextColor3 = Color3.fromRGB(0, 0, 0)
  194. AutoFarmCaldera.TextSize = 14.000
  195.  
  196. AutoDoctor.Name = "AutoDoctor"
  197. AutoDoctor.Parent = Autos
  198. AutoDoctor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  199. AutoDoctor.BackgroundTransparency = 0.250
  200. AutoDoctor.BorderColor3 = Color3.fromRGB(0, 0, 0)
  201. AutoDoctor.BorderSizePixel = 0
  202. AutoDoctor.Size = UDim2.new(0, 200, 0, 50)
  203. AutoDoctor.Font = Enum.Font.SourceSans
  204. AutoDoctor.Text = "Doc Heal"
  205. AutoDoctor.TextColor3 = Color3.fromRGB(0, 0, 0)
  206. AutoDoctor.TextSize = 14.000
  207.  
  208. AutoFarmRuins.Name = "AutoFarmRuins"
  209. AutoFarmRuins.Parent = Autos
  210. AutoFarmRuins.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  211. AutoFarmRuins.BackgroundTransparency = 0.250
  212. AutoFarmRuins.BorderColor3 = Color3.fromRGB(0, 0, 0)
  213. AutoFarmRuins.BorderSizePixel = 0
  214. AutoFarmRuins.Size = UDim2.new(0, 200, 0, 50)
  215. AutoFarmRuins.Font = Enum.Font.SourceSans
  216. AutoFarmRuins.Text = "Auto Farm Ruins: OFF"
  217. AutoFarmRuins.TextColor3 = Color3.fromRGB(0, 0, 0)
  218. AutoFarmRuins.TextSize = 14.000
  219.  
  220. AutoFarmCanopy.Name = "AutoFarmCanopy"
  221. AutoFarmCanopy.Parent = Autos
  222. AutoFarmCanopy.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  223. AutoFarmCanopy.BackgroundTransparency = 0.250
  224. AutoFarmCanopy.BorderColor3 = Color3.fromRGB(0, 0, 0)
  225. AutoFarmCanopy.BorderSizePixel = 0
  226. AutoFarmCanopy.Size = UDim2.new(0, 200, 0, 50)
  227. AutoFarmCanopy.Font = Enum.Font.SourceSans
  228. AutoFarmCanopy.Text = "Auto Farm Canopy: OFF"
  229. AutoFarmCanopy.TextColor3 = Color3.fromRGB(0, 0, 0)
  230. AutoFarmCanopy.TextSize = 14.000
  231.  
  232. NAV.Name = "NAV"
  233. NAV.Parent = MF
  234. NAV.Active = true
  235. NAV.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  236. NAV.BackgroundTransparency = 0.250
  237. NAV.BorderColor3 = Color3.fromRGB(0, 0, 0)
  238. NAV.BorderSizePixel = 0
  239. NAV.Position = UDim2.new(0, 0, 0.100000069, 0)
  240. NAV.Size = UDim2.new(0.25, 0, 0.899999797, 0)
  241.  
  242. TPs_2.Name = "TPs"
  243. TPs_2.Parent = NAV
  244. TPs_2.BackgroundColor3 = Color3.fromRGB(0, 136, 0)
  245. TPs_2.BackgroundTransparency = 0.250
  246. TPs_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  247. TPs_2.BorderSizePixel = 0
  248. TPs_2.Position = UDim2.new(0.0472531095, 0, 0.261437953, 0)
  249. TPs_2.Size = UDim2.new(0.899999976, 0, 0.167695448, 0)
  250. TPs_2.Font = Enum.Font.SourceSansBold
  251. TPs_2.LineHeight = 0.900
  252. TPs_2.Text = "TPs"
  253. TPs_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  254. TPs_2.TextSize = 14.000
  255.  
  256. Autos_2.Name = "Autos"
  257. Autos_2.Parent = NAV
  258. Autos_2.BackgroundColor3 = Color3.fromRGB(0, 136, 0)
  259. Autos_2.BackgroundTransparency = 0.250
  260. Autos_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  261. Autos_2.BorderSizePixel = 0
  262. Autos_2.Position = UDim2.new(0.0472531095, 0, 0.048414439, 0)
  263. Autos_2.Size = UDim2.new(0.899999976, 0, 0.167695448, 0)
  264. Autos_2.Font = Enum.Font.SourceSansBold
  265. Autos_2.LineHeight = 0.900
  266. Autos_2.Text = "Auto"
  267. Autos_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  268. Autos_2.TextSize = 14.000
  269.  
  270. UIGridLayout_3.Parent = NAV
  271. UIGridLayout_3.FillDirection = Enum.FillDirection.Vertical
  272. UIGridLayout_3.HorizontalAlignment = Enum.HorizontalAlignment.Center
  273. UIGridLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  274. UIGridLayout_3.CellSize = UDim2.new(0.899999976, 0, 0.100000001, 0)
  275.  
  276. Credit.Name = "Credit"
  277. Credit.Parent = NAV
  278. Credit.BackgroundColor3 = Color3.fromRGB(0, 136, 0)
  279. Credit.BackgroundTransparency = 0.250
  280. Credit.BorderColor3 = Color3.fromRGB(0, 0, 0)
  281. Credit.BorderSizePixel = 0
  282. Credit.Position = UDim2.new(0.0472531095, 0, 0.261437953, 0)
  283. Credit.Size = UDim2.new(0.899999976, 0, 0.167695448, 0)
  284. Credit.Font = Enum.Font.SourceSansBold
  285. Credit.LineHeight = 0.900
  286. Credit.Text = "By: .jaba."
  287. Credit.TextColor3 = Color3.fromRGB(255, 255, 255)
  288. Credit.TextSize = 10.000
  289.  
  290. Drag.Name = "Drag"
  291. Drag.Parent = MF
  292. Drag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  293. Drag.BackgroundTransparency = 1.000
  294. Drag.BorderColor3 = Color3.fromRGB(0, 0, 0)
  295. Drag.BorderSizePixel = 0
  296. Drag.Position = UDim2.new(-0.00146615889, 0, 1.37963738e-07, 0)
  297. Drag.Size = UDim2.new(0.863841355, 0, 0.0956428424, 0)
  298. Drag.Font = Enum.Font.SourceSans
  299. Drag.TextColor3 = Color3.fromRGB(0, 0, 0)
  300. Drag.TextSize = 14.000
  301.  
  302. TOPBAR.Name = "TOPBAR"
  303. TOPBAR.Parent = MF
  304. TOPBAR.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  305. TOPBAR.BorderColor3 = Color3.fromRGB(0, 0, 0)
  306. TOPBAR.BorderSizePixel = 0
  307. TOPBAR.Size = UDim2.new(1, 0, 0.100000001, 0)
  308.  
  309. CLOSE.Name = "CLOSE"
  310. CLOSE.Parent = TOPBAR
  311. CLOSE.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  312. CLOSE.BorderColor3 = Color3.fromRGB(0, 0, 0)
  313. CLOSE.BorderSizePixel = 0
  314. CLOSE.Position = UDim2.new(0.945067942, 0, 0, 0)
  315. CLOSE.Size = UDim2.new(1, 0, 1, 0)
  316. CLOSE.SizeConstraint = Enum.SizeConstraint.RelativeYY
  317. CLOSE.Font = Enum.Font.SourceSans
  318. CLOSE.Text = "X"
  319. CLOSE.TextColor3 = Color3.fromRGB(0, 0, 0)
  320. CLOSE.TextSize = 14.000
  321.  
  322. MIN.Name = "MIN"
  323. MIN.Parent = TOPBAR
  324. MIN.BackgroundColor3 = Color3.fromRGB(255, 255, 0)
  325. MIN.BorderColor3 = Color3.fromRGB(0, 0, 0)
  326. MIN.BorderSizePixel = 0
  327. MIN.Position = UDim2.new(0.862374485, 0, -0.0435729921, 0)
  328. MIN.Size = UDim2.new(1, 0, 1, 0)
  329. MIN.SizeConstraint = Enum.SizeConstraint.RelativeYY
  330. MIN.Font = Enum.Font.SourceSans
  331. MIN.Text = "-"
  332. MIN.TextColor3 = Color3.fromRGB(0, 0, 0)
  333. MIN.TextScaled = true
  334. MIN.TextSize = 14.000
  335. MIN.TextWrapped = true
  336.  
  337. -- Scripts:
  338.  
  339. local function AYQV_fake_script() -- Drag.Drag
  340.     local script = Instance.new('LocalScript', Drag)
  341.  
  342.     local mouseStartX = nil
  343.     local mouseStartY = nil
  344.     local moving = false
  345.     local mf = script.Parent.Parent
  346.     local mouse = game.Players.LocalPlayer:GetMouse()
  347.     local startPos = UDim2.new(.6,0,.65,0)
  348.     local uip = game:GetService("UserInputService")
  349.    
  350.     script.Parent.MouseButton1Down:Connect(function()
  351.         mouse = game.Players.LocalPlayer:GetMouse()
  352.         mouseStartX = mouse.X
  353.         mouseStartY = mouse.Y
  354.         moving = true
  355.         while moving do
  356.             mf.Position = startPos + UDim2.new(0,mouse.X - mouseStartX, 0, mouse.Y - mouseStartY)
  357.             wait(.01)
  358.         end
  359.     end)
  360.    
  361.     --[[
  362.     script.Parent.MouseButton1Up:Connect(function()
  363.         moving = false
  364.         startPos = mf.Position
  365.     end)
  366.     ]]
  367.    
  368.     uip.InputEnded:Connect(function(input)
  369.         if input.UserInputType == Enum.UserInputType.MouseButton1 then
  370.             moving = false
  371.             startPos = mf.Position
  372.         end
  373.     end)
  374. end
  375. coroutine.wrap(AYQV_fake_script)()
  376. local function DHMK_fake_script() -- MF.CTRL
  377.     local script = Instance.new('LocalScript', MF)
  378.  
  379.     local CALDERAPOS = CFrame.new(-221, 48, -3327)
  380.     local OUTERCALDERAPOS = CFrame.new(-227, 54, -2941)
  381.     local OLDRUINS = CFrame.new(-2508, 44, -2929)
  382.     local OUTERRUINS = CFrame.new(-2730, 43, -2938)
  383.     local DEEPROOTCANOPY = CFrame.new(2275, 388, -3642)
  384.     local OUTERDEEPROOT = CFrame.new(2138, 26, -1391)
  385.    
  386.    
  387.     local nav = script.Parent.NAV
  388.     local top = script.Parent.TOPBAR
  389.     local con = script.Parent.CONTENT
  390.     local open = true
  391.     local autoDodge = false
  392.     local autoFarm = false
  393.     local fighting = false
  394.     local activeFarm = OUTERCALDERAPOS
  395.    
  396.     local dodgeR = game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Information"):WaitForChild("RemoteFunction")
  397.    
  398.    
  399.     ------------------------------------
  400.     ------------------------------------
  401.     --           GAME LOGIC           --
  402.     ------------------------------------
  403.     ------------------------------------
  404.    
  405.     local function TPTO(cf)
  406.         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = cf
  407.     end
  408.    
  409.     local function decideEnemy()
  410.         local battleID = game.Players.LocalPlayer.Character.FightInProgress.Value
  411.         for i,ename in pairs(enemyOrder) do
  412.             for ii, enemy in pairs(game.workspace.Living:GetChildren())do
  413.                 if enemy.Name == ename and enemy:FindFirstChild("FightInProgress") ~= nil and enemy.FightInProgress.Value == battleID then
  414.                     return enemy
  415.                 end
  416.             end
  417.         end
  418.         return -1
  419.     end
  420.    
  421.     local function FIREPROXIMITY(Obj, Amount, Skip)
  422.         if Obj.ClassName == "ProximityPrompt" then
  423.             Amount = Amount or 1
  424.             local PromptTime = Obj.HoldDuration
  425.             if Skip then
  426.                 Obj.HoldDuration = 0
  427.             end
  428.             for i = 1, Amount do
  429.                 Obj:InputHoldBegin()
  430.                 if not Skip then
  431.                     wait(Obj.HoldDuration)
  432.                 end
  433.                 Obj:InputHoldEnd()
  434.             end
  435.             Obj.HoldDuration = PromptTime
  436.         else
  437.             error("userdata<ProximityPrompt> expected")
  438.         end
  439.     end
  440.    
  441.     local function healUp()
  442.         local char = game.Players.LocalPlayer.Character
  443.         local ogcframe = char.HumanoidRootPart.CFrame
  444.         local doc = game.Workspace.NPCs:WaitForChild("Doctor")
  445.         local doccframe = doc.HumanoidRootPart.CFrame
  446.         local prompt = doc.Head.ProximityPrompt
  447.    
  448.         char.HumanoidRootPart.CFrame = doccframe
  449.         wait(.5)
  450.         FIREPROXIMITY(prompt, 1, true)
  451.         wait(.5)
  452.         local function getOption()
  453.             for i,v in pairs(game.Players.LocalPlayer.PlayerGui.NPCDialogue.BG.Options:GetChildren())do
  454.                 if v:IsA("TextButton") and v.Text == "Yes please!" then
  455.                     return v
  456.                 end
  457.             end
  458.         end
  459.    
  460.         local args = {
  461.             [1] = getOption()
  462.         }
  463.         wait(.2)
  464.         game.Players.LocalPlayer.PlayerGui.NPCDialogue.RemoteEvent:FireServer(unpack(args))
  465.         char.HumanoidRootPart.CFrame = ogcframe
  466.     end
  467.    
  468.     local function handleDodges()
  469.         wait(.01)
  470.         if autoDodge then
  471.             dodgeR:FireServer({true,true},"DodgeMinigame")
  472.             wait(.1)
  473.             dodgeR:FireServer({true,true},"DodgeMinigame")
  474.         end
  475.     end
  476.    
  477.     local function getTurn()
  478.         local enemy = decideEnemy()
  479.         warn("----------------")
  480.         warn(enemy)
  481.         if enemy ~= -1 and enemy:FindFirstChild("FightInProgress") ~= nil then
  482.             local repFight = game.ReplicatedStorage.Fights:FindFirstChild(enemy.FightInProgress.Value)
  483.             warn(repFight.Name)
  484.             if repFight ~= nil then
  485.                 if repFight:FindFirstChild("CurrentTurn") ~= nil and repFight:FindFirstChild("CurrentTurn").Value ~= nil then
  486.                     warn(repFight.CurrentTurn.Value.Name)
  487.                     return repFight.CurrentTurn.Value.Name
  488.                 end
  489.             end
  490.            
  491.         end
  492.        
  493.         return -1
  494.     end
  495.    
  496.     local function handleCalderaFarm() 
  497.         while autoFarm do
  498.            
  499.             if game.Players.LocalPlayer.Character:FindFirstChild("FightInProgress") ~= nil then
  500.                 fighting = true
  501.             else
  502.                 fighting = false
  503.             end
  504.            
  505.             if fighting == false then
  506.                 if game.Players.LocalPlayer.Character.Humanoid.Health < game.Players.LocalPlayer.Character.Humanoid.MaxHealth then
  507.                     healUp()
  508.                     wait(.5)
  509.                 end
  510.                 if (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - activeFarm.Position).Magnitude > 10 then
  511.                     TPTO(activeFarm)
  512.                 end
  513.             end
  514.            
  515.             wait(.5)
  516.            
  517.             if game.Players.LocalPlayer.Character:FindFirstChild("FightInProgress") ~= nil and getTurn() ~= -1 and (getTurn() == game.Players.LocalPlayer.Name or getTurn() == "Darkbeast") then
  518.                
  519.                 local attackType = "Attack"
  520.                 if getTurn() == "Darkbeast" then
  521.                     attackType = "AttackSummoned"
  522.                 end
  523.                
  524.                 fighting = true
  525.                 local enemy = decideEnemy()
  526.                 if game.Players.LocalPlayer.Character:FindFirstChild("FightInProgress") ~= nil then
  527.                     for i,v in pairs(attackOrder)do
  528.                        
  529.                         pcall((function()
  530.                             local attackArgs = {[1] = attackType,[2] = v,[3] = {["Attacking"] = enemy}}
  531.                             local teamArgs = {[1] = game.Players.LocalPlayer.Character.FightInProgress.Value}
  532.    
  533.                             game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Data"):WaitForChild("GetOtherTeam"):InvokeServer(unpack(teamArgs))
  534.                             game:GetService("Players").LocalPlayer.PlayerGui.Combat.CombatHandle.RemoteFunction:InvokeServer(unpack(attackArgs))
  535.    
  536.                             local fistArgs = {[1] = true,[2] = "FistQTE"}
  537.                             game.ReplicatedStorage.Remotes.Information.RemoteFunction:FireServer(unpack(fistArgs))
  538.                         end))
  539.                        
  540.                     end
  541.                 end
  542.             end
  543.    
  544.             wait(.1)
  545.            
  546.         end
  547.     end
  548.    
  549.     game.Players.LocalPlayer.PlayerGui.Combat.ResetOnSpawn = false
  550.     game.Players.LocalPlayer.PlayerGui.Combat.Block:GetPropertyChangedSignal("Visible"):Connect(handleDodges)
  551.    
  552.     ------------------------------------
  553.     ------------------------------------
  554.     --              CTRL              --
  555.     ------------------------------------
  556.     ------------------------------------
  557.    
  558.     local function SWITCHCON(name)
  559.         for i,v in pairs(con:GetChildren())do
  560.             if v.Name ~= name and v:IsA("ScrollingFrame") then
  561.                 v.Visible = false
  562.             else
  563.                 v.Visible = true
  564.             end
  565.         end
  566.     end
  567.    
  568.     top.MIN.Activated:Connect(function()
  569.         if open then
  570.             open = false
  571.             con.Visible = false
  572.             nav.Visible = false
  573.             script.Parent.BackgroundTransparency = 1
  574.         else
  575.             open = true
  576.             con.Visible = true
  577.             nav.Visible = true
  578.             script.Parent.BackgroundTransparency = .25
  579.         end
  580.     end)
  581.    
  582.     top.CLOSE.Activated:Connect(function()
  583.         autoDodge = false
  584.         script.Parent.Parent:Destroy()
  585.     end)
  586.    
  587.     for i,v in pairs(nav:GetChildren())do
  588.         if v:IsA("TextButton") then
  589.             v.Activated:Connect(function()
  590.                 SWITCHCON(v.Name)
  591.             end)
  592.         end
  593.     end
  594.    
  595.     ------------------------------------
  596.     ------------------------------------
  597.     --              TPS               --
  598.     ------------------------------------
  599.     ------------------------------------
  600.    
  601.     con.TPs.Caldera.Activated:Connect(function()
  602.         TPTO(CALDERAPOS)
  603.     end)
  604.    
  605.     con.TPs.DeepCanopy.Activated:Connect(function()
  606.         TPTO(DEEPROOTCANOPY)
  607.     end)
  608.    
  609.     con.TPs.OldRuins.Activated:Connect(function()
  610.         TPTO(OLDRUINS)
  611.     end)
  612.    
  613.     ------------------------------------
  614.     ------------------------------------
  615.     --              AUTOS             --
  616.     ------------------------------------
  617.     ------------------------------------
  618.    
  619.     con.Autos.AutoDoctor.Activated:Connect(healUp)
  620.    
  621.     con.Autos.AutoDodge.Activated:Connect(function()
  622.         if autoDodge and not autoFarm then
  623.             autoDodge = false
  624.             con.Autos.AutoDodge.Text = "Auto Dodge: OFF"
  625.         else
  626.             autoDodge = true
  627.             con.Autos.AutoDodge.Text = "Auto Dodge: ON"
  628.         end
  629.     end)
  630.    
  631.     con.Autos.AutoFarmCaldera.Activated:Connect(function()
  632.         if autoFarm then
  633.             autoFarm = false
  634.             con.Autos.AutoFarmCaldera.Text = "Auto Farm Caldera: OFF"
  635.         else
  636.             autoFarm = true
  637.             autoDodge = true
  638.             activeFarm = OUTERCALDERAPOS
  639.             con.Autos.AutoFarmRuins.Text = "Auto Farm Ruins: OFF"
  640.             con.Autos.AutoFarmCanopy.Text = "Auto Farm Canopy: OFF"
  641.             con.Autos.AutoDodge.Text = "Auto Dodge: ON"
  642.             con.Autos.AutoFarmCaldera.Text = "Auto Farm Caldera: ON"
  643.             handleCalderaFarm()
  644.         end
  645.     end)
  646.    
  647.     con.Autos.AutoFarmRuins.Activated:Connect(function()
  648.         if autoFarm then
  649.             autoFarm = false
  650.             con.Autos.AutoFarmRuins.Text = "Auto Farm Caldera: OFF"
  651.         else
  652.             autoFarm = true
  653.             autoDodge = true
  654.             activeFarm = OUTERRUINS
  655.             con.Autos.AutoFarmRuins.Text = "Auto Farm Caldera: OFF"
  656.             con.Autos.AutoFarmCanopy.Text = "Auto Farm Canopy: OFF"
  657.             con.Autos.AutoDodge.Text = "Auto Dodge: ON"
  658.             con.Autos.AutoFarmRuins.Text = "Auto Farm Ruins: ON"
  659.             handleCalderaFarm()
  660.         end
  661.     end)
  662.    
  663.     con.Autos.AutoFarmCanopy.Activated:Connect(function()
  664.         if autoFarm then
  665.             autoFarm = false
  666.             con.Autos.AutoFarmRuins.Text = "Auto Farm Caldera: OFF"
  667.         else
  668.             autoFarm = true
  669.             autoDodge = true
  670.             activeFarm = OUTERDEEPROOT
  671.             con.Autos.AutoFarmRuins.Text = "Auto Farm Caldera: OFF"
  672.             con.Autos.AutoFarmCanopy.Text = "Auto Farm Canopy: ON"
  673.             con.Autos.AutoDodge.Text = "Auto Dodge: ON"
  674.             con.Autos.AutoFarmRuins.Text = "Auto Farm Ruins: OFF"
  675.             handleCalderaFarm()
  676.         end
  677.     end)
  678.    
  679.    
  680.    
  681.    
  682.    
  683. end
  684. coroutine.wrap(DHMK_fake_script)()
  685.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement