Run it
Copy the script and paste it into your executor.
--/ max distance is 600 studs
getgenv().toggled = true --/ true & false
getgenv().old = getgenv().old or require(game:GetService("ReplicatedStorage").Module.RayCast).RayIgnoreNonCollideWithIgnoreList
if getgenv().toggled then
require(game:GetService("ReplicatedStorage").Module.RayCast).RayIgnoreNonCollideWithIgnoreList = function(...)
local nearestDistance, nearestEnemy = 600, nil
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
if v.Team ~= game:GetService("Players").LocalPlayer.Team v.Character v.Character:()
(v.Character.HumanoidRootPart.Position - :().LocalPlayer.Character.HumanoidRootPart.Position).Magnitude < nearestDistance
nearestDistance, nearestEnemy = (v.Character.HumanoidRootPart.Position - :().LocalPlayer.Character.HumanoidRootPart.Position).Magnitude, v
arg = {(...)}
((().script) == (().script) == ) nearestEnemy
arg[] = nearestEnemy.Character.HumanoidRootPart
arg[] = nearestEnemy.Character.HumanoidRootPart.Position
(arg)
(:().Module.RayCast).RayIgnoreNonCollideWithIgnoreList = ().old