Aura_Exploits

Untitled

Feb 17th, 2023
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. local quest_boy = game:GetService("Workspace").DialogNPCs["grown up boy"].HumanoidRootPart
  2. local Player = game:GetService('Players').LocalPlayer
  3. local Character = Player.Character
  4. local offset = 0
  5.  
  6. local function move_to(Instance)
  7. local Player = game.Players.LocalPlayer
  8. local Character = Player.Character
  9. Character:MoveTo(Instance.Position)
  10. end
  11.  
  12.  
  13. local function has_quest()
  14. local mission = game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild('Quest')
  15. if mission then
  16. --print(tostring(mission.quest.Value):find('fiends'),tonumber(mission.max.Value) < 3 )
  17. if tostring(mission.quest.Value):find('fiends') and tonumber(mission.progress.Value) < 3 then
  18. return true
  19. elseif tonumber(mission.progress.Value) >= 3 then
  20. local repeat_mission = game:GetService("Players").LocalPlayer.PlayerGui.Quest:FindFirstChild('Completed')
  21. if repeat_mission then
  22. wait(1)
  23. local repeat_mission_ap = game:GetService("Players").LocalPlayer.PlayerGui.Quest.Completed.Yes.AbsolutePosition
  24. mousemoveabs(repeat_mission_ap.X+500+offset,repeat_mission_ap.Y+500)
  25. offset = offset + 2
  26. mouse1click()
  27. end
  28. if tostring(mission.quest.Value):find('Kill fiends') and tonumber(mission.max.Value) < 3 then
  29. return true
  30. end
  31. else
  32. return false
  33. end
  34. end
  35. end
  36.  
  37. local function accept_quest()
  38. local pos,onscreen = game.workspace.Camera:WorldToViewportPoint(quest_boy.Position)
  39. local dialog = game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild('dialogGUI')
  40. if onscreen and not dialog then
  41. print('Pressing key')
  42. keypress(0x45)
  43. wait()
  44. keyrelease(0x45)
  45. elseif onscreen and dialog then
  46. wait(1)
  47. local dialog_ap = game:GetService("Players").LocalPlayer.PlayerGui.dialogGUI.f.sf.option.text.AbsolutePosition
  48. mousemoveabs(dialog_ap.X+500+offset,dialog_ap.Y+500)
  49. offset = offset + 2
  50. mouse1click()
  51. end
  52. end
  53.  
  54.  
  55. local function closest_npc()
  56. local npcs_folder = game:GetService("Workspace").Living
  57. local largest = math.huge
  58. for i,v in pairs(npcs_folder:GetChildren())do
  59. if v.Name:find('Fiend') and v:FindFirstChild('HumanoidRootPart') and v:FindFirstChild('Humanoid').Health > 0 then
  60. local magnitude = (Character.HumanoidRootPart.Position - v.HumanoidRootPart.Position).magnitude
  61. if magnitude < largest then
  62. return v
  63. end
  64. end
  65. end
  66. end
  67.  
  68. local function start_killing()
  69. local Player = game:GetService('Players').LocalPlayer
  70. local Character = Player.Character
  71. local current_npc = closest_npc()
  72. repeat wait(0.25) until Player and Character and Character:FindFirstChild('HumanoidRootPart') and current_npc
  73. local magnitude = (Character.HumanoidRootPart.Position - current_npc.HumanoidRootPart.Position).magnitude
  74. if magnitude > 30 then
  75. move_to(closest_npc():FindFirstChild('HumanoidRootPart'))
  76. else
  77. Character.HumanoidRootPart.Anchored = true
  78. Character.HumanoidRootPart.CFrame = closest_npc():FindFirstChild('HumanoidRootPart').CFrame - closest_npc():FindFirstChild('HumanoidRootPart').CFrame.lookVector * 8
  79. Character.HumanoidRootPart.Anchored = false
  80. game:GetService("ReplicatedStorage").events.remote:FireServer("NormalAttack");
  81. end
  82. end
  83.  
  84. _G.toggle = true
  85.  
  86. while _G.toggle do
  87. local quest_boy = game:GetService("Workspace").DialogNPCs["grown up boy"].HumanoidRootPart
  88. local Player = game:GetService('Players').LocalPlayer
  89. local Character = Player.Character
  90. repeat wait(0.25) until Player and Character and Character:FindFirstChild('HumanoidRootPart')
  91. local magnitude = (quest_boy.Position - Character.HumanoidRootPart.Position).magnitude
  92. if magnitude > 10 and not has_quest() then
  93. move_to(quest_boy)
  94. workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position,quest_boy.Position)
  95. elseif Character and magnitude <= 10 and not has_quest() then
  96. accept_quest()
  97. elseif Character and has_quest() then
  98. offset = 0
  99. repeat wait()
  100. start_killing()
  101. until not has_quest()
  102. end
  103. wait(0.75)
  104. end
  105. Character.HumanoidRootPart.Anchored = false
Add Comment
Please, Sign In to add comment