Advertisement
pa1nx9

Anime Destroyers KILL AURA & AUTO COINS

Sep 30th, 2021
1,340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. -- Clear Connection
  2. for i,v in pairs(getconnections(workspace.Coins.ChildAdded)) do
  3. if checkcaller() then v:Disable() end
  4. end
  5. for i,v in pairs(getconnections(game.Players.LocalPlayer:GetMouse().KeyDown)) do
  6. if checkcaller() then v:Disable() end
  7. end
  8. shared.Break = true
  9.  
  10. local Data = require(game:GetService("ReplicatedStorage").Library.Modules.ClientMeta).Replica.Data
  11. local Player = game.Players.LocalPlayer
  12. local UserInputService = game:GetService("UserInputService")
  13. local Toggle = false
  14.  
  15. -- Auto Coins
  16.  
  17. for i,v in pairs(workspace.Coins:GetChildren()) do
  18. game.ReplicatedStorage.Remotes.PickupCoin:InvokeServer(tonumber(v.Name))
  19. v:Destroy()
  20. end
  21. workspace.Coins.ChildAdded:Connect(function(v)
  22. game.ReplicatedStorage.Remotes.PickupCoin:InvokeServer(tonumber(v.Name))
  23. v.Transparency = 1
  24. wait(1)
  25. v:Destroy()
  26. end)
  27.  
  28. -- Toggle
  29. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key)
  30. if key:lower() == "e" then Toggle = not Toggle end
  31. end)
  32.  
  33. wait(.1) -- Break loop on re-run for less lag
  34. shared.Break = false
  35.  
  36. -- Main
  37. while task.wait() do
  38. if Toggle then -- Check is press e
  39. spawn(function()
  40. local Hit = {}
  41.  
  42. -- Check Object
  43. local Special = {
  44. ["East City"] = "EastCity"
  45. }
  46.  
  47. for i,v in pairs(workspace.Buildings[Special[Data.CurrentWorld] or Data.CurrentWorld]:GetChildren()) do
  48. local v = v:FindFirstChild("Hitbox")
  49. if v and v.Parent.Broken.Value ~= true and Player:DistanceFromCharacter(v.Position) < 25 then
  50. table.insert(Hit,{v.Parent,v.Position})
  51. end
  52. end
  53. for i,v in pairs(workspace.Enemies:GetChildren()) do
  54. if v:FindFirstChild("Humanoid") and v:FindFirstChild("HumanoidRootPart") and v.Humanoid.Health >= 1 then
  55. if Player:DistanceFromCharacter(v.HumanoidRootPart.Position) < 25 then
  56. table.insert(Hit,{v,v.HumanoidRootPart.Position})
  57. end
  58. end
  59. end
  60.  
  61. -- Invoke
  62. local Character = Player.Character
  63. local Tool = Character:FindFirstChildOfClass("Tool")
  64. game.ReplicatedStorage.Remotes.UseSword:InvokeServer(Tool,Hit)
  65. end)
  66. end
  67. if shared.Break then
  68. break
  69. end
  70. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement