Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
8,447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.61 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local dungeonquest = Instance.new("ScreenGui")
  5. local Main = Instance.new("Frame")
  6. local AutoFarm = Instance.new("TextButton")
  7. local TextButton = Instance.new("TextButton")
  8. local TextButton_2 = Instance.new("TextButton")
  9. local TextButton_3 = Instance.new("TextButton")
  10. local ImageButton = Instance.new("ImageButton")
  11. local ImageButton_2 = Instance.new("ImageButton")
  12. local TextButton_4 = Instance.new("TextButton")
  13. local TextButton_5 = Instance.new("TextButton")
  14. local TextButton_6 = Instance.new("TextButton")
  15. local TextButton_7 = Instance.new("TextButton")
  16. local TextButton_8 = Instance.new("TextButton")
  17. --Properties:
  18. dungeonquest.Name = "dungeonquest"
  19. dungeonquest.Parent = game.CoreGui
  20.  
  21. Main.Name = "Main"
  22. Main.Parent = dungeonquest
  23. Main.BackgroundColor3 = Color3.new(0.145098, 0.145098, 0.145098)
  24. Main.Position = UDim2.new(0.673049629, 0, 0.109693862, 0)
  25. Main.Size = UDim2.new(0, 319, 0, 438)
  26. Main.Style = Enum.FrameStyle.DropShadow
  27.  
  28. AutoFarm.Name = "AutoFarm"
  29. AutoFarm.Parent = Main
  30. AutoFarm.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  31. AutoFarm.BorderSizePixel = 0
  32. AutoFarm.Position = UDim2.new(0.130170271, 0, 0.392302692, 0)
  33. AutoFarm.Size = UDim2.new(0, 223, 0, 50)
  34. AutoFarm.Font = Enum.Font.SourceSans
  35. AutoFarm.Text = "Auto Farm"
  36. AutoFarm.TextColor3 = Color3.new(1, 1, 1)
  37. AutoFarm.TextSize = 34
  38. AutoFarm.MouseButton1Down:connect(function()
  39. _G.WaitTime = 0
  40. ------Map------------
  41. _G.Map = "Samurai Palace"
  42. _G.Mode = "Nightmare"
  43. _G.Hardcore = true
  44. ----AutoSell---------
  45. _G.Autosell = false
  46. _G.DontSellRarities = {"Legendary", "Epic"}
  47. _G.DontSellItems = {"Battle Shout","..."}
  48. ----------------------
  49. local Player = game.Players.LocalPlayer
  50. local ok = 0
  51. local ok1 = -6.5
  52. local ok2 = 0
  53. wait(_G.WaitTime)
  54. local function NoYou()
  55. if game.Workspace:FindFirstChild("dungeon") then
  56. return
  57. end
  58. local A_1 = _G.Map
  59. local A_2 = _G.Mode
  60. local A_3 = 0
  61. local A_4 = _G.Hardcore
  62. local A_5 = true
  63. local A_6 = false
  64. local Event = game:GetService("ReplicatedStorage").remotes.createLobby
  65. game.ReplicatedStorage.remotes.loadPlayerCharacter:FireServer()
  66. wait(1.5)
  67. Event:InvokeServer(A_1, A_2, A_3, A_4, A_5, A_6)
  68. game.ReplicatedStorage.remotes.startDungeon:FireServer()
  69. end
  70. NoYou()
  71. local MainBoss = {
  72. ["Miyamoto Musashi"] = true
  73. }
  74. local HugeBoss = {
  75. ["Ancient Golem Guardian"] = true
  76. }
  77. local MiniBosses = {
  78. ["Demonic Overgrowth"] = true,
  79. ["Elder Dark Mage"] = true,
  80. ["Kolvumar"] = true,
  81. }
  82. local Pirate = {
  83. ["Captain Blackbeard"] = true
  84. }
  85. local Bosses = {
  86. ["Sand Giant"] = true,
  87. ["Spider Queen"] = true,
  88. }
  89. local OverpoweredBosses = {
  90. ["Demonic Pirate Captain"] = true,
  91. ["Beast Master"] = true,
  92. ["Arch-Mage"] = true,
  93. ["The King"] = true,
  94. ["Demonic Overgrowth"] = true,
  95. ["Kolvumar"] = true,
  96. ["Ice Elemental"] = true,
  97. ["Demonic Lord Azrallik"] = true
  98. }
  99. local Underworld = {
  100. ["Demon Warrior"] = true,
  101. ["Dark Mage"] = true,
  102. ["Blood Minions"] = true
  103. }
  104. ---------------------------------
  105. if game.workspace:FindFirstChild("dungeon") then
  106. if _G.Autosell then
  107. local wlt = {}
  108. for i, v in pairs(game.Players.LocalPlayer:WaitForChild("PlayerGui").inventory.mainBackground.innerBackground.leftSideFrame:GetDescendants()) do
  109. if v.Name == "uniqueItemNum" then
  110. wlt[v.Value] = v.Parent.Value
  111. end
  112. end
  113. for i, v in pairs(game.ReplicatedStorage.remotes.reloadInvy:InvokeServer()) do
  114. for c, d in pairs(v) do
  115. local dumb = false
  116. spawn(function()
  117. if #_G.DontSellItems == 0 then dumb = true return end
  118. for a, b in pairs(_G.DontSellItems) do
  119. if b == d.name then
  120. d.dontsell = true
  121. end
  122. end
  123. dumb = true
  124. end)
  125. for a, b in pairs(_G.DontSellRarities) do
  126. if d.rarity == b:lower() then
  127. break
  128. end
  129. if a == #_G.DontSellRarities then
  130. repeat wait() until dumb
  131. local unique = tonumber(c:sub(c:len()-1,c:len()))
  132. local itemtype = c:sub(1,c:len()-2)
  133. if unique == nil then
  134. unique = tonumber(c:sub(c:len(),c:len()))
  135. end
  136. if itemtype:find("_") then
  137. itemtype = itemtype:sub(1,itemtype:len()-1)
  138. end
  139. print(typeof(d.equipped))
  140. if not d.dontsell or not wlt[unique] == itemtype and d.equipped == false then
  141. if string.find(typeof(d.equipped),"table") then
  142. game.ReplicatedStorage.remotes.sellItemEvent:FireServer(itemtype,unique)
  143. end
  144. if d.equipped == false then
  145. game.ReplicatedStorage.remotes.sellItemEvent:FireServer(itemtype,unique)
  146. end
  147. end
  148. end
  149. end
  150. end
  151. end
  152. end
  153. ------------------
  154. local Plist = game.Players.LocalPlayer.PlayerGui
  155. game:GetService("CoreGui").RobloxGui.TopBarContainer.NameHealthContainer:Destroy()
  156. Plist:WaitForChild("playerStatus")
  157. game.Players.LocalPlayer.Character.playerNameplate.Frame.name.Text = "DQ autofarm"
  158. Plist.playerStatus.Frame.xpFrame.xp.Text = "d o g"
  159. Plist.playerStatus.Frame.moneyMain.TextLabel.Text = "ban me now"
  160. Plist.playerStatus.Frame.playerName.Text = "ICEE dq auto farm :)"
  161. Plist.playerStatus.Frame.levelBorder.level.Text = "dog"
  162. if game.Workspace:FindFirstChild("dungeon") then
  163. -----------------------
  164. for _, m in pairs(game.Workspace.dungeon.bossRoom.enemyFolder:GetDescendants()) do
  165. if string.find(m.Name, "The") then
  166. if m.Humanoid.Health < 1 then
  167. wait(2)
  168. game:GetService'TeleportService':Teleport(2414851778)
  169. end
  170. end
  171. end
  172. end
  173. -----------------------
  174. local bossAttack = false
  175.  
  176. workspace.ChildAdded:connect(function(dspell)
  177. if dspell.Name == "rockExplosion" then
  178. bossAttack = true
  179. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(10,5,0)
  180. wait(3)
  181. bossAttack = false
  182. end
  183. end)
  184.  
  185. workspace.ChildAdded:connect(function(dspell)
  186. if dspell.Name == "rockExplosionSmall" then
  187. bossAttack = true
  188. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(14,5,0)
  189. wait(3)
  190. bossAttack = false
  191. end
  192. end)
  193.  
  194. workspace.ChildAdded:connect(function(dspell)
  195. if dspell.Name == "rockshatter" then
  196. bossAttack = true
  197. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(10,5,0)
  198. wait(3)
  199. bossAttack = false
  200. end
  201. end)
  202.  
  203. workspace.ChildAdded:connect(function(dspell)
  204. if dspell.Name == "golemRockClap" then
  205. bossAttack = true
  206. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(15,75,0)
  207. wait(2)
  208. bossAttack = false
  209. end
  210. end)
  211.  
  212. workspace.ChildAdded:connect(function(dspell)
  213. if dspell.Name == "golemRockThrow" then
  214. bossAttack = true
  215. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(15,75,0)
  216. wait(2)
  217. bossAttack = false
  218. end
  219. end)
  220.  
  221. workspace.ChildAdded:connect(function(dspell)
  222. if dspell.Name == "golemRockThrowSmall" then
  223. bossAttack = true
  224. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(10,75,0)
  225. wait(2)
  226. bossAttack = false
  227. end
  228. end)
  229. -----------------------
  230. game:GetService('RunService').Stepped:connect(function()
  231. if noclip then
  232. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  233. end
  234. end)
  235. local plr = game.Players.LocalPlayer
  236. local mouse = plr:GetMouse()
  237. mouse.KeyDown:connect(function(key)
  238. if key == "o" then
  239. noclip = not noclip
  240. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  241. end
  242. end)
  243. --------------->These functions must be outside the loop or it will be creating new functions forever
  244. _G.AutoFarm = true --Outside the loop or it will always be true
  245. while _G.AutoFarm do
  246. game:GetService("ReplicatedStorage").remotes:FindFirstChild('changeStartValue'):FireServer()
  247. wait()
  248. noclip = true
  249. for a, b in pairs(game.Workspace:GetChildren()) do
  250. if b:IsA("Folder") then
  251. for c, d in pairs(b:GetChildren()) do
  252. if d:FindFirstChild("enemyFolder") then
  253. for e, f in pairs(d.enemyFolder:GetChildren()) do
  254. if f:FindFirstChild("HumanoidRootPart") and f:FindFirstChild("Humanoid") then
  255. for index, value in next, workspace:GetDescendants() do
  256. if (value:FindFirstChildOfClass("Humanoid") and value ~= Player.Character) then
  257. if value.Humanoid.Health > 0 then do
  258. if OverpoweredBosses[f.Name] then
  259. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(f.HumanoidRootPart.Position) * CFrame.Angles(math.rad(270), 0, 0) + Vector3.new(0, 22, 0)--higher coordinate
  260. else
  261. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(f.HumanoidRootPart.Position) * CFrame.Angles(math.rad(90), 0, 0) + Vector3.new(0, -6.5, 0)--look up
  262. end
  263. if MainBoss[f.Name] then
  264. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(f.HumanoidRootPart.Position) * CFrame.Angles(math.rad(90), 0, 0) + Vector3.new(0, -25, 0)--look up
  265. end
  266. if Pirate[f.Name] then
  267. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(f.HumanoidRootPart.Position) * CFrame.Angles(math.rad(270), 0, 0) + Vector3.new(0, 16, 0)--look down
  268. end
  269. if Underworld[f.Name] then
  270. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(f.HumanoidRootPart.Position) * CFrame.Angles(math.rad(270), 0, 0) + Vector3.new(0, 7, 0)--look down
  271. end
  272. if Bosses[f.Name] then
  273. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(f.HumanoidRootPart.Position) * CFrame.Angles(math.rad(270), 0, 0) + Vector3.new(0, 6, 0)--look down
  274. end
  275. if MiniBosses[f.Name] then
  276. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(f.HumanoidRootPart.Position) * CFrame.Angles(math.rad(270), 0, 0) + Vector3.new(0, 12, 0)--look down
  277. end
  278. if HugeBoss[f.Name] then
  279. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = f.HumanoidRootPart.CFrame * CFrame.new(0, 21, 21)
  280. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.Angles(0, 0, 0)
  281. elseif bossAttack == true then
  282. _G.AutoFarm = false
  283. wait(3)
  284. _G.AutoFarm = true
  285. end
  286. if game.Players.LocalPlayer.Character:FindFirstChild(game.Players.LocalPlayer.weaponEquipped.Value)then
  287. game.Players.LocalPlayer.Character[game.Players.LocalPlayer.weaponEquipped.Value].swing:FireServer()
  288. else
  289. if game:GetService("Workspace")[game.Players.LocalPlayer.Name]:FindFirstChild("dualRight")then
  290. game:GetService("Workspace")[game.Players.LocalPlayer.Name].dualRight.swing:FireServer()
  291. end
  292. local spells = game.Players.LocalPlayer.Backpack:GetDescendants()
  293. for i, x in pairs(spells) do
  294. if x:IsA('RemoteEvent') then
  295. x:FireServer()
  296. wait()
  297. end
  298. end
  299. end
  300. end
  301. end
  302. end
  303. end
  304. end
  305. end
  306. end
  307. end
  308. end
  309. end
  310. end
  311. end
  312. end)
  313.  
  314.  
  315. TextButton.Parent = Main
  316. TextButton.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  317. TextButton.BorderSizePixel = 0
  318. TextButton.Position = UDim2.new(0.0190697592, 0, 0.00510793738, 0)
  319. TextButton.Size = UDim2.new(0, 298, 0, 34)
  320. TextButton.Font = Enum.Font.SourceSans
  321. TextButton.Text = "Dungeon Quest"
  322. TextButton.TextColor3 = Color3.new(1, 1, 1)
  323. TextButton.TextSize = 34
  324.  
  325. TextButton_2.Parent = Main
  326. TextButton_2.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  327. TextButton_2.BackgroundTransparency = 1
  328. TextButton_2.BorderSizePixel = 0
  329. TextButton_2.Position = UDim2.new(0.236753285, 0, 0.540772974, 0)
  330. TextButton_2.Size = UDim2.new(0, 157, 0, 35)
  331. TextButton_2.Font = Enum.Font.SourceSans
  332. TextButton_2.Text = "Credits:"
  333. TextButton_2.TextColor3 = Color3.new(1, 1, 1)
  334. TextButton_2.TextSize = 34
  335.  
  336. TextButton_3.Parent = Main
  337. TextButton_3.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  338. TextButton_3.BackgroundTransparency = 1
  339. TextButton_3.BorderSizePixel = 0
  340. TextButton_3.Position = UDim2.new(0.0988222286, 0, 0.149357483, 0)
  341. TextButton_3.Size = UDim2.new(0, 253, 0, 65)
  342. TextButton_3.Font = Enum.Font.SourceSans
  343. TextButton_3.Text = "Works with all dungeon execpt Wave Defense Really OverPowered"
  344. TextButton_3.TextColor3 = Color3.new(1, 1, 1)
  345. TextButton_3.TextScaled = true
  346. TextButton_3.TextSize = 34
  347. TextButton_3.TextWrapped = true
  348.  
  349. ImageButton.Parent = Main
  350. ImageButton.BackgroundColor3 = Color3.new(1, 1, 1)
  351. ImageButton.BorderColor3 = Color3.new(0, 0, 0)
  352. ImageButton.Position = UDim2.new(0.0971786827, 0, 0.715981722, 0)
  353. ImageButton.Size = UDim2.new(0, 100, 0, 100)
  354. ImageButton.Image = "rbxassetid://3371949110"
  355.  
  356. ImageButton_2.Parent = Main
  357. ImageButton_2.BackgroundColor3 = Color3.new(1, 1, 1)
  358. ImageButton_2.BorderColor3 = Color3.new(0, 0, 0)
  359. ImageButton_2.Position = UDim2.new(0.576802492, 0, 0.717499971, 0)
  360. ImageButton_2.Size = UDim2.new(0, 100, 0, 100)
  361. ImageButton_2.Image = "rbxassetid://3371905841"
  362.  
  363. TextButton_4.Parent = Main
  364. TextButton_4.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  365. TextButton_4.BackgroundTransparency = 1
  366. TextButton_4.BorderSizePixel = 0
  367. TextButton_4.Position = UDim2.new(0.550232887, 0, 0.657211304, 0)
  368. TextButton_4.Size = UDim2.new(0, 115, 0, 25)
  369. TextButton_4.Font = Enum.Font.SourceSans
  370. TextButton_4.Text = "Roblox Pain"
  371. TextButton_4.TextColor3 = Color3.new(1, 1, 1)
  372. TextButton_4.TextScaled = true
  373. TextButton_4.TextSize = 34
  374. TextButton_4.TextWrapped = true
  375.  
  376. TextButton_5.Parent = Main
  377. TextButton_5.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  378. TextButton_5.BackgroundTransparency = 1
  379. TextButton_5.BorderSizePixel = 0
  380. TextButton_5.Position = UDim2.new(0.0706090331, 0, 0.657211304, 0)
  381. TextButton_5.Size = UDim2.new(0, 115, 0, 25)
  382. TextButton_5.Font = Enum.Font.SourceSans
  383. TextButton_5.Text = "ICEE"
  384. TextButton_5.TextColor3 = Color3.new(1, 1, 1)
  385. TextButton_5.TextScaled = true
  386. TextButton_5.TextSize = 34
  387. TextButton_5.TextWrapped = true
  388.  
  389. TextButton_6.Parent = Main
  390. TextButton_6.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  391. TextButton_6.BorderSizePixel = 0
  392. TextButton_6.Position = UDim2.new(0.00770324841, 0, 0.00510793272, 0)
  393. TextButton_6.Size = UDim2.new(0, 12, 0, 417)
  394. TextButton_6.Font = Enum.Font.SourceSans
  395. TextButton_6.Text = ""
  396. TextButton_6.TextColor3 = Color3.new(1, 1, 1)
  397. TextButton_6.TextSize = 34
  398.  
  399. TextButton_7.Parent = Main
  400. TextButton_7.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  401. TextButton_7.BorderSizePixel = 0
  402. TextButton_7.Position = UDim2.new(0.961377561, 0, 0.00716661382, 0)
  403. TextButton_7.Size = UDim2.new(0, 12, 0, 416)
  404. TextButton_7.Font = Enum.Font.SourceSans
  405. TextButton_7.Text = ""
  406. TextButton_7.TextColor3 = Color3.new(1, 1, 1)
  407. TextButton_7.TextSize = 34
  408.  
  409. TextButton_8.Parent = Main
  410. TextButton_8.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  411. TextButton_8.BorderSizePixel = 0
  412. TextButton_8.Position = UDim2.new(0.00940438733, 0, 0.983053267, 0)
  413. TextButton_8.Size = UDim2.new(0, 297, 0, 12)
  414. TextButton_8.Font = Enum.Font.SourceSans
  415. TextButton_8.Text = ""
  416. TextButton_8.TextColor3 = Color3.new(1, 1, 1)
  417. TextButton_8.TextSize = 34
  418. -- Scripts:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement