Advertisement
MatLumber2

Untitled

Jan 27th, 2024 (edited)
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.04 KB | None | 0 0
  1. local Library = loadstring(Game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/wizard"))()
  2.  
  3. local PhantomForcesWindow = Library:NewWindow("MatHub")
  4.  
  5. local KillingCheats = PhantomForcesWindow:NewSection("Functions")
  6.  
  7. KillingCheats:CreateButton("Auto Parry", function()
  8. local Debug = false -- Set this to true if you want my debug output.
  9. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  10. local Players = game:GetService("Players")
  11.  
  12. local Player = Players.LocalPlayer or Players.PlayerAdded:Wait()
  13. local Remotes = ReplicatedStorage:WaitForChild("Remotes", 9e9) -- A second argument in waitforchild what could it mean?
  14. local Balls = workspace:WaitForChild("Balls", 9e9)
  15.  
  16. -- Functions
  17.  
  18. local function print(...) -- Debug print.
  19. if Debug then
  20. warn(...)
  21. end
  22. end
  23.  
  24. local function VerifyBall(Ball) -- Returns nil if the ball isn't a valid projectile; true if it's the right ball.
  25. if typeof(Ball) == "Instance" and Ball:IsA("BasePart") and Ball:IsDescendantOf(Balls) and Ball:GetAttribute("realBall") == true then
  26. return true
  27. end
  28. end
  29.  
  30. local function IsTarget() -- Returns true if we are the current target.
  31. return (Player.Character and Player.Character:FindFirstChild("Highlight"))
  32. end
  33.  
  34. local function Parry() -- Parries.
  35. Remotes:WaitForChild("ParryButtonPress"):Fire()
  36. end
  37.  
  38. -- The actual code
  39.  
  40. Balls.ChildAdded:Connect(function(Ball)
  41. if not VerifyBall(Ball) then
  42. return
  43. end
  44.  
  45. print(`Ball Spawned: {Ball}`)
  46.  
  47. local OldPosition = Ball.Position
  48. local OldTick = tick()
  49.  
  50. Ball:GetPropertyChangedSignal("Position"):Connect(function()
  51. if IsTarget() then -- No need to do the math if we're not being attacked.
  52. local Distance = (Ball.Position - workspace.CurrentCamera.Focus.Position).Magnitude
  53. local Velocity = (OldPosition - Ball.Position).Magnitude -- Fix for .Velocity not working. Yes I got the lowest possible grade in accuplacer math.
  54.  
  55. print(`Distance: {Distance}\nVelocity: {Velocity}\nTime: {Distance / Velocity}`)
  56.  
  57. if (Distance / Velocity) <= 10 then -- Sorry for the magic number. This just works. No, you don't get a slider for this because it's 2am.
  58. Parry()
  59. end
  60. end
  61.  
  62. if (tick() - OldTick >= 1/60) then -- Don't want it to update too quickly because my velocity implementation is aids. Yes, I tried Ball.Velocity. No, it didn't work.
  63. OldTick = tick()
  64. OldPosition = Ball.Position
  65. end
  66. end)
  67. end)
  68. end)
  69.  
  70. KillingCheats:CreateButton("Auto Win", function()
  71. getgenv().god = true
  72. while getgenv().god and task.wait() do
  73. for _,ball in next, workspace.Balls:GetChildren() do
  74. if ball then
  75. if game:GetService("Players").LocalPlayer.Character and game:GetService("Players").LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  76. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position, ball.Position)
  77. if game:GetService("Players").LocalPlayer.Character:FindFirstChild("Highlight") then
  78. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = ball.CFrame * CFrame.new(0, 0, (ball.Velocity).Magnitude * -0.5)
  79. game:GetService("ReplicatedStorage").Remotes.ParryButtonPress:Fire()
  80. end
  81. end
  82. end
  83. end
  84. end
  85. end)
  86.  
  87. KillingCheats:CreateButton("Auto Spam", function()
  88. loadstring(game:HttpGet("https://pastebin.com/raw/dDyt2epF"))();
  89. end)
  90.  
  91. KillingCheats:CreateButton("Auto Detect Spam", function()
  92. getgenv().AutoDetectSpam = true
  93.  
  94. --///////////////////////////////////////////////////////////////////--
  95.  
  96. local Alive = workspace:WaitForChild("Alive", 9e9)
  97. local Players = game:GetService("Players")
  98. local Player = Players.LocalPlayer
  99.  
  100. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  101. local Remotes = ReplicatedStorage:WaitForChild("Remotes", 9e9)
  102. local ParryAttempt = Remotes:WaitForChild("ParryAttempt", 9e9)
  103. local Balls = workspace:WaitForChild("Balls", 9e9)
  104.  
  105. --///////////////////////////////////////////////////////////////////--
  106.  
  107. local function get_ProxyPlayer()
  108. local Distance = math.huge
  109. local plrRP = Player.Character and Player.Character:FindFirstChild("HumanoidRootPart")
  110. local PlayerReturn = nil
  111.  
  112. for _,plr1 in pairs(Alive:GetChildren()) do
  113. if plr1:FindFirstChild("Humanoid") and plr1.Humanoid.Health > 50 then
  114. if plr1.Name ~= Player.Name and plrRP and plr1:FindFirstChild("HumanoidRootPart") then
  115. local magnitude = (plr1.HumanoidRootPart.Position - plrRP.Position).Magnitude
  116. if magnitude <= Distance then
  117. Distance = magnitude
  118. PlayerReturn = plr1
  119. end
  120. end
  121. end
  122. end
  123. return PlayerReturn
  124. end
  125.  
  126. local function SuperClick()
  127. task.spawn(function()
  128. if IsAlive() and #Alive:GetChildren() > 1 then
  129. local args1 = 0.5
  130. local args2 = CFrame.new()
  131. local args3 = {["enzo"] = Vector3.new()}
  132. local args4 = {500, 500}
  133.  
  134. if args1 and args2 and args3 and args4 then
  135. ParryAttempt:FireServer(args1, args2, args3, args4)
  136. end
  137. end
  138. end)
  139. end
  140.  
  141. task.spawn(function()
  142. while task.wait() do
  143. if getgenv().SpamClickA and getgenv().AutoDetectSpam then
  144. SuperClick()
  145. end
  146. end
  147. end)
  148.  
  149. local ParryCounter = 0
  150. local DetectSpamDistance = 0
  151.  
  152. local function GetBall(ball)
  153. local Target = ""
  154.  
  155. ball:GetPropertyChangedSignal("Position"):Connect(function()
  156. local PlayerPP = Player and Player.Character and Player.Character.PrimaryPart
  157. local NearestPlayer = get_ProxyPlayer()
  158.  
  159. if ball and PlayerPP and NearestPlayer and NearestPlayer.PrimaryPart then
  160. local PlayerDistance = (PlayerPP.Position - NearestPlayer.PrimaryPart.Position).Magnitude
  161. local BallDistance = (PlayerPP.Position - ball.Position).Magnitude
  162.  
  163. DetectSpamDistance = 25 + math.clamp(ParryCounter / 3, 0, 25)
  164.  
  165. if ParryCounter > 2 and PlayerDistance < DetectSpamDistance and BallDistance < 55 then
  166. getgenv().SpamClickA = true
  167. else
  168. getgenv().SpamClickA = false
  169. end
  170. end
  171. end)
  172. ball:GetAttributeChangedSignal("target"):Connect(function()
  173. Target = ball:GetAttribute("target")
  174. local NearestPlayer = get_ProxyPlayer()
  175.  
  176. if NearestPlayer then
  177. if Target == NearestPlayer.Name or Target == Player.Name then
  178. ParryCounter = ParryCounter + 1
  179. else
  180. ParryCounter = 0
  181. end
  182. end
  183. end)
  184. end
  185.  
  186. for _,ball in pairs(Balls:GetChildren()) do
  187. if ball and not ball:GetAttribute("realBall") then
  188. return
  189. end
  190.  
  191. GetBall(ball)
  192. end
  193.  
  194. Balls.ChildAdded:Connect(function(ball)
  195. if not getgenv().AutoDetectSpam then
  196. return
  197. elseif ball and not ball:GetAttribute("realBall") then
  198. return
  199. end
  200.  
  201. getgenv().SpamClickA = false
  202. ParryCounter = 0
  203. GetBall(ball)
  204. end)
  205. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement