Advertisement
BjeffeHund

Dungoen Quest Autofarm

Jan 26th, 2020
103,471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.63 KB | None | 0 0
  1. --[[
  2.  
  3. I am reworking this script, so i suggest you join my discord server where i will post the new and reworked script once im done with it.
  4. Discord server: https://discord.gg/BZjz2gw
  5.  
  6. ]]--
  7.  
  8.  
  9.  
  10.  
  11.  
  12. local hom = "cool"
  13.  
  14. local dun = _G.shit.moarshit.CustomDungeon
  15. local diff = _G.shit.Difficulty
  16. local hard = _G.shit.Hardcore
  17. local remotes = game:service('ReplicatedStorage'):WaitForChild("remotes")
  18. local startergui = game:GetService("StarterGui")
  19. startergui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
  20. startergui:SetCore("TopbarEnabled", false)
  21. local nosee = coroutine.wrap(function()
  22. while wait() do
  23. if game.Players.LocalPlayer.PlayerGui:FindFirstChild("playerStatus") and game.workspace:FindFirstChild(game.Players.LocalPlayer.Name) and _G.shit.Name_Protect then
  24. if game.workspace[game.Players.LocalPlayer.Name]:FindFirstChild("playerNameplate") then
  25. game.workspace[game.Players.LocalPlayer.Name].playerNameplate:Destroy()
  26. end
  27. local frame = game.Players.LocalPlayer.PlayerGui.playerStatus.Frame
  28. frame.playerName.Text = _G.shit.namesettings.CustomName
  29. frame.levelBorder.level.Text = _G.shit.namesettings.CustomLevel
  30. frame.xpFrame.xp.Text = _G.shit.namesettings.CustomExp
  31. frame.healthFrame.health.Text = _G.shit.namesettings.CustomHp
  32. frame.moneyMain.TextLabel.Text = _G.shit.namesettings.CustomMoney
  33. frame.portraitBorder.portrait.Image = _G.shit.namesettings.CustomImage
  34. end
  35. end
  36. end)
  37. nosee()
  38. if game.PlaceId == 2414851778 then
  39. remotes.loadPlayerCharacter:FireServer()
  40. repeat wait() until game.Players.LocalPlayer.PlayerGui:FindFirstChild("inventory") ~= nil
  41. repeat wait() until game.Players.LocalPlayer.PlayerGui.inventory.mainBackground.innerBackground.rightSideFrame.ScrollingFrame:FindFirstChild("UIGridLayout")
  42. repeat wait() until game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  43. if _G.idk.GetDaily then
  44. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").dailyRewardTouchPart.CFrame
  45. end
  46. if _G.idk.autopoints.Enabled then
  47. local skillpoints = string.match(game:GetService("Players").LocalPlayer.PlayerGui.inventory.mainBackground.innerBackground.leftSideStats.skillPoints.Text, "%d+")
  48. for i=1,tonumber(skillpoints) do
  49. game:GetService("ReplicatedStorage").remotes.spendSkillPoint:FireServer(_G.idk.autopoints.Point)
  50. end
  51. end
  52. end
  53. if game.PlaceId == 2414851778 and _G.shit.Enabled then
  54. remotes.loadPlayerCharacter:FireServer()
  55. repeat wait() until game.Players.LocalPlayer.PlayerGui:FindFirstChild("inventory") ~= nil
  56. repeat wait() until game.Players.LocalPlayer.PlayerGui.inventory.mainBackground.innerBackground.rightSideFrame.ScrollingFrame:FindFirstChild("UIGridLayout")
  57. common = "0.596078, 0.596078, 0.596078"
  58. uncommon = "0.356863, 0.760784, 0.313726"
  59. rare = "0.294118, 0.301961, 0.764706"
  60. epic = "0.572549, 0.27451, 0.623529"
  61. legendary = "0.956863, 0.603922, 0.0352941"
  62. local sell_wep = {}
  63. local sell_chest = {}
  64. local sell_helmet = {}
  65. local sell_ability = {}
  66. local val1 = game.Players.LocalPlayer.PlayerGui.inventory.mainBackground.innerBackground.leftSideFrame.qAbility.itemType.uniqueItemNum.Value
  67. local val2 = game.Players.LocalPlayer.PlayerGui.inventory.mainBackground.innerBackground.leftSideFrame.eAbility.itemType.uniqueItemNum.Value
  68. for i,v in pairs(game.Players.LocalPlayer.PlayerGui.inventory.mainBackground.innerBackground.rightSideFrame.ScrollingFrame:GetChildren()) do
  69. if v:IsA("ImageLabel") then
  70. if _G.test.Common and tostring(v.ImageColor3) == common and v.itemType.uniqueItemNum.Value ~= val1 and val2 then
  71. if v.itemType.Value == "weapon" then
  72. table.insert(sell_wep, v.itemType.uniqueItemNum.Value)
  73. end
  74. if v.itemType.Value == "chest" then
  75. table.insert(sell_chest, v.itemType.uniqueItemNum.Value)
  76. end
  77. if v.itemType.Value == "helmet" then
  78. table.insert(sell_helmet, v.itemType.uniqueItemNum.Value)
  79. end
  80. end
  81. if _G.test.Uncommon and tostring(v.ImageColor3) == uncommon and v.itemType.uniqueItemNum.Value ~= val1 and val2 then
  82. if v.itemType.Value == "weapon" then
  83. table.insert(sell_wep, v.itemType.uniqueItemNum.Value)
  84. end
  85. if v.itemType.Value == "chest" then
  86. table.insert(sell_chest, v.itemType.uniqueItemNum.Value)
  87. end
  88. if v.itemType.Value == "helmet" then
  89. table.insert(sell_helmet, v.itemType.uniqueItemNum.Value)
  90. end
  91. end
  92. if _G.test.Rare and tostring(v.ImageColor3) == rare and v.itemType.uniqueItemNum.Value ~= val1 and val2 then
  93. if v.itemType.Value == "weapon" then
  94. table.insert(sell_wep, v.itemType.uniqueItemNum.Value)
  95. end
  96. if v.itemType.Value == "chest" then
  97. table.insert(sell_chest, v.itemType.uniqueItemNum.Value)
  98. end
  99. if v.itemType.Value == "helmet" then
  100. table.insert(sell_helmet, v.itemType.uniqueItemNum.Value)
  101. end
  102. end
  103. if _G.test.Epic and tostring(v.ImageColor3) == epic and v.itemType.uniqueItemNum.Value ~= val1 and val2 then
  104. if v.itemType.Value == "weapon" then
  105. table.insert(sell_wep, v.itemType.uniqueItemNum.Value)
  106. end
  107. if v.itemType.Value == "chest" then
  108. table.insert(sell_chest, v.itemType.uniqueItemNum.Value)
  109. end
  110. if v.itemType.Value == "helmet" then
  111. table.insert(sell_helmet, v.itemType.uniqueItemNum.Value)
  112. end
  113. if v.itemType.Value == "ability" then
  114. table.insert(sell_ability, v.itemType.uniqueItemNum.Value)
  115. end
  116. end
  117. if _G.test.Legendary and tostring(v.ImageColor3) == legendary and v.itemType.uniqueItemNum.Value ~= val1 and val2 then
  118. if v.itemType.Value == "weapon" then
  119. table.insert(sell_wep, v.itemType.uniqueItemNum.Value)
  120. end
  121. if v.itemType.Value == "chest" then
  122. table.insert(sell_chest, v.itemType.uniqueItemNum.Value)
  123. end
  124. if v.itemType.Value == "helmet" then
  125. table.insert(sell_helmet, v.itemType.uniqueItemNum.Value)
  126. end
  127. end
  128. end
  129. end
  130. game:GetService("ReplicatedStorage").remotes.sellItemEvent:FireServer({["ability"] = sell_ability, ["helmet"] = sell_helmet, ["chest"] = sell_chest, ["weapon"] = sell_wep})
  131. if not _G.shit.AutoDungeon and _G.shit.moarshit.Enabled then
  132. remotes.createLobby:InvokeServer(dun, diff, 0, hard, true, false)
  133. elseif _G.shit.AutoDungeon and _G.shit.Enabled then
  134. remotes.createLobby:InvokeServer("Orbital Outpost", "Nightmare", 0, hard, true, false)
  135. remotes.createLobby:InvokeServer("Orbital Outpost", "Insane", 0, hard, true, false)
  136. remotes.createLobby:InvokeServer("Steampunk Sewers", "Nightmare", 0, hard, true, false)
  137. remotes.createLobby:InvokeServer("Steampunk Sewers", "Insane", 0, hard, true, false)
  138. remotes.createLobby:InvokeServer("Ghastly Harbor", "Nightmare", 0, true, false, false)
  139. remotes.createLobby:InvokeServer("Ghastly Harbor", "Insane", 0, true, false, false)
  140. remotes.createLobby:InvokeServer("The Canals", "Nightmare", 0, hard, true, false)
  141. remotes.createLobby:InvokeServer("The Canals", "Insane", 0, hard, true, false)
  142. remotes.createLobby:InvokeServer("Samurai Palace", "Nightmare", 0, hard, true, false)
  143. remotes.createLobby:InvokeServer("Samurai Palace", "Insane", 0, hard, true, false)
  144. remotes.createLobby:InvokeServer("The Underworld", "Nightmare", 0, hard, true, false)
  145. remotes.createLobby:InvokeServer("The Underworld", "Insane", 0, hard, true, false)
  146. remotes.createLobby:InvokeServer("King's Castle", "Nightmare", 0, hard, true, false)
  147. remotes.createLobby:InvokeServer("King's Castle", "Insane", 0, hard, true, false)
  148. remotes.createLobby:InvokeServer("Pirate Island", "Nightmare", 0, hard, true, false)
  149. remotes.createLobby:InvokeServer("Pirate Island", "Insane", 0, hard, true, false)
  150. remotes.createLobby:InvokeServer("Winter Outpost", "Nightmare", 0, hard, true, false)
  151. remotes.createLobby:InvokeServer("Winter Outpost", "Insane", 0, hard, true, false)
  152. remotes.createLobby:InvokeServer("Winter Outpost", "Hard", 0, hard, true, false)
  153. remotes.createLobby:InvokeServer("Winter Outpost", "Medium", 0, hard, true, false)
  154. remotes.createLobby:InvokeServer("Winter Outpost", "Easy", 0, hard, true, false)
  155. remotes.createLobby:InvokeServer("Desert Temple", "Nightmare", 0, hard, true, false)
  156. remotes.createLobby:InvokeServer("Desert Temple", "Insane", 0, hard, true, false)
  157. remotes.createLobby:InvokeServer("Desert Temple", "Hard", 0, hard, true, false)
  158. remotes.createLobby:InvokeServer("Desert Temple", "Medium", 0, hard, true, false)
  159. remotes.createLobby:InvokeServer("Desert Temple", "Easy", 0, hard, true, false)
  160. end
  161. remotes.startDungeon:FireServer()
  162. end
  163. if game.PlaceId ~= 2414851778 and _G.shit.Enabled then
  164. repeat wait() until game.Players.LocalPlayer.Character ~= nil
  165. wait(1.5)
  166. local attack = coroutine.wrap(function()
  167. remotes.equipItem:InvokeServer(unpack{"ability", game.Players.LocalPlayer.PlayerGui.inventory.mainBackground.innerBackground.leftSideFrame.qAbility.itemType.uniqueItemNum.Value, "w"})
  168. remotes.equipItem:InvokeServer(unpack{"ability", game.Players.LocalPlayer.PlayerGui.inventory.mainBackground.innerBackground.leftSideFrame.eAbility.itemType.uniqueItemNum.Value, "w"})
  169. while wait() do
  170. game:GetService("Players").LocalPlayer.PlayerGui.alertBox.Frame.Visible = false
  171. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  172. if v:IsA("Tool") then
  173. v:FindFirstChildWhichIsA("RemoteEvent"):FireServer()
  174. end
  175. end
  176. end
  177. end)
  178. attack()
  179. repeat wait() until game.Players.LocalPlayer.PlayerGui:FindFirstChild("inventory") ~= nil
  180. remotes.changeStartValue:FireServer()
  181. local fuckoff = coroutine.wrap(function()
  182. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  183. if string.find(v.Name:lower(), "leg") or v.Name == "LowerTorso" then
  184. v:Destroy()
  185. end
  186. end
  187. end)
  188. fuckoff()
  189. game:GetService('RunService').Stepped:connect(function()
  190. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  191. end)
  192. local ok = 28
  193. local ok1 = 0
  194. local ok2 = 0
  195. if game.PlaceId == 4628698373 then
  196. while wait() do
  197. local hum = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  198. for i,v in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  199. if v:FindFirstChild("enemyFolder") then
  200. for i,x in pairs(v.enemyFolder:GetChildren()) do
  201. if x:FindFirstChild("HumanoidRootPart") and x:FindFirstChild("Humanoid") then
  202. --if v:FindFirstChild("enemyFolder"):FindFirstChild("Electric Tower") then
  203. --if v:FindFirstChild("enemyFolder"):FindFirstChild("Electric Tower"):FindFirstChild("HumanoidRootPart") then
  204. --hum.CFrame = v:FindFirstChild("enemyFolder"):FindFirstChild("Electric Tower").HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  205. --end
  206. --else
  207. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  208. x.Humanoid.Health = 0
  209. end
  210. end
  211. end
  212. end
  213. end
  214. end
  215. if game.PlaceId == 4113459044 then
  216. game.workspace.ChildAdded:connect(function(attack)
  217. if attack.Name == "rangeMobShot" then
  218. ok1 = 40
  219. wait(2)
  220. ok1 = 0
  221. end
  222. end)
  223. while wait() do
  224. local hum = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  225. for i,v in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  226. if v:FindFirstChild("enemyFolder") then
  227. for i,x in pairs(v.enemyFolder:GetChildren()) do
  228. if x:FindFirstChild("HumanoidRootPart") and x:FindFirstChild("Humanoid") and x:FindFirstChild("enemyNameplate") then
  229. if x.Name == "Spinner Bot" or x.Name == "Hammer Bot" then
  230. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  231. x.Humanoid.Health = 0
  232. end
  233. if x:FindFirstChildWhichIsA("Accessory") then
  234. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  235. x.Humanoid.Health = 0
  236. elseif x.Name == "Cyclops Siege Bot" or x.Name == "Cannon Blaster 2000" then
  237. wait(1)
  238. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  239. end
  240. end
  241. end
  242. end
  243. end
  244. end
  245. end
  246. if game.placeId == 3737465474 then
  247. game.workspace.ChildAdded:connect(function(attack)
  248. if attack.Name == "riflemanShot" then
  249. ok1 = 30
  250. ok = 108
  251. wait(2)
  252. ok1 = 0
  253. ok = 28
  254. end
  255. end)
  256. while wait() do
  257. for i,v in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  258. --if not v:FindFirstChild("barrier") then
  259. local hum = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  260. for i,z in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  261. if z:FindFirstChild("enemyFolder") then
  262. for i,x in pairs(z.enemyFolder:GetChildren()) do
  263. if x:IsA("Model") and x:FindFirstChild("HumanoidRootPart") and x:FindFirstChild("Humanoid") and x:FindFirstChild("enemyNameplate") then
  264. --if x:FindFirstChildWhichIsA("Accessory") then
  265. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  266. --elseif x.Name == "The Kraken" or x.Name == "Sea Serpent" or x.Name == "Cannon Crab" then
  267. --wait(1)
  268. --hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  269. --end
  270. end
  271. end
  272. end
  273. end
  274. end
  275. --end
  276. end
  277. end
  278. if game.placeId == 3488584454 then
  279. while wait() do
  280. local hum = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  281. for i,v in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  282. if v:FindFirstChild("enemyFolder") then
  283. for i,x in pairs(v.enemyFolder:GetChildren()) do
  284. if x:FindFirstChild("HumanoidRootPart") and x:FindFirstChild("Humanoid") and x:FindFirstChild("enemyNameplate") then
  285. if x:FindFirstChildWhichIsA("Accessory") then
  286. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  287. x.Humanoid.Health = 0
  288. end
  289. end
  290. end
  291. end
  292. end
  293. end
  294. end
  295. if game.placeId == 3277965370 then
  296. while wait() do
  297. for i,v in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  298. --if not v:FindFirstChild("barrier") then
  299. local hum = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  300. for i,z in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  301. if z:FindFirstChild("enemyFolder") then
  302. for i,x in pairs(z.enemyFolder:GetChildren()) do
  303. if x:IsA("Model") and x:FindFirstChild("HumanoidRootPart") and x:FindFirstChild("Humanoid") and x:FindFirstChild("enemyNameplate") then
  304. if x:FindFirstChildWhichIsA("Accessory") then
  305. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  306. x.Humanoid.Health = 0
  307. elseif x.Name == "Ancient Golem Guardian" then
  308. wait(1)
  309. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  310. end
  311. end
  312. end
  313. end
  314. end
  315. end
  316. --end
  317. end
  318. end
  319. if game.placeId == 3119903031 then
  320. while wait() do
  321. for i,v in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  322. --if not v:FindFirstChild("barrier") then
  323. local hum = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  324. for i,z in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  325. if z:FindFirstChild("enemyFolder") then
  326. for i,x in pairs(z.enemyFolder:GetChildren()) do
  327. if x:IsA("Model") and x:FindFirstChild("HumanoidRootPart") and x:FindFirstChild("Humanoid") and x:FindFirstChild("enemyNameplate") then
  328. if x:FindFirstChildWhichIsA("Accessory") then
  329. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  330. x.Humanoid.Health = 0
  331. elseif x.Name == "Demonic Overgrowth" or x.Name == "Kolvumar" or x.Name == "Demon Lord Azrallik" then
  332. wait(1)
  333. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  334. end
  335. end
  336. end
  337. end
  338. end
  339. end
  340. --end
  341. end
  342. end
  343. --save
  344. if game.placeId == 3041739550 then
  345. while wait() do
  346. for i,v in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  347. local hum = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  348. for i,z in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  349. if z:FindFirstChild("enemyFolder") then
  350. for i,x in pairs(z.enemyFolder:GetChildren()) do
  351. if x:IsA("Model") and x:FindFirstChild("HumanoidRootPart") and x:FindFirstChild("Humanoid") then
  352. if x:FindFirstChildWhichIsA("Accessory") then
  353. if x:FindFirstChildWhichIsA("Accessory"):FindFirstChildWhichIsA("Script") then
  354. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  355. x.Humanoid.Health = 0
  356. elseif x.Name == "Hitman" or x.Name == "Elementalist" then
  357. wait(1)
  358. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  359. end
  360. end
  361. end
  362. end
  363. end
  364. end
  365. end
  366. end
  367. end
  368. if game.placeId == 2988891534 then
  369. local squigga = 300
  370. game.workspace.ChildAdded:connect(function(attack)
  371. print(attack)
  372. if attack.Name == "gank" or attack.Name == "aoeSwipe" then
  373. warn("attack by boss, dodging")
  374. ok = 50
  375. wait(2)
  376. ok = 20
  377. elseif attack.Name == "spiritStrike" then
  378. warn("Spirit")
  379. ok = 100
  380. ok1 = math.random(10, 100)
  381. wait(1.2)
  382. ok = 20
  383. ok1 = 0
  384. end
  385. end)
  386. while wait() do
  387. for i,v in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  388. local hum = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  389. for i,z in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  390. if z:FindFirstChild("enemyFolder") then
  391. for i,x in pairs(z.enemyFolder:GetChildren()) do
  392. if x:IsA("Model") and x:FindFirstChild("HumanoidRootPart") and x:FindFirstChild("Humanoid") then
  393. if x:FindFirstChildWhichIsA("Accessory") then
  394. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(squigga,0,0) + Vector3.new(ok1,ok,ok2)
  395. x.Humanoid.Health = 0
  396. elseif x.Name == "Spider Queen" then
  397. wait(1)
  398. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  399. elseif x.Name == "Demonic Pirate Captain" then
  400. squigga = 300
  401. ok = 20
  402. end
  403. end
  404. end
  405. end
  406. end
  407. end
  408. end
  409. end
  410. if game.placeId == 2743806150 then
  411. while wait() do
  412. for i,v in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  413. local hum = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  414. for i,z in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  415. if z:FindFirstChild("enemyFolder") then
  416. for i,x in pairs(z.enemyFolder:GetChildren()) do
  417. if x:IsA("Model") and x:FindFirstChild("HumanoidRootPart") and x:FindFirstChild("Humanoid") then
  418. if x:FindFirstChildWhichIsA("Accessory") then
  419. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  420. x.Humanoid.Health = 0
  421. elseif x.Name == "Ice Elemental" then
  422. wait(1)
  423. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  424. end
  425. end
  426. end
  427. end
  428. end
  429. end
  430. end
  431. end
  432. if game.placeId == 2606294912 then
  433. while wait() do
  434. for i,v in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  435. local hum = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  436. for i,z in pairs(game:GetService("Workspace").dungeon:GetChildren()) do
  437. if z:FindFirstChild("enemyFolder") then
  438. for i,x in pairs(z.enemyFolder:GetChildren()) do
  439. if x:IsA("Model") and x:FindFirstChild("HumanoidRootPart") and x:FindFirstChild("Humanoid") then
  440. hum.CFrame = x.HumanoidRootPart.CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(ok1,ok,ok2)
  441. x.Humanoid.Health = 0
  442. end
  443. end
  444. end
  445. end
  446. end
  447. end
  448. end
  449. end
  450. if _G.shit.Enabled == false and _G.Raid.Enabled then
  451. local what = 0
  452. local ok = -400
  453. local ok1 = 0
  454. local ok2 = 3
  455. local math = math.random(500, 1000)
  456. local remotes = game:service('ReplicatedStorage'):WaitForChild("remotes")
  457. if game.PlaceId == 2414851778 then
  458. remotes.loadPlayerCharacter:FireServer()
  459. repeat wait() until game.Players.LocalPlayer.PlayerGui:FindFirstChild("inventory") ~= nil
  460. local enab = _G.Raid.Enabled
  461. local auto = _G.Raid.Auto
  462. local key = _G.Raid.Tier
  463. if enab then
  464. if auto then
  465. key = 0
  466. wait(2)
  467. for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.inventory.mainBackground.innerBackground.keysFrameBorder.keysFrameInner.ScrollingFrame:GetChildren()) do
  468. if v.Name == "keyFrame" then
  469. key = key+1
  470. end
  471. end
  472. wait(2)
  473. elseif auto == false then
  474. key = key
  475. end
  476. print("Enabled = " .. tostring(enab))
  477. print("Auto = " .. tostring(auto))
  478. print("key = " .. key)
  479. remotes.createBossLobby:InvokeServer(key, true, 0)
  480. remotes.startDungeon:FireServer()
  481. remotes.startBossRaid:FireServer()
  482. end
  483. end
  484. if game.PlaceId ~= 2414851778 and _G.Raid.Enabled then
  485. prenis = false
  486. local wait_time = _G.Raid.wait_time
  487. repeat wait() until game.Players.LocalPlayer.PlayerGui:FindFirstChild("inventory") ~= nil
  488. local spellidq = game.Players.LocalPlayer.PlayerGui.inventory.mainBackground.innerBackground.leftSideFrame.qAbility.itemType.uniqueItemNum.Value
  489. game.ReplicatedStorage.remotes.equipItem:InvokeServer(unpack{"ability", spellidq, "f"})
  490. game:GetService('RunService').Stepped:connect(function()
  491. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  492. if not _G.atc then
  493. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  494. if v:IsA("Tool") then
  495. v:FindFirstChildWhichIsA("RemoteEvent"):FireServer()
  496. end
  497. end
  498. end
  499. end)
  500. wait(wait_time)
  501. remotes.readyUp:FireServer()
  502. local test = 0
  503. workspace.ChildAdded:connect(function(attack)
  504. for i,z in pairs(game.workspace.enemies:GetChildren()) do
  505. repeat wait() until z ~= nil
  506. if z.Name == 'Gilded Dragon' then
  507. test = -300
  508. elseif z.Name == 'Earth Goldem' then
  509. test = -300
  510. end
  511. if z ~= nil then --ik this is bad coding but im noth botherd enoughh 2 make it work better :weary:
  512. if attack.Name == "secondBossHorizontalBeam" and z.Name == 'Golden Golem' then
  513. test = -300
  514. ok2 = -20
  515. ok = 0
  516. wait(5)
  517. test = -300
  518. ok2 = -20
  519. ok = 0
  520. elseif attack.Name == "secondBossShootPlayer" and z.Name == 'Golden Golem' then
  521. warn("we be getting shot at lOl (secondBossShootPlayer Goldem Golem)")
  522. _G.atc = true
  523. test = 300
  524. ok1 = -30
  525. ok = 0
  526. wait(3)
  527. _G.atc = false
  528. test = -300
  529. ok1 = 0
  530. ok2 = -20
  531. ok = 0
  532. elseif attack.Name == "bossHorizontalBeam" and z.Name == 'Gilded Dragon' then
  533. test = -300
  534. ok2 = -20
  535. ok = 0
  536. wait(500)
  537. test = -300
  538. ok2 = 0
  539. ok = 0
  540. elseif not _G.sbs and attack.Name == "firstBossShootPlayer" and z.Name == 'Earth Golem' then
  541. warn("SBS in Progress lol skiDDo")
  542. _G.atc = true
  543. _G.rand = true
  544. _G.sbs = true
  545. test = -300
  546. ok2 = -20
  547. ok = 400
  548. wait(1.5)
  549. _G.sbs = false
  550. _G.rand = false
  551. _G.atc = false
  552. test = -300
  553. ok2 = -20
  554. ok = 0
  555. elseif not _G.rand and attack.Name == "bossRandomStrike" and z.Name == 'Earth Golem' then
  556. warn("Random strike for earth golem")
  557. _G.atc = true
  558. _G.sbs = true
  559. _G.rand = true
  560. test = -300
  561. ok2 = -20
  562. ok = 400
  563. wait(2)
  564. _G.rand = false
  565. _G.sbs = false
  566. _G.atc = false
  567. test = -300
  568. ok2 = -20
  569. ok = 0
  570. ok1 = 0
  571. elseif attack.Name == "secondBossShootPlayer" and z.Name == 'Ancient Stone Guardian' then
  572. warn("SBS in progress lol")
  573. _G.atc = true
  574. test = 300
  575. ok2 = 20
  576. ok1 = -40
  577. ok = 0
  578. wait(1)
  579. _G.atc = false
  580. test = 300
  581. ok = 0
  582. ok1 = 0
  583. elseif not _G.rando and attack.Name == "bossRandomStrike" and z.Name == 'Fusion Goliath' then
  584. warn("THis shit hella annoying, RandomStrike")
  585. _G.rando = true
  586. _G.Beam = true
  587. _G.atc = true
  588. ok = math
  589. wait(2.3)
  590. _G.atc = false
  591. _G.rando = false
  592. _G.Beam = false
  593. ok = 0
  594. elseif not _G.Beam and attack.name == "bossCannonBeam" and z.Name == 'Fusion Goliath' then
  595. _G.rando = true
  596. _G.atc = true
  597. warn("CannonBeam bruv")
  598. ok = math
  599. wait(2.3)
  600. _G.rando = false
  601. _G.atc = false
  602. ok = 0
  603. elseif not _G.orb and attack.Name == "secondBossOrbShot" and z.Name == 'Robot Gladiator' then
  604. warn("secondBossOrbShot lmao")
  605. prenis = true
  606. _G.orb = true
  607. _G.ZigZag = true
  608. _G.BossPunch = true
  609. _G.atc = true
  610. ok = -300
  611. wait(1.5)
  612. _G.orb = false
  613. _G.ZigZag = false
  614. _G.BossPunch = false
  615. _G.atc = false
  616. ok = 25
  617. ok1 = -15
  618. elseif not _G.pull and attack.Name == "pullPlayerPart" and z.Name == 'Robot Gladiator' then
  619. warn("ay yo stop pulling my dick")
  620. _G.pull = true
  621. _G.orb = true
  622. _G.atc = true
  623. ok = -700
  624. wait(1)
  625. _G.atc = false
  626. _G.pull = false
  627. _G.orb = false
  628. ok = 25
  629. ok1 = -15
  630. elseif not _G.ZigZag and attack.Name == "secondBossZigZag" and z.Name == 'Robot Gladiator' then
  631. warn("ZigZag bruv")
  632. _G.orb = true
  633. _G.ZigZag = true
  634. _G.atc = true
  635. ok = -500
  636. wait(3)
  637. _G.ZigZag = false
  638. _G.orb = false
  639. _G.atc = false
  640. ok = 25
  641. ok1 = -15
  642. elseif not _G.BossPunch and attack.Name == 'secondBossPunchHorizontalBeam' and z.Name == 'Robot Gladiator' then
  643. _G.orb = true
  644. _G.BossPunch = true
  645. _G.atc = true
  646. ok = -800
  647. wait(2)
  648. _G.orb = false
  649. _G.BossPunch = true
  650. _G.atc = false
  651. ok = 25
  652. ok1 = -15
  653. end
  654. end
  655. end
  656. end)
  657. while true do
  658. game:GetService("RunService").Heartbeat:Wait()
  659. repeat wait() until game.Players.LocalPlayer.Character ~= nil
  660. if game.Players.LocalPlayer.Character ~= nil then
  661. for i,v in pairs(game.Workspace.enemies:GetChildren()) do
  662. if v:FindFirstChild("HumanoidRootPart") then
  663. if v.Name ~= "Stone Warrior" then
  664. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v:FindFirstChild("HumanoidRootPart").CFrame * CFrame.fromOrientation(test,0,0) + Vector3.new(ok,ok2,ok1)
  665. if prenis then
  666. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(0,v.HumanoidRootPart.Position.Y,0)))
  667. end
  668. for c,d in pairs(game.Workspace:GetChildren()) do
  669. if d.Name == "Dragon Orb" then
  670. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = d:FindFirstChild("HumanoidRootPart").CFrame * CFrame.fromOrientation(300,0,0) + Vector3.new(0,33,0)
  671. end
  672. end
  673. end
  674. end
  675. end
  676. end
  677. end
  678. end
  679. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement