Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. _G.On = true
  2. _G.Quest = "Arlong Pirates"
  3. _G.Weapon = "Wrestling"
  4. _G.UseSkills = false
  5.  
  6. local keysToPress = {0x45,0x52,0x51}
  7.  
  8. local plr = game.Players.LocalPlayer
  9. local pgui = plr:WaitForChild("PlayerGui")
  10. local runS = game:GetService("RunService")
  11. local rs = game:GetService("ReplicatedStorage")
  12. local bypass = false
  13. local mt = getrawmetatable(game)
  14. local sCD = false
  15.  
  16. setreadonly(mt, false)
  17. local backup = mt.__index
  18. mt.__index = function(a, b)
  19. if b:lower() == "position" and bypass == true and _G.On == true then
  20. return Vector3.new(0, 0, 0)
  21. end
  22. return backup(a, b)
  23. end
  24.  
  25. local quest
  26.  
  27. for i,v in pairs(game.Workspace:GetDescendants()) do
  28. if v.Name == _G.Quest and v:FindFirstChild("ClickDetector") then
  29. quest = v
  30. end
  31. end
  32.  
  33. quest.CFrame = plr.Character.HumanoidRootPart.CFrame*CFrame.new(0,-6,0)
  34.  
  35. fireclickdetector(quest.ClickDetector)
  36.  
  37. local function useSkills()
  38. spawn(function()
  39. if _G.UseSkills == true then
  40. sCD = true
  41. for i2,v2 in pairs(keysToPress) do
  42. keypress(v2)
  43. wait()
  44. keyrelease(v2)
  45. end
  46. wait(1)
  47. sCD = false
  48. end
  49. end)
  50. end
  51.  
  52. spawn(function()
  53. local VirtualUser=game:service'VirtualUser'
  54. game:service'Players'.LocalPlayer.Idled:connect(function()
  55. VirtualUser:CaptureController()
  56. VirtualUser:ClickButton2(Vector2.new())
  57. end)
  58. end)
  59.  
  60. spawn(function()
  61. while _G.On == true do
  62. wait(0.5)
  63. pcall(function()
  64. local cam = game.Workspace.CurrentCamera
  65. if plr.Character and (cam.CFrame.p - plr.Character.HumanoidRootPart.CFrame.p).magnitude > 150 then
  66. plr.Character:BreakJoints()
  67. end
  68. end)
  69. end
  70. end)
  71.  
  72. while _G.On == true do
  73. wait(0.1)
  74. pcall(function()
  75. if plr.Character then
  76. if pgui.Menu.QuestFrame.Visible == true then
  77. for i,v in pairs(game.Workspace.Mobs[_G.Quest]:GetChildren()) do
  78. if _G.On == true and plr.Character and pgui.Menu.QuestFrame.Visible == true and v:FindFirstChild("Humanoid") and v.Humanoid.Health > 0 then
  79. while _G.On == true and plr.Character and v:FindFirstChild("Humanoid") and v.Humanoid.Health > 0 do
  80. bypass = true
  81. plr.Character.Humanoid:ChangeState(11)
  82. plr.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame*CFrame.new(0,5,0)
  83. plr.Character.HumanoidRootPart.CFrame = CFrame.new(plr.Character.HumanoidRootPart.CFrame.p,v.HumanoidRootPart.CFrame.p)
  84. local tool
  85. if not plr.Character:FindFirstChild(_G.Weapon) then
  86. for i2,v2 in pairs(plr.Character:GetChildren()) do
  87. if v2:IsA("Tool") then
  88. v2.Parent = plr.Backpack
  89. end
  90. end
  91. for i2,v2 in pairs(plr.Backpack:GetChildren()) do
  92. if v2.Name == _G.Weapon then
  93. v2.Parent = plr.Character
  94. tool = v2
  95. print(tool)
  96. end
  97. end
  98. else
  99. tool = plr.Character:FindFirstChild(_G.Weapon)
  100. end
  101. if tool ~= nil then
  102. tool:Activate()
  103. end
  104. if v.Humanoid.Health ~= v.Humanoid.MaxHealth then
  105. v.Humanoid.Health = 0
  106. end
  107. rs.RemoteEvents.AddStaminaRemote:FireServer("Stamina",999,false)
  108. runS.RenderStepped:Wait()
  109. useSkills()
  110. end
  111. end
  112. end
  113. else
  114. for i,v in pairs(game.Workspace:GetDescendants()) do
  115. if v.Name == _G.Quest and v:FindFirstChild("ClickDetector") then
  116. quest = v
  117. end
  118. end
  119. quest.CFrame = plr.Character.HumanoidRootPart.CFrame*CFrame.new(0,-6,0)
  120. fireclickdetector(quest.ClickDetector)
  121. end
  122. end
  123. end)
  124. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement