Advertisement
hacimiks

blade ball

Jul 26th, 2024 (edited)
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.73 KB | None | 0 0
  1. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  2. local Window = OrionLib:MakeWindow({Name = "/despair", IntroText = "/despair [BLADE BALL]", IntroIcon = "rbxassetid://17764782552" HidePremium = false, SaveConfig = true, ConfigFolder = "despairauto"})
  3.  
  4.  
  5. OrionLib:MakeNotification({
  6.     Name = "/despair",
  7.     Content = "Blade Ball Loaded!",
  8.     Image = "rbxassetid://17764782552",
  9.     Time = 5
  10. })
  11.  
  12. local Tab = Window:MakeTab({
  13.     Name = "Main",
  14.     Icon = "rbxassetid://17764782552",
  15.     PremiumOnly = false
  16. })
  17.  
  18. local Section = Tab:AddSection({
  19.     Name = "Aoki's Auto"
  20. })
  21.  
  22. Section:AddToggle({
  23.     Name = "Auto Parry [NEGA MODE 😈🐒]",
  24.     Default = false,
  25.     Callback = function()
  26.         local RunService = game:GetService("RunService")
  27.         local Players = game:GetService("Players")
  28.         local Workspace = game:GetService("Workspace")
  29.         local VirtualInputManager = game:GetService("VirtualInputManager")
  30.         local BallFolder = Workspace:WaitForChild("Balls")
  31.  
  32.         local player = Players.LocalPlayer
  33.         local canParry = true
  34.  
  35.         local function calculatePredictionTime(ball, player)
  36.             local character = player.Character
  37.             if character then
  38.                 local rootPart = character:FindFirstChild("HumanoidRootPart")
  39.                 if rootPart then
  40.                     local relativePosition = ball.Position - rootPart.Position
  41.                     local relativeVelocity = ball.Velocity - rootPart.Velocity
  42.                     local a = ball.Size.Magnitude / 1
  43.                     local b = relativePosition.Magnitude
  44.                     local c = math.sqrt(a * a + b * b)
  45.                     return (c - a) / relativeVelocity.Magnitude
  46.                 end
  47.             end
  48.             return math.huge
  49.         end
  50.  
  51.         local function parry()
  52.             if canParry then
  53.                 canParry = false
  54.                 VirtualInputManager:SendMouseButtonEvent(0, 0, 0, true, game, 0)
  55.                 VirtualInputManager:SendMouseButtonEvent(0, 0, 0, false, game, 0)
  56.                 task.delay(0.1, function()
  57.                     canParry = true
  58.                 end)
  59.             end
  60.         end
  61.  
  62.         local function checkProximityToPlayer(ball, player)
  63.             local predictionTime = calculatePredictionTime(ball, player)
  64.             local realBallAttribute = ball:GetAttribute("realBall")
  65.             local target = ball:GetAttribute("target")
  66.  
  67.             if predictionTime and realBallAttribute and target then
  68.                 local ballSpeedThreshold = math.max(0.4, 0.6 - ball.Velocity.Magnitude * 0.03)
  69.                 if predictionTime <= ballSpeedThreshold and realBallAttribute and target == player.Name then
  70.                     parry()
  71.                 end
  72.             end
  73.         end
  74.  
  75.         local function checkBallsProximity()
  76.             if player and player.Character then
  77.                 for _, ball in ipairs(BallFolder:GetChildren()) do
  78.                     if ball:IsA("BasePart") then
  79.                         checkProximityToPlayer(ball, player)
  80.                     end
  81.                 end
  82.             end
  83.         end
  84.  
  85.         RunService.Heartbeat:Connect(checkBallsProximity)
  86.     end
  87. })
  88.  
  89. local Tab1 = Window:MakeTab({
  90.     Name = "Extra",
  91.     Icon = "rbxassetid://17764782552",
  92.     PremiumOnly = false
  93. })
  94.  
  95. Tab1:AddButton({
  96.     Name = "Headless",
  97.     Callback = function()
  98.         game.Players.LocalPlayer.Character.Head.Transparency = 1
  99.         game.Players.LocalPlayer.Character.Head.Transparency = 1
  100.         for i,v in pairs(game.Players.LocalPlayer.Character.Head:GetChildren()) do
  101.         if (v:IsA("Decal")) then
  102.         v.Transparency = 1
  103.         end
  104.     end
  105. })
  106.  
  107. local Tab2 = Window:MakeTab({
  108.     Name = "Settings",
  109.     Icon = "rbxassetid://17764782552",
  110.     PremiumOnly = false
  111. })
  112.  
  113. Tab2:AddButton({
  114.     Name = "Fps Boost",
  115.     Callback = function()
  116.         -- enjoy
  117.         local function sendNotification(title, text)
  118.             game.StarterGui:SetCore("SendNotification", {
  119.                 Title = title,
  120.                 Text = text,
  121.             })
  122.         end
  123.         -- adjust these if u want - current settings recommended
  124.         getgenv().optimizeGraphics = true
  125.         getgenv().boostFPS = true
  126.  
  127.         local vim = game:GetService("VirtualInputManager")
  128.         local setfpscap = setfpscap or function() end -- Ensure setfpscap function is defined
  129.  
  130.         local function disableDevConsole()
  131.             local devConsoleUI = game:GetService("CoreGui"):FindFirstChild("DevConsoleUI", true)
  132.             if devConsoleUI then
  133.                 local mainView = devConsoleUI:FindFirstChild("MainView")
  134.                 if mainView then
  135.                     local screen = mainView.Parent and mainView.Parent.Parent and mainView.Parent.Parent.Parent
  136.                     if screen then
  137.                         screen.Enabled = false
  138.                     end
  139.                 end
  140.             end
  141.         end
  142.  
  143.         local function enableDevConsole()
  144.             local devConsoleMaster = game:GetService("CoreGui"):FindFirstChild("DevConsoleMaster", true)
  145.             if devConsoleMaster then
  146.                 devConsoleMaster.Enabled = true
  147.             end
  148.         end
  149.  
  150.         local function pressF9()
  151.             vim:SendKeyEvent(true, "F9", 0, game)
  152.             wait()
  153.             vim:SendKeyEvent(false, "F9", 0, game)
  154.         end
  155.  
  156.         local function checkDevConsole()
  157.             while true do
  158.                 task.wait()
  159.                 if not boostFPS then
  160.                     continue
  161.                 end
  162.                 if not game:GetService("CoreGui"):FindFirstChild("DevConsoleUI", true):FindFirstChild("MainView") then
  163.                     pressF9()
  164.                 end
  165.             end
  166.         end
  167.  
  168.         game.Loaded:Wait()
  169.  
  170.         if optimizeGraphics then
  171.             -- Adjust graphics settings
  172.             local t = game.Workspace.Terrain
  173.             t.WaterWaveSize = 0
  174.             t.WaterWaveSpeed = 0
  175.             t.WaterReflectance = 0
  176.             t.WaterTransparency = 0
  177.             game.Lighting.GlobalShadows = false
  178.             game.Lighting.FogEnd = 9e9
  179.             game.Lighting.Brightness = 0
  180.             settings().Rendering.QualityLevel = "Level01"
  181.    
  182.             -- Modify parts and effects
  183.             for _, v in ipairs(game:GetDescendants()) do
  184.                 if v:IsA("BasePart") then
  185.                     v.Material = Enum.Material.Plastic
  186.                     v.Reflectance = 0
  187.                 elseif v:IsA("Decal") or v:IsA("Texture") then
  188.                     v.Transparency = 1
  189.                 elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then
  190.                     v.Lifetime = NumberRange.new(0)
  191.                 elseif v:IsA("Explosion") then
  192.                     v.BlastPressure = 1
  193.                     v.BlastRadius = 1
  194.                 elseif v:IsA("Fire") or v:IsA("SpotLight") or v:IsA("Smoke") then
  195.                     v.Enabled = false
  196.                 elseif v:IsA("MeshPart") then
  197.                     v.Material = Enum.Material.Plastic
  198.                     v.Reflectance = 0
  199.                     v.TextureID = 10385902758728957
  200.                 end
  201.             end
  202.  
  203.             for _, e in ipairs(game.Lighting:GetChildren()) do
  204.                 if e:IsA("PostEffect") then
  205.                     e.Enabled = false
  206.                 end
  207.             end
  208.         end
  209.  
  210.         game.DescendantAdded:Connect(function(descendant)
  211.             if descendant.Name == "MainView" and descendant.Parent.Name == "DevConsoleUI" and boostFPS then
  212.                 disableDevConsole()
  213.             end
  214.         end)
  215.  
  216.         pressF9()
  217.         spawn(checkDevConsole)
  218.     end
  219. })
  220.  
  221. Tab2:AddButton({
  222.     Name = "Destroy Gui",
  223.     Callback = function()
  224.         OrionLib:Destroy()
  225.     end    
  226. })
  227.  
  228. Tab2:AddLabel("/despair on top! NEGA MODE")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement