Advertisement
RobloxLuaDeveloper

BladeBall AutoParry [OUTDATED]

Dec 2nd, 2023 (edited)
1,548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.89 KB | Writing | 0 0
  1. -- Fadhil's Private Script
  2. -- Blade Ball Auto Parry
  3.  
  4. warn("Notification : Script Executed! [BladeBall AutoParry]")
  5. local Players = game:GetService('Players')
  6. local RS = game:GetService("ReplicatedStorage")
  7. local VU = game:GetService("VirtualUser")
  8. local SG = game:GetService("StarterGui")
  9. local RSC = game:GetService("RunService")
  10. local Teams = game:GetService("Teams")
  11. local Lp = Players.LocalPlayer
  12.  
  13. local Remotes = RS:WaitForChild("Remotes", 9e9)
  14. local Balls = workspace:WaitForChild("Balls", 9e9)
  15. local CurrentBall = false
  16.  
  17. local function notif(title, text, time, button)
  18.     local params = {
  19.         Title = title,
  20.         Text = text,
  21.         Duration = time
  22.     }
  23.     if button then
  24.         params.Button1 = "Okay!"
  25.     end
  26.     SG:SetCore("SendNotification", params)
  27. end
  28.  
  29. notif("Script Executed","Made by fadhil_3346 on Discord",math.huge,true)
  30.  
  31. -- Anti Cheat / Security Remover [Works 80% - 100%]
  32. RSC.Heartbeat:Connect(function()
  33.     if RS then
  34.         local Security = RS:FindFirstChild("Security")
  35.         if Security then
  36.             local RemoteEvent = Security:FindFirstChild("RemoteEvent")
  37.             local idk = Security:FindFirstChild("")
  38.             if RemoteEvent and idk then
  39.                 RemoteEvent:Destroy()
  40.                 idk:Destroy()
  41.             end
  42.             Security:Destroy()
  43.         end
  44.     end
  45.     local PS = Lp:FindFirstChild("PlayerScripts")
  46.     if PS then
  47.         local Client = PS:FindFirstChild("Client")
  48.         if Client then
  49.             local DeviceChecker = Client:FindFirstChild("DeviceChecker")
  50.             if DeviceChecker then
  51.                 DeviceChecker:Destroy()
  52.             end
  53.         end
  54.     end
  55. end)
  56.  
  57. warn("Loaded : Anti-Cheat Bypass")
  58. notif("AC Bypassed","Anti-Cheat Bypassed!",3)
  59.  
  60. -- Anti AFK
  61. Lp.Idled:connect(function()
  62.     VU:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  63.     wait(1)
  64.     VU:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  65. end)
  66.  
  67. warn("Loaded : AFK Kick Bypass")
  68. notif("Anti-AFK","No more AFK kicks!",3)
  69.  
  70. -- Ball Checker
  71. local function RealBall(Ball)
  72.     if typeof(Ball) == "Instance" and Ball:IsA("BasePart") and Ball:IsDescendantOf(Balls) and Ball:GetAttribute("realBall") == true then
  73.         return true
  74.     else
  75.         return false
  76.     end
  77. end
  78.  
  79. -- Instance
  80. RSC.Heartbeat:Connect(function()
  81.     for _,child in pairs(Balls:GetChildren()) do
  82.         if RealBall(child) then
  83.             CurrentBall = child
  84.         end
  85.     end
  86. end)
  87.  
  88. -- Check Ball Target
  89. local function ballTargetYou()
  90.     if CurrentBall then
  91.         local ballLight = CurrentBall:FindFirstChildOfClass('Highlight')
  92.         if ballLight then
  93.             if ballLight.FillColor == Color3.new(1,0,0) then
  94.                 return true
  95.             else
  96.                 local character = Lp.Character
  97.                 if character then
  98.                     local bodyLight = character:FindFirstChild("Highlight") or character:FindFirstChildOfClass('Highlight')
  99.                     if bodyLight then
  100.                         if bodyLight.FillColor == Color3.new(1,0,0) and bodyLight.FillTransparency < 1 then
  101.                             return true
  102.                         else
  103.                             return false
  104.                         end
  105.                     end
  106.                 end
  107.             end
  108.         end
  109.     end
  110. end
  111.    
  112. -- Parry Remote
  113. local function Parry()
  114.     local ParryButtonPress = Remotes:WaitForChild("ParryButtonPress")
  115.     if ParryButtonPress then
  116.         ParryButtonPress:Fire()
  117.     end
  118. end
  119.  
  120. -- Any Teams?
  121. local function areThereAnyTeams()
  122.     return #Teams:GetTeams() > 1
  123. end
  124.  
  125. -- Closest Player
  126. local function getClosestPlayer()
  127.     local localPlayer = Lp
  128.     local localCharacter = localPlayer.Character
  129.     if localCharacter then
  130.         local localHumanoidRootPart = localCharacter:WaitForChild("HumanoidRootPart")
  131.         local closestPlayer = nil
  132.         local closestDistance = math.huge
  133.         for _, player in pairs(Players:GetPlayers()) do
  134.             if player ~= localPlayer then
  135.                 local character = player.Character
  136.                 local humanoidRootPart = character and character:FindFirstChild("HumanoidRootPart")
  137.                 if humanoidRootPart then
  138.                     local distance = (localHumanoidRootPart.Position - humanoidRootPart.Position).Magnitude
  139.                     if distance < closestDistance then
  140.                         closestDistance = distance
  141.                         closestPlayer = player
  142.                     end
  143.                 end
  144.             end
  145.         end
  146.         return closestPlayer, closestDistance
  147.     end
  148. end
  149.  
  150. local BallVelocity2 = 0
  151. -- Ball Velocity
  152. RSC.Heartbeat:Connect(function()
  153.     if CurrentBall then
  154.         local BallVelocity = CurrentBall.Velocity
  155.         local Result = (BallVelocity.Magnitude * 0.2) * 0.5
  156.         BallVelocity2 = Result
  157.     end
  158. end)
  159.  
  160. -- Clash / Duel Detector
  161. local function isClash()
  162.     if getClosestPlayer() then
  163.         local player, distance = getClosestPlayer()
  164.         local Alive = workspace:FindFirstChild("Alive")
  165.         if Alive and Alive:FindFirstChild(player.Name) and distance <= BallVelocity2 then
  166.             if CurrentBall then
  167.                 local BallVelocity = CurrentBall.Velocity
  168.                 local Result = (BallVelocity.Magnitude * 0.2) * 0.5
  169.                 local Character = player.Character
  170.                 if Character and Character:FindFirstChildOfClass('Highlight') and Character:FindFirstChildOfClass('Highlight').FillColor == Color3.new(1,0,0) and Character:FindFirstChildOfClass('Highlight').FillTransparency < 1 then
  171.                     local Root = Character:FindFirstChild("HumanoidRootPart")
  172.                     if Root then
  173.                         local Distance = (CurrentBall.Position - Root.Position).Magnitude
  174.                         if (Distance / Result) <= 10 then
  175.                             if areThereAnyTeams() then
  176.                                 if player.Team ~= Lp.Team then
  177.                                     return true
  178.                                 end
  179.                             else
  180.                                 return true
  181.                             end
  182.                         end
  183.                     end
  184.                 end
  185.             end
  186.         end
  187.     end
  188. end
  189.  
  190. --Parry
  191. RSC.Heartbeat:Connect(function()
  192. local Character = Lp.Character
  193. if Character then
  194.     local Root = Character:FindFirstChild("HumanoidRootPart")
  195.     if Root and CurrentBall then
  196.         local BallVelocity = CurrentBall.Velocity
  197.         local Result = (BallVelocity.Magnitude * 0.2) * 0.5
  198.         local Distance = (CurrentBall.Position - Root.Position).Magnitude
  199.         if isClash() then
  200.             if (Distance / Result) <= 10 then
  201.                 Parry()
  202.             end
  203.         else
  204.             if (Distance / Result) <= 10 and ballTargetYou() then
  205.                 Parry()
  206.             end
  207.         end
  208.     end
  209. end
  210. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement