Advertisement
Guest User

Untitled

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