Advertisement
giorgichaduneli

Untitled

Mar 14th, 2024
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. getgenv().AutoDetectSpam = true
  2.  
  3. --///////////////////////////////////////////////////////////////////--
  4.  
  5. local Alive = workspace:WaitForChild("Alive", 9e9)
  6. local Players = game:GetService("Players")
  7. local Player = Players.LocalPlayer
  8.  
  9. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  10. local Remotes = ReplicatedStorage:WaitForChild("Remotes", 9e9)
  11. local ParryAttempt = Remotes:WaitForChild("ParryAttempt", 9e9)
  12. local Balls = workspace:WaitForChild("Balls", 9e9)
  13.  
  14. --///////////////////////////////////////////////////////////////////--
  15.  
  16. local function get_ProxyPlayer()
  17. local Distance = math.huge
  18. local plrRP = Player.Character and Player.Character:FindFirstChild("HumanoidRootPart")
  19. local PlayerReturn = nil
  20.  
  21. for _,plr1 in pairs(Alive:GetChildren()) do
  22. if plr1:FindFirstChild("Humanoid") and plr1.Humanoid.Health > 50 then
  23. if plr1.Name ~= Player.Name and plrRP and plr1:FindFirstChild("HumanoidRootPart") then
  24. local magnitude = (plr1.HumanoidRootPart.Position - plrRP.Position).Magnitude
  25. if magnitude <= Distance then
  26. Distance = magnitude
  27. PlayerReturn = plr1
  28. end
  29. end
  30. end
  31. end
  32. return PlayerReturn
  33. end
  34.  
  35. local function SuperClick()
  36. task.spawn(function()
  37. if IsAlive() and #Alive:GetChildren() > 1 then
  38. local args1 = 0.5
  39. local args2 = CFrame.new()
  40. local args3 = {["enzo"] = Vector3.new()}
  41. local args4 = {500, 500}
  42.  
  43. if args1 and args2 and args3 and args4 then
  44. ParryAttempt:FireServer(args1, args2, args3, args4)
  45. end
  46. end
  47. end)
  48. end
  49.  
  50. task.spawn(function()
  51. while task.wait() do
  52. if getgenv().SpamClickA and getgenv().AutoDetectSpam then
  53. SuperClick()
  54. end
  55. end
  56. end)
  57.  
  58. local ParryCounter = 0
  59. local DetectSpamDistance = 0
  60.  
  61. local function GetBall(ball)
  62. local Target = ""
  63.  
  64. ball:GetPropertyChangedSignal("Position"):Connect(function()
  65. local PlayerPP = Player and Player.Character and Player.Character.PrimaryPart
  66. local NearestPlayer = get_ProxyPlayer()
  67.  
  68. if ball and PlayerPP and NearestPlayer and NearestPlayer.PrimaryPart then
  69. local PlayerDistance = (PlayerPP.Position - NearestPlayer.PrimaryPart.Position).Magnitude
  70. local BallDistance = (PlayerPP.Position - ball.Position).Magnitude
  71.  
  72. DetectSpamDistance = 25 + math.clamp(ParryCounter / 3, 0, 25)
  73.  
  74. if ParryCounter > math.huge and PlayerDistance < DetectSpamDistance and BallDistance < 55 then
  75. getgenv().SpamClickA = true
  76. else
  77. getgenv().SpamClickA = false
  78. end
  79. end
  80. end)
  81. ball:GetAttributeChangedSignal("target"):Connect(function()
  82. Target = ball:GetAttribute("target")
  83. local NearestPlayer = get_ProxyPlayer()
  84.  
  85. if NearestPlayer then
  86. if Target == NearestPlayer.Name or Target == Player.Name then
  87. ParryCounter = ParryCounter + math.huge
  88. else
  89. ParryCounter = 0
  90. end
  91. end
  92. end)
  93. end
  94.  
  95. for _,ball in pairs(Balls:GetChildren()) do
  96. if ball and not ball:GetAttribute("realBall") then
  97. return
  98. end
  99.  
  100. GetBall(ball)
  101. end
  102.  
  103. Balls.ChildAdded:Connect(function(ball)
  104. if not getgenv().AutoDetectSpam then
  105. return
  106. elseif ball and not ball:GetAttribute("realBall") then
  107. return
  108. end
  109.  
  110. getgenv().SpamClickA = false
  111. ParryCounter = 0
  112. GetBall(ball)
  113. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement