Advertisement
Guest User

AUto quest

a guest
Nov 14th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. VVVVVVVVVV Settings, Make sure to edit those VVVVVVVVVV---
  2.  
  3. _G.On = true
  4. _G.Quest = "Arlong Pirates"
  5. _G.Weapon = "Mera Mera no mi"
  6. _G.UseSkills = true
  7. _G.Speed = 500
  8.  
  9. ---VVVVVVVVVV Don't touch anything down there VVVVVVVVVV---
  10.  
  11. local keysToPress = {0x45,0x52,0x51}
  12.  
  13. local plr = game.Players.LocalPlayer
  14. local pgui = plr:WaitForChild("PlayerGui")
  15. local rs = game:GetService("ReplicatedStorage")
  16. local ts = game:GetService("TweenService")
  17. local bypass = false
  18. local mt = getrawmetatable(game)
  19. local sCD = false
  20.  
  21. local function Tween(Part)
  22. if plr.Character and plr.Character.HumanoidRootPart and Part then
  23. local Time = (Part.Position - plr.Character.HumanoidRootPart.Position).magnitude/_G.Speed
  24. local Info = TweenInfo.new(Time, Enum.EasingStyle.Linear)
  25. local Tween = ts:Create(plr.Character.HumanoidRootPart,Info,{CFrame = Part.CFrame*CFrame.new(0,5,0)})
  26. Tween:Play()
  27. end
  28. end
  29.  
  30. local quest
  31.  
  32. for i,v in pairs(game.Workspace:GetDescendants()) do
  33. if v.Name == _G.Quest and v:FindFirstChild("ClickDetector") then
  34. quest = v
  35. end
  36. end
  37.  
  38. quest.CFrame = plr.Character.HumanoidRootPart.CFrame*CFrame.new(0,-6,0)
  39.  
  40. fireclickdetector(quest.ClickDetector)
  41.  
  42. local function useSkills()
  43. spawn(function()
  44. if _G.UseSkills == true then
  45. sCD = true
  46. for i2,v2 in pairs(keysToPress) do
  47. keypress(v2)
  48. wait()
  49. keyrelease(v2)
  50. end
  51. wait(0.5)
  52. sCD = false
  53. end
  54. end)
  55. end
  56.  
  57. while _G.On == true do
  58. wait(0.1)
  59. pcall(function()
  60. if plr.Character then
  61. if pgui.Menu.QuestFrame.Visible == true then
  62. for i,v in pairs(game.Workspace.Mobs[_G.Quest]:GetChildren()) do
  63. if _G.On == true and plr.Character and pgui.Menu.QuestFrame.Visible == true and v:FindFirstChild("Humanoid") and v.Humanoid.Health > 0 then
  64. while _G.On == true and plr.Character and v:FindFirstChild("Humanoid") and v.Humanoid.Health > 0 do
  65. Tween(v.HumanoidRootPart)
  66. plr.Character.Humanoid:ChangeState(11)
  67. local tool
  68. if not plr.Character:FindFirstChild(_G.Weapon) then
  69. for i2,v2 in pairs(plr.Character:GetChildren()) do
  70. if v2:IsA("Tool") then
  71. v2.Parent = plr.Backpack
  72. end
  73. end
  74. for i2,v2 in pairs(plr.Backpack:GetChildren()) do
  75. if v2.Name == _G.Weapon then
  76. v2.Parent = plr.Character
  77. tool = v2
  78. end
  79. end
  80. else
  81. tool = plr.Character:FindFirstChild(_G.Weapon)
  82. end
  83. if tool ~= nil then
  84. tool:Activate()
  85. end
  86. rs.RemoteEvents.AddStaminaRemote:FireServer("Stamina",999,false)
  87. wait()
  88. useSkills()
  89. end
  90. end
  91. end
  92. else
  93. for i,v in pairs(game.Workspace:GetDescendants()) do
  94. if v.Name == _G.Quest and v:FindFirstChild("ClickDetector") then
  95. quest = v
  96. end
  97. end
  98. quest.CFrame = plr.Character.HumanoidRootPart.CFrame*CFrame.new(0,-6,0)
  99. fireclickdetector(quest.ClickDetector)
  100. end
  101. end
  102. end)
  103. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement