1localstarterGUI=game:GetService("StarterGui")2localplayer=game.Players.LocalPlayer3localRunService=game:GetService("RunService")4localPlayers=game:GetService("Players")5localPlayer=Players.LocalPlayer67localautoParryEnabled=false8localCooldown=tick()9localIsParried=false10localConnection=nil1112localfunctionSendNotification(title,text,duration)13starterGUI:SetCore("SendNotification",{14Title=title,15Text=text,16Duration=durationor317})18end1920localfunctionGetBall()21for_,Ballinipairs(workspace.Balls:GetChildren())do22ifBall:GetAttribute("realBall")then23returnBall24end25end26end2728localfunctionResetConnection()29ifConnectionthen30Connection:Disconnect()31Connection=nil32end33end3435localfunctionToggleAutoParry()36autoParryEnabled=notautoParryEnabled37localstatus=autoParryEnabledand"ON"or"OFF"38SendNotification("Auto Parry","Auto Parry is now "..status,2)39end4041game:GetService("UserInputService").InputBegan:Connect(function(input,gameProcessed)42ifgameProcessedthenreturnend43ifinput.KeyCode==Enum.KeyCode.Kthen44ToggleAutoParry()45end46end)4748workspace.Balls.ChildAdded:Connect(function()49localBall=GetBall()50ifnotBallthenreturnend51ResetConnection()52Connection=Ball:GetAttributeChangedSignal("target"):Connect(function()53IsParried=false54end)55end)5657RunService.PreSimulation:Connect(function()58ifnotautoParryEnabledthenreturnend5960localBall=GetBall()61localHRP=Player.CharacterandPlayer.Character:FindFirstChild("HumanoidRootPart")6263ifnotBallornotHRPthen64return65end6667localSpeed=Ball.zoomies.VectorVelocity.Magnitude68localDistance=(HRP.Position-Ball.Position).Magnitude6970ifBall:GetAttribute("target")==Player.NameandnotIsParriedandDistance/Speed<=0.55then71localblockButton=Player.PlayerGui.Hotbar.Block7273for_,connectioninpairs(getconnections(blockButton.Activated))do74connection:Fire()75end76for_,connectioninpairs(getconnections(blockButton.MouseButton1Click))do77connection:Fire()78end79for_,connectioninpairs(getconnections(blockButton.MouseButton1Down))do80connection:Fire()81end8283IsParried=true84Cooldown=tick()8586if(tick()-Cooldown)>=1then87IsParried=false88end89end90end)
Comments · …
Loading comments…