local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local me = Players.LocalPlayer local remote = ReplicatedStorage.Remotes.ArrestPlayer RunService.Heartbeat:Connect(function() local root = me.Character and me.Character:FindFirstChild("HumanoidRootPart") if not root then return end for _, plr in Players:GetPlayers() do if plr == me then continue end local char = plr.Character if not char then continue end local hrp = char:FindFirstChild("HumanoidRootPart") local hum = char:FindFirstChild("Humanoid") if not hrp or not hum or hum.Health <= 0 then continue end if (root.Position - hrp.Position).Magnitude <= 10 then task.spawn(function() pcall(remote.InvokeServer, remote, plr) end) end end end)