Advertisement
Minhseu123

Jailbreak Silent Aim and Wallbang OPEN SOURCE

Oct 16th, 2022
2,370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.37 KB | None | 0 0
  1. --/ max distance is 600 studs
  2. getgenv().toggled = true --/ true & false
  3.  
  4. getgenv().old = getgenv().old or require(game:GetService("ReplicatedStorage").Module.RayCast).RayIgnoreNonCollideWithIgnoreList
  5.  
  6. if getgenv().toggled then
  7.     require(game:GetService("ReplicatedStorage").Module.RayCast).RayIgnoreNonCollideWithIgnoreList = function(...)
  8.         local nearestDistance, nearestEnemy = 600, nil
  9.         for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  10.             if v.Team ~= game:GetService("Players").LocalPlayer.Team and v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
  11.                 if (v.Character.HumanoidRootPart.Position - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).Magnitude < nearestDistance then
  12.                     nearestDistance, nearestEnemy = (v.Character.HumanoidRootPart.Position - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).Magnitude, v
  13.                 end
  14.             end
  15.         end
  16.         local arg = {old(...)}
  17.         if (tostring(getfenv(2).script) == "BulletEmitter" or tostring(getfenv(2).script) == "Taser") and nearestEnemy then
  18.             arg[1] = nearestEnemy.Character.HumanoidRootPart
  19.             arg[2] = nearestEnemy.Character.HumanoidRootPart.Position
  20.         end
  21.         return unpack(arg)
  22.     end
  23. else
  24.     require(game:GetService("ReplicatedStorage").Module.RayCast).RayIgnoreNonCollideWithIgnoreList = getgenv().old
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement