Advertisement
HackCreator

auto Block

Jun 13th, 2023
2,787
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. --[[
  2. WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
  3. ]]
  4. --[[ Made by ThroughTheFireAndFlames#9925
  5.  
  6. Alternate Battlegrounds Projectile Dodger (Open Source)
  7.  
  8. Choose character, After their little speech execute the script
  9. Recommended to use bypassed walkspeed script changer!
  10. --]]
  11.  
  12. getgenv().Distance = 80 -- Distance Detection
  13. getgenv().Cooldown = 3.4 -- Time before Unblocking
  14.  
  15. spawn(function()
  16. local Folder = game:GetService("Workspace").Cooldowns;
  17. for i, v in pairs(game:GetService("Players"):GetChildren()) do
  18. if (v.Name ~= game.Players.LocalPlayer.Name) then
  19. local Players = Folder:WaitForChild(v.Name);
  20. Players.ChildAdded:Connect(function(child)
  21. if not (string.match(child.Name, "Melee") or string.match(child.Value, "Melee")) then
  22. local distance = (v.Character.HumanoidRootPart.Position - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude;
  23. if (distance <= getgenv().Distance) then
  24. local args = {[1]="Blocking",[2]=true};
  25. game:GetService("ReplicatedStorage"):WaitForChild("GenericEvents"):WaitForChild("Ban"):FireServer(unpack(args));
  26. wait(getgenv().Cooldown);
  27. local args = {[1]="Blocking",[2]=false};
  28. game:GetService("ReplicatedStorage"):WaitForChild("GenericEvents"):WaitForChild("Ban"):FireServer(unpack(args));
  29. end
  30. end
  31. end);
  32. end
  33. end
  34. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement