local Ps = game:GetService("Players") local RS = game:GetService("ReplicatedStorage") local Ru = game:GetService("RunService") local Lp = Ps.LocalPlayer local Ar = RS.Remotes.ArrestPlayer local Md = 7 local Rd = 0.05 local function gn() local Np = {} local Ch = Lp.Character local Lh = Ch and Ch:FindFirstChild("HumanoidRootPart") local Lt = Lp.Team if not Lh then return Np end for _, Pl in ipairs(Ps:GetPlayers()) do if Pl ~= Lp and Pl.Team ~= Lt then local Tc = Pl.Character local Th = Tc and Tc:FindFirstChild("HumanoidRootPart") if Th then local Di = (Lh.Position - Th.Position).Magnitude if Di <= Md then table.insert(Np, Pl) end end end end return Np end local function ex() while true do local sc = pcall(function() local Tg = gn() if #Tg > 0 then local Ri = math.random(1, #Tg) local Tp = Tg[Ri] local ag = { [1] = Tp } pcall(function() Ar:InvokeServer(unpack(ag)) end) end end) task.wait(Rd) end end spawn(ex) Ru.Heartbeat:Connect(function() if not getgenv().Ac then getgenv().Ac = true spawn(ex) end end)