Advertisement
Guest User

Untitled

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