--// AutoArrest --// by @._ stav on discord shared.autoArrest = true local cloneref = cloneref or function(obj) return obj end local playersService = cloneref(game:GetService('Players')) local replicatedStorage = cloneref(game:GetService('ReplicatedStorage')) local lplr = playersService.LocalPlayer local function isAlive(plr) return plr and plr.PrimaryPart and plr:FindFirstChildOfClass('Humanoid') and plr:FindFirstChildOfClass('Humanoid').Health > 0 end local function getTool() return lplr.Character and lplr.Character:FindFirstChildOfClass('Tool') or nil end local plr = nil task.spawn(function() repeat plr = nil for i,v in playersService:GetPlayers() do if v == lplr then continue end if isAlive(v.Character) and isAlive(lplr.Character) then local attrib = v.Character:GetAttributes() if v.Team.Name == 'Criminals' then plr = v break end end end task.spawn(function() if plr ~= nil then for i = 0.01, 8 do lplr.Character.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame + Vector3.new(0, 5, 0) replicatedStorage.Remotes.ArrestPlayer:InvokeServer(plr) replicatedStorage.Remotes.InteractWithItem:InvokeServer(plr.Character.HumanoidRootPart) end end end) task.wait(10) until not shared.autoArrest end)