Advertisement
NukeVsCity

VoxlBlade Hack Auto

Dec 17th, 2020
3,101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.71 KB | None | 0 0
  1. _G.Toggle = true
  2. _G.DipOnLowHealth = true
  3. _G.PrefferedInnKeeper = "Keeper"
  4. -- ^ don't use this for now
  5. _G.MaxDistance = 2500 -- change this variable to the max distance the character can venture to the mob to slay it
  6. local vu = game:GetService("VirtualUser")
  7. game:GetService("Players").LocalPlayer.Idled:Connect(function()
  8. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  9. wait(1)
  10. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  11. end)
  12.  
  13. local Events = game.ReplicatedStorage.Events
  14. local Keeper = workspace.NPCS.Keeper
  15. local Heal = game.Players.LocalPlayer.PlayerGui.CoreGUI.Events.DialogEffect
  16. local Sleep = Keeper.ChatInfo.Chats.Sleep
  17. local AttackEvent = Events.Event1
  18. local NPCs = workspace.NPCS
  19. local Player = game.Players.LocalPlayer
  20. local Character = Player.Character
  21. local HRP = Character.HumanoidRootPart
  22. local PlayerHum = Character.Humanoid
  23. local TweenService = game:GetService("TweenService")
  24. local SpawnLocation = Keeper.CFrame * CFrame.new(2, 0, 0)
  25.  
  26. Player.CharacterAdded:Connect(function(char)
  27. HRP = char:WaitForChild("HumanoidRootPart")
  28. PlayerHum = char:WaitForChild("Humanoid")
  29. end)
  30.  
  31. local Mobs = {
  32. "Buni", "DireBuni", "Bumblz", "Budboy", "Drone", "Woof", "WinterWoof"
  33. }
  34.  
  35. local AllowedTools = {
  36. "BasicSword", "LongSword", "SharpSword", "ManaSword", "GreatSword", "Dagger"
  37. }
  38.  
  39. while wait() do
  40. PlayerHum:ChangeState(11)
  41. if _G.Toggle == false then
  42. PlayerHum:ChangeState(7)
  43. break
  44. end
  45.  
  46. for _, v in pairs(NPCs:GetChildren()) do
  47. if table.find(Mobs, v.Name) then
  48. for i = 1, 1000 do
  49. if _G.Toggle == false then
  50. PlayerHum:ChangeState(7)
  51. break
  52. end
  53.  
  54. local ActualNPC = v:FindFirstChild(v.Name)
  55.  
  56. for _, v in pairs(Player.Character:GetChildren()) do
  57. if table.find(AllowedTools, v.Name) then
  58. break
  59. else
  60.  
  61. for _, v in pairs(Player.Backpack:GetChildren()) do
  62. if table.find(AllowedTools, v.Name) then
  63. PlayerHum:EquipTool(v)
  64. break
  65. end
  66. end
  67.  
  68. end
  69. end
  70.  
  71. if ActualNPC then
  72.  
  73. local Humanoid = ActualNPC:FindFirstChild("Humanoid")
  74.  
  75. if not Humanoid or not ActualNPC:FindFirstChild("HumanoidRootPart") then break end
  76.  
  77. repeat wait() until HRP
  78.  
  79. repeat wait() until HRP.Anchored == false
  80.  
  81. if Humanoid.Health <= 0 then break end
  82.  
  83. if _G.DipOnLowHealth == true then
  84. if PlayerHum.Health / PlayerHum.MaxHealth <= 0.15 then
  85. local dist = (SpawnLocation.Position - HRP.Position).Magnitude
  86. local velocity = 160
  87. local info = TweenInfo.new(dist / velocity, Enum.EasingStyle.Linear)
  88. local g = {}
  89. g.CFrame = SpawnLocation
  90.  
  91. local Tween = TweenService:Create(HRP, info, g)
  92. Tween:Play()
  93.  
  94. Tween.Completed:Wait()
  95. Heal:InvokeServer(workspace.NPCS.Keeper, Sleep)
  96. end
  97. end
  98.  
  99. local dist = (v.Position - HRP.Position).Magnitude
  100.  
  101. if dist > _G.MaxDistance then break end
  102.  
  103. local velocity = 160
  104. local info = TweenInfo.new(dist / velocity, Enum.EasingStyle.Linear)
  105.  
  106. if not ActualNPC:FindFirstChild("HumanoidRootPart") then return end
  107.  
  108. local g = {}
  109. g.CFrame = ActualNPC.HumanoidRootPart.CFrame
  110.  
  111. local Tween = TweenService:Create(HRP, info, g)
  112. Tween:Play()
  113.  
  114. Tween.Completed:Wait()
  115. AttackEvent:InvokeServer("L")
  116. else
  117. PlayerHum:ChangeState(7)
  118. break
  119. end
  120. end
  121. end
  122. end
  123. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement