OR4NG3-FRU1T

Ago Block

Apr 23rd, 2026
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 KB | None | 0 0
  1. local Rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
  2.  
  3. local Players, RunService = game:GetService("Players"), game:GetService("RunService")
  4. local localPlayer = Players.LocalPlayer
  5. local myRoot = nil
  6.  
  7. local animationIds = {
  8. ["126830014841198"] = true, ["126355327951215"] = true, ["121086746534252"] = true,
  9. ["18885909645"] = true, ["98456918873918"] = true, ["105458270463374"] = true,
  10. ["83829782357897"] = true, ["125403313786645"] = true, ["118298475669935"] = true,
  11. ["82113744478546"] = true, ["70371667919898"] = true, ["99135633258223"] = true,
  12. ["97167027849946"] = true, ["109230267448394"] = true, ["139835501033932"] = true,
  13. ["126896426760253"] = true,
  14. }
  15.  
  16. local detectionRange, blockDelay, toggleOn = 18, -0.35, false
  17. local lastBlockTime = 0
  18.  
  19. -- ✅ Click block function (mobile safe)
  20. local function clickBlockButton()
  21. local gui = localPlayer:FindFirstChild("PlayerGui")
  22. if not gui then return end
  23. local mainUI = gui:FindFirstChild("MainUI")
  24. local container = mainUI and mainUI:FindFirstChild("AbilityContainer")
  25. local blockButton = container and container:FindFirstChild("Block")
  26. if blockButton and blockButton:IsA("ImageButton") and blockButton.Visible then
  27. local success = false
  28. for _, conn in ipairs(getconnections(blockButton.MouseButton1Click)) do
  29. pcall(function() conn:Fire(); success = true end)
  30. end
  31. if not success then pcall(function() blockButton:Activate() end) end
  32. end
  33. end
  34.  
  35. -- ✅ Detect slashing animations
  36. local function isSlashing(humanoid)
  37. for _, track in ipairs(humanoid:GetPlayingAnimationTracks()) do
  38. local id = string.match(track.Animation.AnimationId, "%d+")
  39. if id and (
  40. animationIds[id] or
  41. string.find(string.lower(track.Animation.Name), "slash") or
  42. string.find(string.lower(track.Animation.Name), "attack")
  43. ) then
  44. return true, track.Length
  45. end
  46. end
  47. return false
  48. end
  49.  
  50. -- ✅ Auto block + punch function
  51. local function autoBlockAndPunch(killer)
  52. local now = tick()
  53. if now - lastBlockTime < 0.4 then return end
  54. lastBlockTime = now
  55.  
  56. if myRoot and killer and killer:FindFirstChild("HumanoidRootPart") then
  57. myRoot.CFrame = CFrame.new(myRoot.Position, killer.HumanoidRootPart.Position)
  58. end
  59.  
  60. clickBlockButton()
  61.  
  62. -- 🥊 Auto Punch x3 with slight delay for consistent hits
  63. task.spawn(function()
  64. for i = 1, 3 do
  65. local punch = localPlayer.Backpack:FindFirstChild("Punch") or localPlayer.Character:FindFirstChild("Punch")
  66. if punch and punch:IsA("Tool") then punch:Activate() end
  67. task.wait(0.1)
  68. end
  69. end)
  70. end
  71.  
  72. -- ✅ Main detection loop with approach speed + predictive block
  73. RunService.Heartbeat:Connect(function()
  74. if not toggleOn then return end
  75. myRoot = localPlayer.Character and localPlayer.Character:FindFirstChild("HumanoidRootPart")
  76. if not myRoot then return end
  77.  
  78. for _, otherPlayer in ipairs(Players:GetPlayers()) do
  79. if otherPlayer ~= localPlayer and otherPlayer.Character then
  80. local root = otherPlayer.Character:FindFirstChild("HumanoidRootPart")
  81. local humanoid = otherPlayer.Character:FindFirstChildOfClass("Humanoid")
  82. if root and humanoid then
  83. local dist = (root.Position - myRoot.Position).Magnitude
  84.  
  85. -- ✅ Approach speed check
  86. local velocity = root.Velocity.Magnitude
  87. if dist <= detectionRange and velocity > 8 then
  88. autoBlockAndPunch(otherPlayer.Character)
  89. end
  90.  
  91. -- ✅ Animation predictive block
  92. local slashing, length = isSlashing(humanoid)
  93. if slashing then
  94. task.delay(length + blockDelay, function()
  95. autoBlockAndPunch(otherPlayer.Character)
  96. end)
  97. end
  98. end
  99. end
  100. end
  101. end)
  102.  
  103. -- ✅ Rayfield GUI
  104. local Window = Rayfield:CreateWindow({
  105. Name = "Guest 1337 | Triplex Hub (High Ping)",
  106. LoadingTitle = "Guest 1337 Script",
  107. LoadingSubtitle = "By Triplex",
  108. ConfigurationSaving = {
  109. Enabled = true,
  110. FolderName = "TriplexGuest1337",
  111. FileName = "Guest1337Config"
  112. },
  113. KeySystem = false
  114. })
  115.  
  116. local MainTab = Window:CreateTab("Guest 1337", 4483362458)
  117.  
  118. MainTab:CreateToggle({
  119. Name = "Auto Block + Punch (150ms+ Optimized)",
  120. CurrentValue = false,
  121. Flag = "AutoBlock",
  122. Callback = function(Value)
  123. toggleOn = Value
  124. end,
  125. })
  126.  
  127. MainTab:CreateSlider({
  128. Name = "Detection Range",
  129. Range = {5,50},
  130. Increment = 1,
  131. CurrentValue = 18,
  132. Flag = "DetectRange",
  133. Callback = function(Value)
  134. detectionRange = Value
  135. end,
  136. })
  137.  
Tags: scr
Advertisement
Add Comment
Please, Sign In to add comment