KoxMati

DQ auto farm only Orbital

Jan 31st, 2020
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. --if ur not using orbs of desctruction, change ok1 to 20 and degree to -1.6
  2. --if ur using a long distance spell then change degree to -1.6
  3. --if ur using a short distance spell then change ok1 to 20 and degree to -1.6
  4. --if ur so strong and ur confident that u will kill the mobs before they hit u then change autostartend to false and autostartbegin to true
  5. _G.Key = "Nigg"
  6. _G.Map = "Orbital Outpost"
  7. _G.Mode = "Nightmare"
  8. _G.Hardcore = true
  9. _G.Private = true
  10. _G.WaveDefense = false
  11. _G.WAIT = 2 --the time to wait before the autofarm starts u might need to change to longer if ur gonna put in autoexe
  12.  
  13.  
  14. local noclip = false
  15. local ok = 0
  16. local ok1 = 40
  17. local ok2 = 0
  18. local degree = 3.1
  19. local autostartend = true
  20. local autostartbegin = false
  21. local death = false
  22. wait(_G.WAIT)
  23. --Function
  24. --Function
  25. local function EnemyTele(instance)
  26. for i,v in pairs(instance:GetChildren()) do
  27. lowername = string.lower(v.Name)
  28. if string.find(lowername, "enemyfolder") then
  29. for i,x in pairs(v:GetChildren()) do
  30. if x:FindFirstChild("HumanoidRootPart") then
  31. if x.Name == "THEBESTASIAN" then
  32. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = x.HumanoidRootPart.CFrame * CFrame.new(0, 21, 21)
  33. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.Angles(0, 0, 0)
  34. elseif x.Name ~= "THEBESTASIAN" then
  35. x.HumanoidRootPart.Anchored = true
  36. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = x.HumanoidRootPart.CFrame * CFrame.new(ok, ok1, ok2)
  37. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.Angles(degree, 0, 0)
  38. if x.Name == "Lord Varosh" and autostartend == true then
  39. game.ReplicatedStorage.remotes.changeStartValue:FireServer()
  40. ok = 0
  41. ok2 = 0
  42. end
  43. if x.Name == "Tesla Master" then
  44. ok = 0
  45. ok2 = 0
  46. end
  47. end
  48. end
  49. end
  50.  
  51. end
  52. EnemyTele(v)
  53. end
  54. end
  55. local function touching()
  56. game.Players.LocalPlayer.Character.LeftFoot.Touched:Connect(function(hit)
  57. if hit.Name == "hitBox" or hit.Name == "precast" or hit.Name == "PrimaryPart" then
  58. ok = math.random(-17,17)
  59. ok2 = math.random(-17,17)
  60. end
  61. end)
  62. game.Players.LocalPlayer.Character.RightFoot.Touched:Connect(function(hit)
  63. if hit.Name == "hitBox" or hit.Name == "precast" or hit.Name == "PrimaryPart" then
  64. ok = math.random(-17,17)
  65. ok2 = math.random(-17,17)
  66. end
  67. end)
  68. end
  69. --Other
  70. local SugDezNuts = {"Nigg", "wowow"}
  71.  
  72. for i, key in pairs(SugDezNuts) do
  73. if key == _G.Key then
  74. if game.PlaceId == 2414851778 then
  75. local A_1 = _G.Map
  76. local A_2 = _G.Mode
  77. local A_3 = 0
  78. local A_4 = _G.Hardcore
  79. local A_5 = _G.Private
  80. local A_6 = _G.WaveDefense
  81. local Event = game:GetService("ReplicatedStorage").remotes.createLobby
  82. game.ReplicatedStorage.remotes.loadPlayerCharacter:FireServer()
  83. wait(1.5)
  84. Event:InvokeServer(A_1, A_2, A_3, A_4, A_5, A_6)
  85. game.ReplicatedStorage.remotes.startDungeon:FireServer()
  86. elseif game.PlaceId ~= 2414851778 then
  87. if autostartbegin == true then
  88. game.ReplicatedStorage.remotes.changeStartValue:FireServer()
  89. end
  90. game.Players.LocalPlayer.Character.LeftFoot.Touched:Connect(function(hit)
  91. if hit.Name == "hitBox" or hit.Name == "precast" or hit.Name == "PrimaryPart" then
  92. ok = math.random(-17,17)
  93. ok2 = math.random(-17,17)
  94. end
  95. end)
  96. game.Players.LocalPlayer.Character.RightFoot.Touched:Connect(function(hit)
  97. if hit.Name == "hitBox" or hit.Name == "precast" or hit.Name == "PrimaryPart" then
  98. ok = math.random(-17,17)
  99. ok2 = math.random(-17,17)
  100. end
  101. end)
  102. game:GetService('RunService').Stepped:connect(function()
  103. if noclip then
  104. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  105. end
  106. end)
  107. noclip = not noclip
  108. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  109.  
  110. while wait(0.1) do
  111. pcall(function()
  112. if game.Players.LocalPlayer.Character.Humanoid.Health < 1 and death == false then
  113. death = true
  114. wait(1)
  115. repeat wait() until game.Players.LocalPlayer.Character:WaitForChild("Head")
  116. touching()
  117. death = false
  118. wait()
  119. end
  120. if death == false then
  121. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  122. local spells = game.Players.LocalPlayer.Backpack:GetDescendants()
  123. EnemyTele(game.Workspace)
  124. for i, x in pairs(spells) do
  125. if x:IsA('RemoteEvent') then
  126. x:FireServer()
  127. end
  128. end
  129. end
  130. end)
  131. end
  132. end
  133. end
  134. end
Add Comment
Please, Sign In to add comment